ist.palcom.communication.ast
Class DeviceInfo

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

public class DeviceInfo
extends Info
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
DeviceInfo()
           
DeviceInfo(URN urn)
           
DeviceInfo(URN p0, Selector p1, Selector p2, String p3)
           
DeviceInfo(URN urn, String name)
           
 
Method Summary
 Object clone()
           
 ASTNode copy()
           
 boolean equals(Object o)
           
 void flushCache()
           
 ASTNode fullCopy()
           
 URN getDeviceURN()
           
 Selector getDiscoverySelector()
           
 Selector getDiscoverySelectorNoTransform()
           
 String getName()
           
 Selector getRemoteConnectSelector()
           
 Selector getRemoteConnectSelectorNoTransform()
           
 String getTagName()
           
 URN getURN()
           
 URN getURNNoTransform()
           
 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 setDiscoverySelector(Selector node)
           
 void setName(String value)
           
 void setRemoteConnectSelector(Selector node)
           
 void setURN(URN node)
           
 void writeXMLElement(KXmlSerializer serializer)
           
 
Methods inherited from class ist.palcom.communication.ast.Info
getInfoThatEquals, getInfoThatIsAboutTheSameEntityAs, 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

DeviceInfo

public DeviceInfo()

DeviceInfo

public DeviceInfo(URN p0,
                  Selector p1,
                  Selector p2,
                  String p3)

DeviceInfo

public DeviceInfo(URN urn)

DeviceInfo

public DeviceInfo(URN urn,
                  String name)
Method Detail

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

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()

setDiscoverySelector

public void setDiscoverySelector(Selector node)

getDiscoverySelector

public Selector getDiscoverySelector()

getDiscoverySelectorNoTransform

public Selector getDiscoverySelectorNoTransform()

setRemoteConnectSelector

public void setRemoteConnectSelector(Selector node)

getRemoteConnectSelector

public Selector getRemoteConnectSelector()

getRemoteConnectSelectorNoTransform

public Selector getRemoteConnectSelectorNoTransform()

setName

public void setName(String value)

getName

public String getName()
Overrides:
getName in class Info

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.

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