|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javawebparts.misc.chain.CommandConfig
This is the class that represents the configuration for a Command. When the configuration file is read in, instances of this class are created, and added to an instance of the Chain class. When the Chain is executed, the Command class specified in this class will be instantiated and executed.
Field Summary | |
private java.lang.String |
chain
The Chain that this Command references. |
private java.lang.String |
className
The class that implements this Command. |
private java.lang.String |
id
ID of this Command. |
private java.util.List |
properties
The collection of properties for this Command. |
private java.lang.String |
replaceID
The Command that this Command replaces when this Chain extends another. |
Constructor Summary | |
CommandConfig()
Constructor. |
|
CommandConfig(java.lang.String inID,
java.lang.String inClassName,
java.lang.String inChain,
java.lang.String inReplaceID)
Constructor. |
Method Summary | |
void |
addProperty(java.lang.String inName,
java.lang.String inValue)
Add a property to the collection of properties for this Command. |
java.util.List |
cloneProperties()
Returns a clone of the properties collection for this Command. |
java.lang.String |
getChain()
Getter for the Chain of this Command. |
java.lang.String |
getClassName()
Getter for the class of this Command. |
java.lang.String |
getId()
Getter for the ID of this Command. |
java.util.List |
getProperties()
Returns the collection of properties for this Command. |
java.lang.String |
getReplaceID()
Getter for the replaceID of this Command. |
void |
setChain(java.lang.String inChain)
Setter for the Chain of this Command. |
void |
setClassName(java.lang.String inClassName)
Setter for the class of this Command. |
void |
setId(java.lang.String inID)
Setter for the ID of this Command. |
void |
setProperties(java.util.List inProperties)
Sets the collection of properties for this Command. |
void |
setReplaceID(java.lang.String inReplaceID)
Setter for the replaceID of this Command. |
java.lang.String |
toString()
Overridden toString method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private java.lang.String id
private java.lang.String className
private java.lang.String chain
private java.lang.String replaceID
private java.util.List properties
Constructor Detail |
public CommandConfig()
public CommandConfig(java.lang.String inID, java.lang.String inClassName, java.lang.String inChain, java.lang.String inReplaceID)
inID
- The ID this Command will be known as.inClassName
- The class that implements this Command.inChain
- The ID of the Chain this Command points to when the
Command is a subchain.inReplaceID
- The ID of the Command this Command replaces in the
Chain, when the Chain extends another.Method Detail |
public java.util.List cloneProperties()
public void setId(java.lang.String inID)
inID
- The ID of this Cmomand.public java.lang.String getId()
public void setClassName(java.lang.String inClassName)
inClassName
- The class that implements this Command.public java.lang.String getClassName()
public void setChain(java.lang.String inChain)
inChain
- The ID of the Chain this Command references when this
Command is a sub-chain.public java.lang.String getChain()
public void setReplaceID(java.lang.String inReplaceID)
inReplaceID
- The ID of the Command this Command replaces when the
Chain extends another.public java.lang.String getReplaceID()
public void addProperty(java.lang.String inName, java.lang.String inValue)
inName
- The name of the property to set on this Command.inValue
- The value of the property to set on this Command.public java.util.List getProperties()
public void setProperties(java.util.List inProperties)
inProperties
- The collection of properties to set on this Command.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |