|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.opennms.bb.dp.events.EventParameter
This class is designed to replicate a name/value event parameter pair from an event. The object is used to model the name/value pair that appears in the Event DTD for the Bluebird project.
Field Summary | |
private String |
m_name
The parameter name |
private EventParamValue |
m_value
The parameter value. |
Constructor Summary | |
EventParameter()
Constructs a new instance of the class with the default values of an empty string and empty value. |
|
EventParameter(String name)
Constructs a new instance with the specific name and a default value. |
|
EventParameter(String name,
EventParamValue value)
Constructs a new instance with the specific name and value. |
Method Summary | |
String |
getName()
Returns the name of the parameter. |
EventParamValue |
getValue()
Returns the value for the parameter. |
(package private) void |
serializeToXML(PrintStream ps)
Writes self to event stream |
void |
set(String name,
EventParamValue value)
Sets the name/value pair for hte parameter. |
void |
setName(String name)
Sets the name of the parameter. |
void |
setValue(EventParamValue value)
Sets the value for the parameter. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private String m_name
private EventParamValue m_value
Constructor Detail |
public EventParameter()
public EventParameter(String name)
name
- The name of the new name/value pairpublic EventParameter(String name, EventParamValue value)
name
- The name for the new name/value pair.value
- The value for the new name/value pair.Method Detail |
void serializeToXML(PrintStream ps)
public String getName()
public void setName(String name)
name
- The new name for the parameter.public EventParamValue getValue()
public void setValue(EventParamValue value)
value
- The new value for the parameter.public void set(String name, EventParamValue value)
name
- The new name for the instance.value
- The new value for the instance.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |