ist.palcom.resource.descriptor
Class SingleServiceDecl

java.lang.Object
  extended by ist.palcom.resource.descriptor.ASTNode
      extended by ist.palcom.resource.descriptor.AbstractXMLRepresentable
          extended by ist.palcom.resource.descriptor.PRDData
              extended by ist.palcom.resource.descriptor.AbstractServiceDecl
                  extended by ist.palcom.resource.descriptor.SingleServiceDecl
All Implemented Interfaces:
IHgraphNode, XMLRepresentable, java.lang.Cloneable
Direct Known Subclasses:
AltServiceDecl

public class SingleServiceDecl
extends AbstractServiceDecl
implements java.lang.Cloneable


Field Summary
protected  boolean av_visited
           
protected  boolean getAssemblyLabel_visited
           
protected  boolean getErrorList_visited
           
protected  boolean getServiceAddr_visited
           
protected  boolean isAlternative_visited
           
protected  java.util.Set lookupService_AbstractResourceAddress_visited
           
protected  java.util.Set lookupService_Identifier_visited
           
 
Fields inherited from class ist.palcom.resource.descriptor.AbstractServiceDecl
getLocalName_visited
 
Fields inherited from class ist.palcom.resource.descriptor.PRDData
_node, FULLY_OPERATIONAL, NOT_OPERATIONAL, PARTIALLY_OPERATIONAL
 
Fields inherited from class ist.palcom.resource.descriptor.AbstractXMLRepresentable
getBrowserLabel_visited
 
Fields inherited from class ist.palcom.resource.descriptor.ASTNode
CHANGE, children, encloseInBraces_visited, generatedWithCacheCycle, generatedWithCircularEnabled, generatedWithComponentCheck, getIndent_visited, getParentPRDAssemblyVer_visited, getPrettyClosingString_visited, getPrettyString_visited, IN_CIRCLE, LAST_CYCLE, numChildren, parent, prettyPrintChildren_visited, RESET_CYCLE
 
Fields inherited from interface ist.palcom.hgraph.IHgraphNode
CHILD_NAME_CLASH, CIRCULARITY_CLASH, COMMAND_OR_NODE_MISSING, ERROR, HANDLER_MISSING, INVOKATOR_MISSING, LISTENER_MISSING, NODE_NOT_CHILD, PATH_MISSING, SIBLING_ALREADY_EXISTS, SIBLING_NONEXISTENT, SIBLING_REFERENCE_ALREADY_EXISTS, SIBLING_REFERENCE_NONEXISTENT, STATUS_OK, VALUE_ALREADY_EXISTS, VALUE_NOT_PRESENT
 
Constructor Summary
SingleServiceDecl()
           
SingleServiceDecl(Identifier p0, DeviceUse p1, ServiceAddress p2)
           
 
Method Summary
 void addChildFromXMLElement(XMLRepresentable child)
          The implementation up here is empty.
 PRDAssemblyVer av()
           
 java.lang.Object clone()
           
 ASTNode copy()
           
 void flushCache()
           
 ASTNode fullCopy()
           
 java.lang.String getAssemblyLabel()
           
 DeviceUse getDeviceUse()
           
 DeviceUse getDeviceUseNoTransform()
           
 java.util.ArrayList getErrorList()
           
 ServiceAddress getServiceAddr()
           
 ServiceAddress getServiceAddress()
           
 ServiceAddress getServiceAddressNoTransform()
           
 Identifier getServiceName()
           
 Identifier getServiceNameNoTransform()
           
 java.lang.String getTagName()
           
 void initializeFromElement(XmlPullParser parser)
          Initialize the XMLRepresentable from the element where the parser is currently standing.
 boolean isAlternative()
           
 void listenForDiscovery(ResourceAddressingManager man, PalcomThread t, boolean active)
           
 AbstractServiceDecl lookupService(AbstractResourceAddress sa)
           
 AbstractServiceDecl lookupService(Identifier id)
           
protected  int numChildren()
           
 void setDeviceUse(DeviceUse node)
           
 void setServiceAddress(ServiceAddress node)
           
 void setServiceName(Identifier node)
           
 void validateAddress(ResourceAddressingManager m)
           
 void writeXMLElementBody(KXmlSerializer serializer)
           
 
Methods inherited from class ist.palcom.resource.descriptor.AbstractServiceDecl
getLocalName, writeXMLElement
 
Methods inherited from class ist.palcom.resource.descriptor.PRDData
addNodeChild, getChildIterator, getFuncFunc, getLocalSID, getName, getNodeName, getNodeParent, getPath, getPRDDataThatEquals, getPRDDataThatIsAboutTheSameEntityAs, getSiblingFunc, getValueFunc, hasChildNamed, isAboutTheSameEntityAs, isAncestorOf, removeNodeChild, safeEqual, setChild, setNodeName, setNodeParent, toXML, toXMLFull, toXMLFullRecursively, toXMLRecursively, updatePath
 
