ist.palcom.resource.descriptor
Class AssemblyInfo
java.lang.Object
ist.palcom.resource.descriptor.ASTNode
ist.palcom.resource.descriptor.AbstractXMLRepresentable
ist.palcom.resource.descriptor.Info
ist.palcom.resource.descriptor.InfoRoot
ist.palcom.resource.descriptor.AssemblyInfo
- All Implemented Interfaces:
- XMLRepresentable, java.lang.Cloneable
public class AssemblyInfo
- extends InfoRoot
- implements java.lang.Cloneable
| Fields inherited from class ist.palcom.resource.descriptor.ASTNode |
CHANGE, children, generatedWithCacheCycle, generatedWithCircularEnabled, generatedWithComponentCheck, getErrorList_visited, getIndent_visited, getParentPRDAssembly_visited, getPrettyClosingString_visited, getPrettyString_visited, IN_CIRCLE, LAST_CYCLE, numChildren, parent, prettyPrintChildren_visited, RESET_CYCLE |
|
Constructor Summary |
AssemblyInfo()
|
AssemblyInfo(java.lang.String p1,
DeviceDeclList p2,
ServiceDeclList p3,
ConnectionDeclList p4,
Opt p5,
Opt p6)
Deprecated. |
AssemblyInfo(java.lang.String p0,
java.lang.String p1,
java.lang.String p2,
boolean p3,
DeviceDeclList p4,
ServiceDeclList p5,
ConnectionDeclList p6,
Opt p7,
Opt p8)
|
AssemblyInfo(java.lang.String format,
java.lang.String name,
URN DeviceURN,
java.lang.String logicalVersion)
|
| Methods inherited from class ist.palcom.resource.descriptor.InfoRoot |
getBaseVersion, getCreatingURN, getInitialTimestamp, getLogicalVersion, getParentTimestamp, getParentURN, getParentVersion, getUpdatingTimestamp, getUpdatingURN, tsStr, writeAttributes |
| Methods inherited from class ist.palcom.resource.descriptor.ASTNode |
addASTtoList, addChild, Define_CommandInfo_ci, Define_Device_parentDevice, Define_Identifier_getLocalName, Define_NetworkNode_lookup, Define_PRDAssembly_ai, Define_PRDSecondOrderList_list, Define_Service_inhCust, Define_Service_inhProv, Define_String_expectedType, Define_Universe_universe, getChild, getChildNoTransform, getErrorList, getIndent, getIndexOfChild, getNumChild, getParent, getParentPRDAssembly, getPrettyClosingString, getPrettyString, insertChild, prettyprint, prettyPrintChildren, remove, removeChild, reset, resetTree, setChild, setParent |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
lookupVariable_String_visited
protected java.util.Set lookupVariable_String_visited
lookupDevice_URN_visited
protected java.util.Set lookupDevice_URN_visited
lookupDevice_Identifier_visited
protected java.util.Set lookupDevice_Identifier_visited
lookupService_URN_visited
protected java.util.Set lookupService_URN_visited
lookupService_ServiceUse_visited
protected java.util.Set lookupService_ServiceUse_visited
lookupService_Identifier_visited
protected java.util.Set lookupService_Identifier_visited
lookupConnection_ServiceExp_ServiceExp_visited
protected java.util.Set lookupConnection_ServiceExp_ServiceExp_visited
lookupConnections_ServiceExp_visited
protected java.util.Set lookupConnections_ServiceExp_visited
getParentAssemblyInfo_visited
protected boolean getParentAssemblyInfo_visited
getAssemblyLabel_visited
protected boolean getAssemblyLabel_visited
encloseInBraces_visited
protected boolean encloseInBraces_visited
ad_visited
protected boolean ad_visited
AssemblyInfo
public AssemblyInfo(java.lang.String p1,
DeviceDeclList p2,
ServiceDeclList p3,
ConnectionDeclList p4,
Opt p5,
Opt p6)
- Deprecated.
- The AssemblyInfo constructor without the version parameters
is only intended to keep old code compiling. Please update your code.
The format field is assigned a default value, "2".
The version field is assigned a default value, "1".
AssemblyInfo
public AssemblyInfo(java.lang.String format,
java.lang.String name,
URN DeviceURN,
java.lang.String logicalVersion)
AssemblyInfo
public AssemblyInfo()
AssemblyInfo
public AssemblyInfo(java.lang.String p0,
java.lang.String p1,
java.lang.String p2,
boolean p3,
DeviceDeclList p4,
ServiceDeclList p5,
ConnectionDeclList p6,
Opt p7,
Opt p8)
flushCache
public void flushCache()
- Overrides:
flushCache in class InfoRoot
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Overrides:
clone in class InfoRoot
- Throws:
java.lang.CloneNotSupportedException
copy
public ASTNode copy()
- Overrides:
copy in class ASTNode
fullCopy
public ASTNode fullCopy()
- Overrides:
fullCopy in class ASTNode
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.
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
getIDforEditing
public java.lang.String getIDforEditing()
- Description copied from class:
ASTNode
- get the ID (name, etc) of the attribute or child to be edited
when selecting the node.
- Overrides:
getIDforEditing in class ASTNode
updateIDfromEditor
public boolean updateIDfromEditor(java.lang.String id)
- Description copied from class:
ASTNode
- Set the new name (ID, etc).
- Overrides:
updateIDfromEditor in class ASTNode
- Returns:
- true if the tree was actually changed.
getURN
public URN getURN()
- Overrides:
getURN in class Info
- Returns:
- The URN of the entity described, or null if not applicable.
getDeviceURN
public URN getDeviceURN()
- Overrides:
getDeviceURN in class Info
- Returns:
- The URN of the device that the entity belongs to, or null.
setThisReferencesToDeviceURN
public void setThisReferencesToDeviceURN(URN deviceURN)
getChildArray
public java.lang.Object[] getChildArray()
- Description copied from class:
ASTNode
- Helper method for the TreeView
- Overrides:
getChildArray in class ASTNode
- Returns:
- The (interesting) children of a node, as an Object array
possibly bypassing levels in the tree or ignoring certain children.
getURNLeaf
public URNLeaf getURNLeaf()
checkReleasedForEditing
public boolean checkReleasedForEditing()
newVersion
public AssemblyInfo newVersion(URN urn,
java.lang.String logicalVersion)
- Create a new version (full copy).
Sets this version as released;
isRelatedTo
public boolean isRelatedTo(AssemblyInfo ai)
- Checks if ai and this are versions of the same entity,
i.e., they share a common ancestor.
isUpdate
public boolean isUpdate(AssemblyInfo ai)
- Checks if ai is an update to this
- Returns:
- true if this and ai have a common ancestor, and
it there is a known path in the version tree from
this to ai. (I.e., the parent version is present)
getTagName
public java.lang.String getTagName()
- Specified by:
getTagName in interface XMLRepresentable- Specified by:
getTagName in class AbstractXMLRepresentable
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- Overrides:
initializeFromElement in class InfoRoot
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
writeXMLElement
public void writeXMLElement(KXmlSerializer serializer)
throws java.io.IOException
- Specified by:
writeXMLElement in interface XMLRepresentable
- Throws:
java.io.IOException
lookupAndFormatURN
public java.lang.String lookupAndFormatURN(URN urn)
numChildren
protected int numChildren()
- Overrides:
numChildren in class InfoRoot
setFormat
public void setFormat(java.lang.String value)
- Overrides:
setFormat in class InfoRoot
getFormat
public java.lang.String getFormat()
- Overrides:
getFormat in class InfoRoot
setName
public void setName(java.lang.String value)
- Overrides:
setName in class InfoRoot
getName
public java.lang.String getName()
- Overrides:
getName in class InfoRoot
setVersion
public void setVersion(java.lang.String value)
- Overrides:
setVersion in class InfoRoot
getVersion
public java.lang.String getVersion()
- Overrides:
getVersion in class InfoRoot
setReleased
public void setReleased(boolean value)
getReleased
public boolean getReleased()
setDevices
public void setDevices(DeviceDeclList node)
getDevices
public DeviceDeclList getDevices()
getDevicesNoTransform
public DeviceDeclList getDevicesNoTransform()
setServices
public void setServices(ServiceDeclList node)
getServices
public ServiceDeclList getServices()
getServicesNoTransform
public ServiceDeclList getServicesNoTransform()
setConnections
public void setConnections(ConnectionDeclList node)
getConnections
public ConnectionDeclList getConnections()
getConnectionsNoTransform
public ConnectionDeclList getConnectionsNoTransform()
setEventHandlerScriptOpt
public void setEventHandlerScriptOpt(Opt opt)
hasEventHandlerScript
public boolean hasEventHandlerScript()
getEventHandlerScript
public EventHandlerScript getEventHandlerScript()
setEventHandlerScript
public void setEventHandlerScript(EventHandlerScript node)
getEventHandlerScriptOpt
public Opt getEventHandlerScriptOpt()
getEventHandlerScriptOptNoTransform
public Opt getEventHandlerScriptOptNoTransform()
setServiceDescriptionOpt
public void setServiceDescriptionOpt(Opt opt)
hasServiceDescription
public boolean hasServiceDescription()
getServiceDescription
public ServiceDescription getServiceDescription()
setServiceDescription
public void setServiceDescription(ServiceDescription node)
getServiceDescriptionOpt
public Opt getServiceDescriptionOpt()
getServiceDescriptionOptNoTransform
public Opt getServiceDescriptionOptNoTransform()
lookupVariable
public VariableDecl lookupVariable(java.lang.String name)
lookupDevice
public DeviceDecl lookupDevice(URN urn)
lookupDevice
public DeviceDecl lookupDevice(Identifier id)
lookupService
public ServiceDecl lookupService(URN urn)
lookupService
public ServiceDecl lookupService(ServiceUse su)
lookupService
public ServiceDecl lookupService(Identifier id)
lookupConnection
public ConnectionDecl lookupConnection(ServiceExp cust,
ServiceExp prov)
lookupConnections
public java.util.ArrayList lookupConnections(ServiceExp svc)
getParentAssemblyInfo
public AssemblyInfo getParentAssemblyInfo()
- This is a hack used for the released flag check.
(as ASTNode cannot inherit ai())
- Returns:
- the AssemblyInfo at the root of the tree or null
Declared in AssemblyVersioning.jadd at line 172
getAssemblyLabel
public java.lang.String getAssemblyLabel()
- Overrides:
getAssemblyLabel in class ASTNode
encloseInBraces
public boolean encloseInBraces()
- Overrides:
encloseInBraces in class ASTNode
ad
public AssemblyDescriptor ad()
Define_AssemblyInfo_ai
public AssemblyInfo Define_AssemblyInfo_ai(ASTNode caller,
ASTNode child)