ist.palcom.communication.ast
Class ParamInfo

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.ParamInfo
All Implemented Interfaces:
XMLRepresentable, Cloneable

public class ParamInfo
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
ParamInfo()
           
ParamInfo(String id, String type)
           
ParamInfo(String p0, String p1, String p2, int p3)
           
 
Method Summary
 Object clone()
           
 ASTNode copy()
           
 ControlItem createInstance()
           
 boolean equals(Object o)
           
 void flushCache()
           
 ASTNode fullCopy()
           
 int getDataRef()
           
 String getHelp()
           
 String getID()
           
 String getTagName()
           
 String getType()
           
 void initializeFromElement(XmlPullParser parser)
          Initialize the XMLRepresentable from the element where the parser is currently standing.
 boolean isAboutTheSameEntityAs(Info info)
           
protected  int numChildren()
           
 void setDataRef(int value)
           
 void setHelp(String value)
           
 void setID(String value)
           
 void setType(String value)
           
 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
addChildFromXMLElement, 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

ParamInfo

public ParamInfo()

ParamInfo

public ParamInfo(String p0,
                 String p1,
                 String p2,
                 int p3)

ParamInfo

public ParamInfo(String id,
                 String type)
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

setType

public void setType(String value)

getType

public String getType()

setDataRef

public void setDataRef(int value)

getDataRef

public int getDataRef()

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