Methods inherited from class ist.palcom.resource.descriptor.AbstractXMLRepresentable
addToAssembly, equals, getBrowserLabel, getXMLData, getXMLData, removeFromAssembly, toString
 
Methods inherited from class ist.palcom.resource.descriptor.ASTNode
addASTtoList, addChild, Define_AbstractResourceAddress_custServiceAddress, Define_AbstractResourceAddress_provServiceAddress, Define_CommandInfo_ci, Define_Device_parentDevice, Define_Identifier_getLocalName, Define_NetworkNode_lookup, Define_PRDAssemblyVer_av, Define_Service_inhCust, Define_Service_inhProv, Define_Service_parentService, Define_String_expectedType, Define_Universe_universe, encloseInBraces, getChild, getChildArray, getChildNoTransform, getIDforEditing, getIndent, getIndexOfChild, getNumChild, getParent, getParentPRDAssemblyVer, getPrettyClosingString, getPrettyString, insertChild, prettyprint, prettyPrintChildren, remove, removeChild, reset, resetTree, setParent, updateIDfromEditor
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

isAlternative_visited

protected boolean isAlternative_visited

getServiceAddr_visited

protected boolean getServiceAddr_visited

lookupService_AbstractResourceAddress_visited

protected java.util.Set lookupService_AbstractResourceAddress_visited

lookupService_Identifier_visited

protected java.util.Set lookupService_Identifier_visited

getErrorList_visited

protected boolean getErrorList_visited

getAssemblyLabel_visited

protected boolean getAssemblyLabel_visited

av_visited

protected boolean av_visited
Constructor Detail

SingleServiceDecl

public SingleServiceDecl()

SingleServiceDecl

public SingleServiceDecl(Identifier p0,
                         DeviceUse p1,
                         ServiceAddress p2)
Method Detail

flushCache

public void flushCache()
Overrides:
flushCache in class AbstractServiceDecl

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class AbstractServiceDecl
Throws:
java.lang.CloneNotSupportedException

copy

public ASTNode copy()
Overrides:
copy in class ASTNode

fullCopy

public ASTNode fullCopy()
Overrides:
fullCopy in class ASTNode

getTagName

public java.lang.String getTagName()
Specified by:
getTagName in interface XMLRepresentable
Specified by:
getTagName in class AbstractXMLRepresentable

writeXMLElementBody

public void writeXMLElementBody(KXmlSerializer serializer)
                         throws java.io.IOException
Overrides:
writeXMLElementBody in class AbstractServiceDecl
Throws:
java.io.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

addChildFromXMLElement

public void addChildFromXMLElement(XMLRepresentable child)
Description copied from class: AbstractXMLRepresentable
The implementation up here is empty.

Specified by:
addChildFromXMLElement in interface XMLRepresentable
Overrides:
addChildFromXMLElement in class AbstractXMLRepresentable

listenForDiscovery

public void listenForDiscovery(ResourceAddressingManager man,
                               PalcomThread t,
                               boolean active)
Specified by:
listenForDiscovery in class AbstractServiceDecl

validateAddress

public void validateAddress(ResourceAddressingManager m)
Overrides:
validateAddress in class AbstractServiceDecl

numChildren

protected int numChildren()
Overrides:
numChildren in class AbstractServiceDecl

setServiceName

public void setServiceName(Identifier node)

getServiceName

public Identifier getServiceName()

getServiceNameNoTransform

public Identifier getServiceNameNoTransform()

setDeviceUse

public void setDeviceUse(DeviceUse node)

getDeviceUse

public DeviceUse getDeviceUse()

getDeviceUseNoTransform

public DeviceUse getDeviceUseNoTransform()

setServiceAddress

public void setServiceAddress(ServiceAddress node)

getServiceAddress

public ServiceAddress getServiceAddress()

getServiceAddressNoTransform

public ServiceAddress getServiceAddressNoTransform()

isAlternative

public boolean isAlternative()
Specified by:
isAlternative in class AbstractServiceDecl

getServiceAddr

public ServiceAddress getServiceAddr()
Specified by:
getServiceAddr in class AbstractServiceDecl

lookupService

public AbstractServiceDecl lookupService(AbstractResourceAddress sa)
Overrides:
lookupService in class AbstractServiceDecl

lookupService

public AbstractServiceDecl lookupService(Identifier id)
Overrides:
lookupService in class AbstractServiceDecl

getErrorList

public java.util.ArrayList getErrorList()
Overrides:
getErrorList in class AbstractServiceDecl

getAssemblyLabel

public java.lang.String getAssemblyLabel()
Overrides:
getAssemblyLabel in class ASTNode

av

public PRDAssemblyVer av()