ist.palcom.communication.ast
Class ServiceDescription
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.GroupInfo
ist.palcom.communication.ast.ServiceDescription
- All Implemented Interfaces:
- XMLRepresentable, Cloneable
public class ServiceDescription
- extends GroupInfo
- implements Cloneable
| Methods inherited from class ist.palcom.communication.ast.ASTNode |
addChild, getChild, getChildNoTransform, getIndexOfChild, getNumChild, getParent, insertChild, remove, removeChild, setChild, setParent |
ServiceDescription
public ServiceDescription()
ServiceDescription
public ServiceDescription(String p0,
String p1,
List p2,
URN p3)
ServiceDescription
public ServiceDescription(String id)
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