Package COM.TIBCO.hawk.config.rbengine
Class RBEConfigObjectAttributes
java.lang.Object
COM.TIBCO.hawk.config.rbengine.RBEConfigObjectAttributes
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
Attributes,Attributes
This
RBEConfigObjectAttributes
contains basic attributes of a rulebase configuration objects such as Rulebase, Schedules, or RBMap.
It includes author, last Modification and comment.
When a rulebase configuration object is created, the author and last modification attributes should be set. These two attributes should also be updated when the rulebase configuration object is changed.
When comparing rulebase configuration objects, these attributes are not taken into consideration. For example, two schedules having identical list of schedules but have different comments and last modification are consider equal.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor.protectedRBEConfigObjectAttributes(COM.TIBCO.hawk.util.xml.XmlElementNode node) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionclone()Clone a copy of this objectstatic StringA convenient method to create a time stampt for setting last modification record.protected voidcopy(RBEConfigObjectAttributes toCopy) protected voidfromXML(COM.TIBCO.hawk.util.xml.XmlElementNode documentNode) Returns the author of this rulebase configuration object.Returns the comment of this rulebase configuration object.Returns the last modification record of this rulebase configuration object.protected StringgetNodeValue(Node node) protected voidreadAttributes(COM.TIBCO.hawk.util.xml.XmlElementNode node) voidSets the author this rulebase configuration object.voidsetComment(String name) Sets the comment of this rulebase configuration object.voidsetLastModification(String timeStamp) Sets the last modification record this rulebase configuration object.protected voidtoXML(COM.TIBCO.hawk.util.xml.XmlWriter out) protected voidwriteAttributes(COM.TIBCO.hawk.util.xml.XmlWriter out)
-
Constructor Details
-
RBEConfigObjectAttributes
protected RBEConfigObjectAttributes()Constructor. -
RBEConfigObjectAttributes
protected RBEConfigObjectAttributes(COM.TIBCO.hawk.util.xml.XmlElementNode node) throws RBEConfigObjectException Constructor. From XML node- Throws:
RBEConfigObjectException
-
-
Method Details
-
setAuthor
Sets the author this rulebase configuration object. -
setLastModification
Sets the last modification record this rulebase configuration object. The record should indicate who and when the change is being made. The method constructChangedStamp is provided to create such a record.- See Also:
-
setComment
Sets the comment of this rulebase configuration object. -
getAuthor
Returns the author of this rulebase configuration object. -
getLastModification
Returns the last modification record of this rulebase configuration object. -
getComment
Returns the comment of this rulebase configuration object. The comment attribute is used to record user comments about the purpose of the rulebase configuration object. It also may serve as a place to record the rulebase configuration object change history. -
clone
Clone a copy of this object- Overrides:
clonein classObject- Returns:
- a copy of this object
- Throws:
CloneNotSupportedException
-
constructChangedStamp
A convenient method to create a time stampt for setting last modification record. The format of the output string is as follow:userName on host hostName at HH:mm EE, MMM d, yyyy
where userName is from the system properry user.name, and hostName is the name from the machine where the JVM is running.- Returns:
- a useful string for last modification record.
-
getNodeValue
-
copy
-
writeAttributes
protected void writeAttributes(COM.TIBCO.hawk.util.xml.XmlWriter out) throws IOException, RBEConfigObjectException - Throws:
IOExceptionRBEConfigObjectException
-
readAttributes
protected void readAttributes(COM.TIBCO.hawk.util.xml.XmlElementNode node) throws RBEConfigObjectException - Throws:
RBEConfigObjectException
-
toXML
protected void toXML(COM.TIBCO.hawk.util.xml.XmlWriter out) throws IOException, RBEConfigObjectException - Throws:
IOExceptionRBEConfigObjectException
-
fromXML
protected void fromXML(COM.TIBCO.hawk.util.xml.XmlElementNode documentNode) throws RBEConfigObjectException - Throws:
RBEConfigObjectException
-