ist.palcom.communication.ast
Class ConnectionInfo

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

public class ConnectionInfo
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
ConnectionInfo()
           
ConnectionInfo(URN p0, URN p1)
           
 
Method Summary
 Object clone()
           
 ASTNode copy()
           
 boolean equals(Object o)
           
 void flushCache()
           
 ASTNode fullCopy()
           
 URN getCustomerURN()
           
 URN getCustomerURNNoTransform()
           
 URN getDeviceURN()
           
 URN getProviderURN()
           
 URN getProviderURNNoTransform()
           
 String getTagName()
           
 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 setCustomerURN(URN node)
           
 void setProviderURN(URN node)
           
 void writeXMLElement(KXmlSerializer serializer)
           
 
Methods inherited from class ist.palcom.communication.ast.Info
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

ConnectionInfo

public ConnectionInfo()

ConnectionInfo

public ConnectionInfo(URN p0,
                      URN p1)
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

setProviderURN

public void setProviderURN(URN node)

getProviderURN

public URN getProviderURN()

getProviderURNNoTransform

public URN getProviderURNNoTransform()

setCustomerURN

public void setCustomerURN(URN node)

getCustomerURN

public URN getCustomerURN()

getCustomerURNNoTransform

public URN getCustomerURNNoTransform()

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