ist.palcom.communication.ast
Class ServiceDescription

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.GroupInfo
                      extended by ist.palcom.communication.ast.ServiceDescription
All Implemented Interfaces:
XMLRepresentable, Cloneable

public class ServiceDescription
extends GroupInfo
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
ServiceDescription()
           
ServiceDescription(String id)
           
ServiceDescription(String p0, String p1, List p2, URN p3)
           
 
Method Summary
 void addControlInfo(ControlInfo node)
           
 Object clone()
           
 ASTNode copy()
           
 ControlItem createInstance()
           
 boolean equals(Object o)
           
 void flushCache()
           
 ASTNode fullCopy()
           
 ControlInfo getControlInfo(int i)
           
 List getControlInfoList()
           
 List getControlInfoListNoTransform()
           
 URN getDeviceURN()
           
 String getHelp()
           
 String getID()
           
 int getNumControlInfo()
           
 URN getProviderURN()
           
 URN getProviderURNNoTransform()
           
 String getTagName()
           
 URN getURN()
           
 int hashCode()
           
 void initializeFromElement(XmlPullParser parser)
          Initialize the XMLRepresentable from the element where the parser is currently standing.
 boolean isAboutTheSameEntityAs(Info info)
           
protected  int numChildren()
           
 void setControlInfo(ControlInfo node, int i)
           
 void setControlInfoList(List list)
           
 void setHelp(String value)
           
 void setID(String value)
           
 void setProviderURN(URN node)
           
protected  void writeStartTagAndAttributes(KXmlSerializer serializer)
           
 
Methods inherited from class ist.palcom.communication.ast.GroupInfo
addChildFromXMLElement, writeXMLElement
 
Methods inherited from class ist.palcom.communication.ast.Info
getInfoThatEquals, getInfoThatIsAboutTheSameEntityAs, getName, 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

ServiceDescription

public ServiceDescription()

ServiceDescription

public ServiceDescription(String p0,
                          String p1,
                          List p2,
                          URN p3)

ServiceDescription

public ServiceDescription(String id)
Method Detail

clone

public Object clone()
             throws CloneNotSupportedException
Overrides:
clone in class GroupInfo
Throws:
CloneNotSupportedException

copy

public ASTNode copy()
Overrides:
copy in class GroupInfo

fullCopy

public ASTNode fullCopy()
Overrides:
fullCopy in class GroupInfo

flushCache

public void flushCache()
Overrides:
flushCache in class GroupInfo

numChildren

protected int numChildren()
Overrides:
numChildren in class GroupInfo

setID

public void setID(String value)
Overrides:
setID in class GroupInfo

getID

public String getID()
Overrides:
getID in class GroupInfo

setHelp

public void setHelp(String value)
Overrides:
setHelp in class GroupInfo

getHelp

public String getHelp()
Overrides:
getHelp in class GroupInfo

setControlInfoList

public void setControlInfoList(List list)
Overrides:
setControlInfoList in class GroupInfo

getNumControlInfo

public int getNumControlInfo()
Overrides:
getNumControlInfo in class GroupInfo

getControlInfo

public ControlInfo getControlInfo(int i)
Overrides:
getControlInfo in class GroupInfo

addControlInfo

public void addControlInfo(ControlInfo node)
Overrides:
addControlInfo in class GroupInfo

setControlInfo

public void setControlInfo(ControlInfo node,
                           int i)
Overrides:
setControlInfo in class GroupInfo

getControlInfoList

public List getControlInfoList()
Overrides:
getControlInfoList in class GroupInfo

getControlInfoListNoTransform

public List getControlInfoListNoTransform()
Overrides:
getControlInfoListNoTransform in class GroupInfo

setProviderURN

public void setProviderURN(URN node)

getProviderURN

public URN getProviderURN()

getProviderURNNoTransform

public URN getProviderURNNoTransform()

isAboutTheSameEntityAs

public boolean isAboutTheSameEntityAs(Info info)
Overrides:
isAboutTheSameEntityAs in class GroupInfo
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 GroupInfo

hashCode

public int hashCode()
Overrides:
hashCode in class ControlInfo

getURN

public URN getURN()
Overrides:
getURN in class Info
Returns:
The URN of the entity described, or null if not applicable.

getDeviceURN

public URN getDeviceURN()
Overrides:
getDeviceURN in class Info
Returns:
The URN of the device that the entity belongs to, or null.

createInstance

public ControlItem createInstance()
Overrides:
createInstance in class GroupInfo

getTagName

public String getTagName()
Specified by:
getTagName in interface XMLRepresentable
Overrides:
getTagName in class GroupInfo

writeStartTagAndAttributes

protected void writeStartTagAndAttributes(KXmlSerializer serializer)
                                   throws IOException
Overrides:
writeStartTagAndAttributes in class ControlInfo
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