ist.palcom.communication.ast
Class CommandInfo

java.lang.Object
  extended by ist.palcom.communication.ast.ASTNode
      extended by ist.palcom.communication.ast.AbstractXMLRepresentable
          extended by ist.palcom.communication.ast.Info
              extended by ist.palcom.communication.ast.ControlInfo
                  extended by ist.palcom.communication.ast.CommandInfo
All Implemented Interfaces:
XMLRepresentable, Cloneable

public class CommandInfo
extends ControlInfo
implements Cloneable


Field Summary
 
Fields inherited from class ist.palcom.communication.ast.ASTNode
CHANGE, children, generatedWithCacheCycle, generatedWithCircularEnabled, IN_CIRCLE, LAST_CYCLE, numChildren, parent
 
Constructor Summary
CommandInfo()
           
CommandInfo(String id, String direction)
           
CommandInfo(String p0, String p1, String p2, List p3)
           
 
Method Summary
 void addChildFromXMLElement(XMLRepresentable child)
          The implementation up here is empty.
 void addParamInfo(ParamInfo node)
           
 Object clone()
           
 ASTNode copy()
           
 ControlItem createInstance()
           
 boolean equals(Object o)
           
 void flushCache()
           
 ASTNode fullCopy()
           
 String getDirection()
           
 String getHelp()
           
 String getID()
           
 int getNumParamInfo()
           
 ParamInfo getParamInfo(int i)
           
 List getParamInfoList()
           
 List getParamInfoListNoTransform()
           
 String getTagName()
           
 void initializeFromElement(XmlPullParser parser)
          Initialize the XMLRepresentable from the element where the parser is currently standing.
 boolean isAboutTheSameEntityAs(Info info)
           
protected  int numChildren()
           
 void setDirection(String value)
           
 void setHelp(String value)
           
 void setID(String value)
           
 void setParamInfo(ParamInfo node, int i)
           
 void setParamInfoList(List list)
           
 void writeXMLElement(KXmlSerializer serializer)
           
 
Methods inherited from class ist.palcom.communication.ast.ControlInfo
hashCode, writeStartTagAndAttributes
 
Methods inherited from class ist.palcom.communication.ast.Info
getDeviceURN, getInfoThatEquals, getInfoThatIsAboutTheSameEntityAs, getName, getURN, safeEqual
 
Methods inherited from class ist.palcom.communication.ast.AbstractXMLRepresentable
getXMLData, getXMLData, toString
 
Methods inherited from class ist.palcom.communication.ast.ASTNode
addChild, getChild, getChildNoTransform, getIndexOfChild, getNumChild, getParent, insertChild, remove, removeChild, setChild, setParent
 
Methods inherited from class java.lang.Object
getClass, println
 

Constructor Detail

CommandInfo

public CommandInfo()

CommandInfo

public CommandInfo(String p0,
                   String p1,
                   String p2,
                   List p3)

CommandInfo

public CommandInfo(String id,
                   String direction)
Method Detail

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