|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.opennms.bb.dp.events.EventOperatorAction
This class is designed to encapsulate the information in the operaction element of the Event DTD. This class collects the appropriate required attribute value with the actual data in the node.
Field Summary | |
private String |
m_action
The operator action string. |
private String |
m_menutext
The menu text for the action |
Constructor Summary | |
EventOperatorAction()
Constructs a new operator action instance for the event stream. |
|
EventOperatorAction(EventOperatorAction second)
Constructs a new instance of the class and copies the data from the passed instance. |
|
EventOperatorAction(String action)
Constructs a new instance of the class with the passed values. |
|
EventOperatorAction(String action,
String menutext)
Constructs a new instance of the class with the passed values. |
Method Summary | |
String |
getAction()
Returns the current action registered in this object's instance. |
String |
getMenuText()
Returns the current menu text that is associated with the operator action. |
(package private) void |
serializeToXML(PrintStream ps)
Writes self to event stream |
void |
set(String action,
String menutext)
Sets the current object's value to the new values passed in this method. |
void |
setAction(String action)
Sets the action test for the current instance. |
void |
setMenuText(String menutext)
Sets the current menu text for the operator action. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private String m_action
private String m_menutext
Constructor Detail |
public EventOperatorAction()
public EventOperatorAction(EventOperatorAction second)
second
- The object to be copied to self.public EventOperatorAction(String action)
action
- The action string for the operator.public EventOperatorAction(String action, String menutext)
action
- The action string for the operator.menutext
- The menu text for the operator action.Method Detail |
void serializeToXML(PrintStream ps)
public void set(String action, String menutext)
action
- The operator action textmenutext
- The menu text for the action.public void setAction(String action)
action
- The new action text.public String getAction()
public void setMenuText(String menutext)
menutext
- The menu text for the action.public String getMenuText()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |