ist.palcom.communication.ast
Class CommandInfo
java.lang.Object
ist.palcom.communication.ast.ASTNode
ist.palcom.communication.ast.AbstractXMLRepresentable
ist.palcom.communication.ast.Info
ist.palcom.communication.ast.ControlInfo
ist.palcom.communication.ast.CommandInfo
- All Implemented Interfaces:
- XMLRepresentable, Cloneable
public class CommandInfo
- extends ControlInfo
- implements Cloneable
| Methods inherited from class ist.palcom.communication.ast.ASTNode |
addChild, getChild, getChildNoTransform, getIndexOfChild, getNumChild, getParent, insertChild, remove, removeChild, setChild, setParent |
CommandInfo
public CommandInfo()
CommandInfo
public CommandInfo(String p0,
String p1,
String p2,
List p3)
CommandInfo
public CommandInfo(String id,
String direction)
clone
public Object clone()
throws CloneNotSupportedException
- Overrides:
clone in class ControlInfo
- Throws:
CloneNotSupportedException
copy
public ASTNode copy()
- Overrides:
copy in class ASTNode
fullCopy
public ASTNode fullCopy()
- Overrides:
fullCopy in class ASTNode
flushCache
public void flushCache()
- Overrides:
flushCache in class ControlInfo
numChildren
protected int numChildren()
- Overrides:
numChildren in class ControlInfo
setID
public void setID(String value)
- Overrides:
setID in class ControlInfo
getID
public String getID()
- Overrides:
getID in class ControlInfo
setHelp
public void setHelp(String value)
- Overrides:
setHelp in class ControlInfo
getHelp
public String getHelp()
- Overrides:
getHelp in class ControlInfo
setDirection
public void setDirection(String value)
getDirection
public String getDirection()
setParamInfoList
public void setParamInfoList(List list)
getNumParamInfo
public int getNumParamInfo()
getParamInfo
public ParamInfo getParamInfo(int i)
addParamInfo
public void addParamInfo(ParamInfo node)
setParamInfo
public void setParamInfo(ParamInfo node,
int i)
getParamInfoList
public List getParamInfoList()
getParamInfoListNoTransform
public List getParamInfoListNoTransform()
isAboutTheSameEntityAs
public boolean isAboutTheSameEntityAs(Info info)
- Specified by:
isAboutTheSameEntityAs in class Info
- Returns:
- True if info and this info are for the same entity. This can be
true even if they are not completely identical, looking at their
whole trees. The equals method for Infos, on the other hand, is
implemented to check for that.
equals
public boolean equals(Object o)
- Overrides:
equals in class ControlInfo
createInstance
public ControlItem createInstance()
- Specified by:
createInstance in class ControlInfo
getTagName
public String getTagName()
- Specified by:
getTagName in interface XMLRepresentable
writeXMLElement
public void writeXMLElement(KXmlSerializer serializer)
throws IOException
- Specified by:
writeXMLElement in interface XMLRepresentable
- Throws:
IOException
initializeFromElement
public void initializeFromElement(XmlPullParser parser)
- Description copied from interface:
XMLRepresentable
- Initialize the XMLRepresentable from the element where the parser is
currently standing. When calling this method, the parser must be on the
start tag of the element. After returning from the method, the parser
will be at the end tag of the element.
- Specified by:
initializeFromElement in interface XMLRepresentable- Overrides:
initializeFromElement in class ControlInfo
addChildFromXMLElement
public void addChildFromXMLElement(XMLRepresentable child)
- Description copied from class:
AbstractXMLRepresentable
- The implementation up here is empty.
- Specified by:
addChildFromXMLElement in interface XMLRepresentable- Overrides:
addChildFromXMLElement in class AbstractXMLRepresentable