public final class EventUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
TAG_SEVERITY
The event severity xml tag
|
static String |
TAG_UEI
The UEI xml tag
|
Constructor and Description |
---|
EventUtil() |
Modifier and Type | Method and Description |
---|---|
static Event |
cloneEvent(Event orig)
cloneEvent
|
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 |
expandParms(String inp,
Event event,
Map<String,Map<String,String>> decode)
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
|
static String |
toHexString(byte[] data) |
public static final String TAG_UEI
public static final String TAG_SEVERITY
public static String getValueAsString(Value pvalue)
public static String toHexString(byte[] data)
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 escapeATTRIB_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 requiredpublic static String expandParms(String inp, Event event)
inp
- the input string in which parm values are to be expandedevent
- a Event
object.public static String expandParms(String inp, Event event, Map<String,Map<String,String>> decode)
inp
- the input string in which parm values are to be expandeddecode
- the varbind decode for thisevent
- a Event
object.Copyright © 2015. All Rights Reserved.