ist.palcom.resource.descriptor
Class ControlItem

java.lang.Object
  extended by ist.palcom.resource.descriptor.ASTNode
      extended by ist.palcom.resource.descriptor.ControlItem
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
Command, Group, Param, Stream

public abstract class ControlItem
extends ASTNode
implements java.lang.Cloneable


Field Summary
protected  boolean getBrowserLabel_visited
           
 
Fields inherited from class ist.palcom.resource.descriptor.ASTNode
CHANGE, children, encloseInBraces_visited, generatedWithCacheCycle, generatedWithCircularEnabled, generatedWithComponentCheck, getAssemblyLabel_visited, getErrorList_visited, getIndent_visited, getParentPRDAssemblyVer_visited, getPrettyClosingString_visited, getPrettyString_visited, IN_CIRCLE, LAST_CYCLE, numChildren, parent, prettyPrintChildren_visited, RESET_CYCLE
 
Constructor Summary
ControlItem()
           
 
Method Summary
 java.lang.Object clone()
           
 ControlItem findItem(java.lang.String id)
          Returns the ControlItem within the sub-tree rooted at this ControlItem that has the sought ID, or null if none exists.
 Command findMatchingCommand(Command command)
          Returns a matching command in the ControlItem sub-tree rooted at this ControlItem, or null if none exists.
 void flushCache()
           
 java.lang.String getBrowserLabel()
           
 java.lang.String getID()
          Forwarding methods
abstract  PRDData getInfoAsInfo()
          Workaround for static typing.
 Message getMessage()
           
 ServiceProxy getServiceProxy()
          Returns the closest surrounding ServiceProxy, or null if there is none.
 java.lang.String getTagName()
           
 void initializeFromElement(XmlPullParser parser)
           
protected  int numChildren()
           
abstract  void setDataRefsAndAddDataToList(java.util.ArrayList dataList)
           
abstract  void setDataAccordingToDataRefs(byte[][] data)
           
protected  void writeStartTagAndAttributes(KXmlSerializer serializer)
           
 void writeXMLElement(KXmlSerializer serializer)
           
 
Methods inherited from class ist.palcom.resource.descriptor.ASTNode
addASTtoList, addChild, copy, 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, fullCopy, getAssemblyLabel, getChild, getChildArray, getChildNoTransform, getErrorList, getIDforEditing, getIndent, getIndexOfChild, getNumChild, getParent, getParentPRDAssemblyVer, getPrettyClosingString, getPrettyString, insertChild, prettyprint, prettyPrintChildren, remove, removeChild, reset, resetTree, setChild, setParent, updateIDfromEditor
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

getBrowserLabel_visited

protected boolean getBrowserLabel_visited
Constructor Detail

ControlItem

public ControlItem()
Method Detail

flushCache

public void flushCache()
Overrides:
flushCache in class ASTNode

clone

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

getInfoAsInfo

public abstract PRDData getInfoAsInfo()
Workaround for static typing.


getID

public java.lang.String getID()
Forwarding methods


findItem

public ControlItem findItem(java.lang.String id)
Returns the ControlItem within the sub-tree rooted at this ControlItem that has the sought ID, or null if none exists. This method is overridden in appropriate subclasses.


getServiceProxy

public ServiceProxy getServiceProxy()
Returns the closest surrounding ServiceProxy, or null if there is none. If this object is a ServiceProxy, this is returned. The method is overriden in ServiceProxy, to give the right behaviour.


findMatchingCommand

public Command findMatchingCommand(Command command)
Returns a matching command in the ControlItem sub-tree rooted at this ControlItem, or null if none exists. A Command is considered to match if it has the same Java type, the same ID, and if all params have the same ID and the same types (param type), and are in the same order. This method is overridden in appropriate sub-classes, to handle the actual matching.


getMessage

public Message getMessage()

setDataRefsAndAddDataToList

public abstract void setDataRefsAndAddDataToList(java.util.ArrayList dataList)

setDataAccordingToDataRefs

public abstract void setDataAccordingToDataRefs(byte[][] data)

getTagName

public java.lang.String getTagName()

initializeFromElement

public void initializeFromElement(XmlPullParser parser)

writeStartTagAndAttributes

protected void writeStartTagAndAttributes(KXmlSerializer serializer)
                                   throws java.io.IOException
Throws:
java.io.IOException

writeXMLElement

public void writeXMLElement(KXmlSerializer serializer)
                     throws java.io.IOException
Throws:
java.io.IOException

numChildren

protected int numChildren()
Overrides:
numChildren in class ASTNode

getBrowserLabel

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