ist.palcom.communication.ast
Class ServiceInfo
java.lang.Object
ist.palcom.communication.ast.ASTNode
ist.palcom.communication.ast.AbstractXMLRepresentable
ist.palcom.communication.ast.Info
ist.palcom.communication.ast.ServiceInfo
- All Implemented Interfaces:
- XMLRepresentable, Cloneable
public class ServiceInfo
- extends Info
- implements Cloneable
| Methods inherited from class ist.palcom.communication.ast.ASTNode |
addChild, getChild, getChildNoTransform, getIndexOfChild, getNumChild, getParent, insertChild, remove, removeChild, setChild, setParent |
ROLE_PROVIDER
public static final String ROLE_PROVIDER
- See Also:
- Constant Field Values
ROLE_CUSTOMER
public static final String ROLE_CUSTOMER
- See Also:
- Constant Field Values
ROLE_ASSEMBLY
public static final String ROLE_ASSEMBLY
- See Also:
- Constant Field Values
ServiceInfo
public ServiceInfo()
ServiceInfo
public ServiceInfo(String p0,
String p1,
String p2,
URN p3,
Selector p4)
clone
public Object clone()
throws CloneNotSupportedException
- Overrides:
clone in class Info
- 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 Info
numChildren
protected int numChildren()
- Overrides:
numChildren in class Info
setName
public void setName(String value)
getName
public String getName()
- Overrides:
getName in class Info
setContentType
public void setContentType(String value)
getContentType
public String getContentType()
setRole
public void setRole(String value)
getRole
public String getRole()
setURN
public void setURN(URN node)
getURN
public URN getURN()
- Overrides:
getURN in class Info
- Returns:
- The URN of the entity described, or null if not applicable.
getURNNoTransform
public URN getURNNoTransform()
setSelector
public void setSelector(Selector node)
getSelector
public Selector getSelector()
getSelectorNoTransform
public Selector getSelectorNoTransform()
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 Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
getDeviceURN
public URN getDeviceURN()
- Overrides:
getDeviceURN in class Info
- Returns:
- The URN of the device that the entity belongs to, or null.
isProvider
public boolean isProvider()
isCustomer
public boolean isCustomer()
isAssembly
public boolean isAssembly()
isConnectable
public boolean isConnectable()
- Returns:
- true if the service can be connected to.
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