Class DataSource
java.lang.Object
COM.TIBCO.hawk.config.rbengine.rulebase.DataSource
This class is used to represent a rule's data source.
It contains all the information required to create
a microagent subscription.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDataSource(COM.TIBCO.hawk.util.xml.XmlElementNode xmlNode) Constructs a DataSourceDataSource(String microAgentName, COM.TIBCO.hawk.talon.MethodSubscription ms) Constructs a DataSource object. -
Method Summary
Modifier and TypeMethodDescriptionclone()Returns a copy of this objectbooleanCompare two data sources.protected voidfromXML(COM.TIBCO.hawk.util.xml.XmlElementNode node) Read XML representation of the data source from the XML node.protected StringReturns the default name for this ClearAction element.Returns the display name for this data sourceCOM.TIBCO.hawk.talon.MethodSubscriptionReturns string representation of this data source.Returns the microagent namebooleanprotected COM.TIBCO.hawk.talon.MethodSubscriptionreadXMLtoMas(COM.TIBCO.hawk.util.xml.XmlElementNode node) Read the method subscription in text format to build a Java object.voidsetDisplayName(String name) Sets the display name for this data sourcevoidsetMethodSubscription(COM.TIBCO.hawk.talon.MethodSubscription ms) Sets the methodSubscriptionvoidsetMicroAgentName(String name) Sets the microagent nametoString()Returns string representation of this object.protected voidtoXML(COM.TIBCO.hawk.util.xml.XmlWriter out) Write XML representation of the data source to the XML writer.
-
Field Details
-
CNAME
-
-
Constructor Details
-
DataSource
Constructs a DataSource object.- Parameters:
microAgentName- the name identifying the microagent providing the rule's datams- the MethodSubcription which will be used to provide the rule's data- Throws:
IllegalArgumentException- if either argument is null
-
DataSource
Constructs a DataSource- Parameters:
xmlNode- XML node that contain the DataSource- Throws:
RulebaseException- See Also:
-
XmlElementNode
-
-
Method Details
-
setDisplayName
Sets the display name for this data source -
getDisplayName
Returns the display name for this data source -
setMicroAgentName
Sets the microagent name- Parameters:
name- the microagent name, may not be null- Throws:
IllegalArgumentException- if name is null
-
getMicroAgentName
Returns the microagent name -
isConverted
public boolean isConverted() -
setMethodSubscription
public void setMethodSubscription(COM.TIBCO.hawk.talon.MethodSubscription ms) Sets the methodSubscription- Parameters:
name- the methodSubscription for this data source, may not be null- Throws:
IllegalArgumentException- if name is null
-
getMethodSubscription
public COM.TIBCO.hawk.talon.MethodSubscription getMethodSubscription()Returns string representation of this data source. -
toString
Returns string representation of this object. -
equals
Compare two data sources. The result is true if the argument is not null and is an DataSource object has the same microagent and method invocation. -
clone
Returns a copy of this object -
getDefaultName
Returns the default name for this ClearAction element. This is a generated name so that if the name of this ClearAction is not given, this method will provide one. -
toXML
Write XML representation of the data source to the XML writer.- Parameters:
out- the XML writer where the output will be written.- Throws:
IOExceptionRulebaseException- See Also:
-
XmlWriter
-
fromXML
Read XML representation of the data source from the XML node.- Parameters:
node- the XML node containing the data source.- Throws:
RulebaseException- See Also:
-
XmlElementNode
-
readXMLtoMas
protected COM.TIBCO.hawk.talon.MethodSubscription readXMLtoMas(COM.TIBCO.hawk.util.xml.XmlElementNode node) throws COM.TIBCO.hawk.talon.MicroAgentException Read the method subscription in text format to build a Java object. For 3.0 compatibility.- Throws:
COM.TIBCO.hawk.talon.MicroAgentException
-