Class Action
java.lang.Object
COM.TIBCO.hawk.config.rbengine.rulebase.RulebaseElement
COM.TIBCO.hawk.config.rbengine.rulebase.Action
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
ClearAction,ConsequenceAction
This class is the superclass for all actions.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAction(COM.TIBCO.hawk.util.xml.XmlElementNode xmlNode) Constructs a Action from XML representation -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompares two Action object for equality.protected voidfromXML(COM.TIBCO.hawk.util.xml.XmlElementNode node) Read XML representation of the action from the XML node.COM.TIBCO.hawk.talon.MethodInvocationReturns the method invocation of this action.Returns the microagent name of this action.Returns the properties associate with this action.voidsetMethodInvocation(COM.TIBCO.hawk.talon.MethodInvocation mi) Sets the method invocation of this action.voidsetMicroAgentName(String name) Sets the microagent name for the method invocation of this action.voidsetProperties(Properties properties) Sets the properties associate with this action.toString()Returns the string representation of this action.protected voidtoXML(COM.TIBCO.hawk.util.xml.XmlWriter out) Write XML representation of the action to the XML writer.Methods inherited from class COM.TIBCO.hawk.config.rbengine.rulebase.RulebaseElement
clone, fromXML, fromXML, getName, getSchedule, loadFromFile, saveToFile, setName, setSchedule, toXML, toXML
-
Field Details
-
CNAME
-
-
Constructor Details
-
Action
Constructs a Action from XML representation- Parameters:
xmlNode- XML node that contain the DataSource- Throws:
RulebaseException- See Also:
-
XmlElementNode
-
-
Method Details
-
getMicroAgentName
Returns the microagent name of this action. -
getMethodInvocation
public COM.TIBCO.hawk.talon.MethodInvocation getMethodInvocation()Returns the method invocation of this action. -
setMethodInvocation
public void setMethodInvocation(COM.TIBCO.hawk.talon.MethodInvocation mi) Sets the method invocation of this action.- Parameters:
mi- the method invocation, must not be null- Throws:
IllegalArgumentException- if method invocation is null
-
setMicroAgentName
Sets the microagent name for the method invocation of this action.- Parameters:
name- the microagent name, must not be null or empty string- Throws:
IllegalArgumentException- if microagent name is is null or empty string
-
getProperties
Returns the properties associate with this action. -
setProperties
Sets the properties associate with this action.- Parameters:
properties- the properties for this action, must not be null.- Throws:
IllegalArgumentException- if properties is is null.
-
toString
Returns the string representation of this action. -
equals
Compares two Action object for equality.- Overrides:
equalsin classRulebaseElement
-
toXML
Write XML representation of the action to the XML writer.- Overrides:
toXMLin classRulebaseElement- Parameters:
out- the XML writer where the output will be written.- Throws:
IOExceptionRulebaseException- See Also:
-
XmlWriter
-
fromXML
Read XML representation of the action from the XML node.- Overrides:
fromXMLin classRulebaseElement- Parameters:
node- the XML node containing the action.- Throws:
RulebaseException- See Also:
-
XmlElementNode
-