ist.palcom.communication.ast
Class ServiceInfo

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

public class ServiceInfo
extends Info
implements Cloneable


Field Summary
static String ROLE_ASSEMBLY
           
static String ROLE_CUSTOMER
           
static String ROLE_PROVIDER
           
 
Fields inherited from class ist.palcom.communication.ast.ASTNode
CHANGE, children, generatedWithCacheCycle, generatedWithCircularEnabled, IN_CIRCLE, LAST_CYCLE, numChildren, parent
 
Constructor Summary
ServiceInfo()
           
ServiceInfo(String p0, String p1, String p2, URN p3, Selector p4)
           
 
Method Summary
 Object clone()
           
 ASTNode copy()
           
 boolean equals(Object o)
           
 void flushCache()
           
 ASTNode fullCopy()
           
 String getContentType()
           
 URN getDeviceURN()
           
 String getName()
           
 String getRole()
           
 Selector getSelector()
           
 Selector getSelectorNoTransform()
           
 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)
           
 boolean isAssembly()
           
 boolean isConnectable()
           
 boolean isCustomer()
           
 boolean isProvider()
           
protected  int numChildren()
           
 void setContentType(String value)
           
 void setName(String value)
           
 void setRole(String value)
           
 void setSelector(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
 

Field Detail

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
Constructor Detail

ServiceInfo

public ServiceInfo()

ServiceInfo

public ServiceInfo(String p0,
                   String p1,
                   String p2,
                   URN p3,
                   Selector p4)
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

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