|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.eventd.EventUtil
public final class EventUtil
EventUtil is used primarily for the event parm expansion - has methods used by all the event components to send in the event and the element to expanded and have the 'expanded' value sent back
| Constructor Summary | |
|---|---|
EventUtil()
|
|
| Method Summary | |
|---|---|
static Event |
cloneEvent(Event orig)
|
static String |
escape(String inStr,
char delimchar)
This method is used to escape required values from strings that may contain those values. |
static String |
expandParms(String inp,
Event event)
Expand the value if it has parms in one of the following formats - %element% values are expanded to have the value of the element where 'element' is an element in the event DTD - %parm[values-all]% is expanded to a delimited list of all parmblock values - %parm[names-all]% is expanded to a list of all parm names - %parm[all]% is expanded to a full dump of all parmblocks - %parm[name]% is expanded to the value of the parameter named 'name' - %parm[ |
static String |
getNamedParmValue(String parm,
Event event)
Helper method. |
static String |
getValueAsString(Value pvalue)
Converts the value of a parm ('Value') of the instance to a string |
static String |
getValueOfParm(String parm,
Event event)
Get the value of the parm for the event |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EventUtil()
| Method Detail |
|---|
public static String getValueAsString(Value pvalue)
public static String escape(String inStr,
char delimchar)
This method is used to escape required values from strings that may contain those values. If the passed string contains the passed value then the character is reformatted into its %dd format.
inStr - string that might contain the delimiterdelimchar - delimiter to escape
ATTRIB_DELIM
public static String getValueOfParm(String parm,
Event event)
parm - the parm for which value is needed from the eventevent - the event whose parm value is required
public static String getNamedParmValue(String parm,
Event event)
parm - event -
public static String expandParms(String inp,
Event event)
inp - the input string in which parm values are to be expanded
public static Event cloneEvent(Event orig)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||