Package org.cip4.jdflib.node
Class JDFNode
java.lang.Object
org.apache.xerces.dom.NodeImpl
org.apache.xerces.dom.ChildNode
org.apache.xerces.dom.ParentNode
org.apache.xerces.dom.ElementImpl
org.apache.xerces.dom.ElementNSImpl
org.cip4.jdflib.core.KElement
org.cip4.jdflib.core.JDFElement
org.cip4.jdflib.node.JDFNode
- All Implemented Interfaces:
Serializable,Cloneable,INodeIdentifiable,IStreamWriter,IURLSetter,Element,ElementTraversal,EventTarget,Node,NodeList,TypeInfo
This is the main node for the JDF ticket. Others are around, but this is the main one to do editing.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classclassstatic enumstatic final classinner class EnumActivation:
Enumeration for attribute Activationstatic final classEnumeration for the policy of cleaning up the Spawn and Merge auditsstatic final classEnumeration for accessing typesafe nodesstatic final classinner class EnumType: Enumeration for accessing typesafe node typesstatic enumclasssynchronization of stati based on child jdf node statusNested classes/interfaces inherited from class org.cip4.jdflib.core.JDFElement
JDFElement.ENodeStatus, JDFElement.EnumBoolean, JDFElement.EnumNamedColor, JDFElement.EnumNodeStatus, JDFElement.EnumOrientation, JDFElement.EnumPoolType, JDFElement.EnumSeparation, JDFElement.EnumSettingsPolicy, JDFElement.EnumSides, JDFElement.EnumValidationLevel, JDFElement.EnumVersion, JDFElement.EnumXYRelation, JDFElement.EOrientation, JDFElement.ESides, JDFElement.eUnit, JDFElement.EVersionNested classes/interfaces inherited from class org.cip4.jdflib.core.KElement
KElement.MultiAttributeComparator, KElement.SimpleElementNameComparator, KElement.SimpleNodeComparator, KElement.SingleAttributeComparator, KElement.SingleXPathComparator -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JDFNode.EnumActivationDeprecated.use EnumActivation.Activestatic final JDFNode.EnumActivationDeprecated.use EnumActivation.Heldstatic final JDFNode.EnumActivationDeprecated.use EnumActivation.Inactivestatic final JDFNode.EnumActivationDeprecated.use EnumActivation.EnumActivation.Informativestatic final JDFNode.EnumActivationDeprecated.use EnumActivation.TestRunstatic final JDFNode.EnumActivationDeprecated.use EnumActivation.TestRunAndGostatic final JDFNode.EnumProcessUsageDeprecated.use EnumProcessUsage.xxxstatic final JDFNode.EnumProcessUsageDeprecated.use EnumProcessUsage.xxxstatic final JDFNode.EnumProcessUsageDeprecated.use EnumProcessUsage.xxxstatic final JDFNode.EnumProcessUsageDeprecated.use EnumProcessUsage.xxxstatic final JDFNode.EnumProcessUsageDeprecated.use EnumProcessUsage.xxxstatic final JDFNode.EnumProcessUsageDeprecated.use EnumProcessUsage.xxxstatic final JDFNode.EnumProcessUsageDeprecated.use EnumProcessUsage.xxxstatic final JDFNode.EnumProcessUsageDeprecated.use EnumProcessUsage.xxxstatic final JDFNode.EnumProcessUsageDeprecated.use EnumProcessUsage.xxxstatic final JDFNode.EnumProcessUsageDeprecated.use EnumProcessUsage.xxxstatic final JDFNode.EnumProcessUsageDeprecated.use EnumProcessUsage.xxxstatic final JDFNode.EnumProcessUsageDeprecated.use EnumProcessUsage.xxxstatic final JDFNode.EnumProcessUsageDeprecated.use EnumProcessUsage.xxxstatic final JDFNode.EnumProcessUsageDeprecated.use EnumProcessUsage.xxxstatic final JDFNode.EnumProcessUsageDeprecated.use EnumProcessUsage.xxxstatic final JDFNode.EnumProcessUsageDeprecated.use EnumProcessUsage.xxxstatic final JDFNode.EnumProcessUsageDeprecated.use EnumProcessUsage.xxxstatic final JDFNode.EnumProcessUsageDeprecated.use EnumProcessUsage.xxxstatic final JDFNode.EnumProcessUsageDeprecated.use EnumProcessUsage.xxxstatic final JDFNode.EnumProcessUsageDeprecated.use EnumProcessUsage.xxxstatic final JDFNode.EnumProcessUsageDeprecated.use EnumProcessUsage.xxxstatic final JDFNode.EnumProcessUsageDeprecated.use EnumProcessUsage.xxxstatic final JDFNode.EnumProcessUsageDeprecated.use EnumProcessUsage.xxxstatic final JDFNode.EnumProcessUsageDeprecated.use EnumProcessUsage.xxxstatic final JDFNode.EnumProcessUsageDeprecated.use EnumProcessUsage.xxxstatic final JDFNode.EnumProcessUsageDeprecated.use EnumProcessUsage.xxxstatic final JDFNode.EnumProcessUsageDeprecated.use EnumProcessUsage.xxxstatic final JDFNode.EnumProcessUsageDeprecated.use EnumProcessUsage.xxxstatic final JDFNode.EnumProcessUsageDeprecated.use EnumProcessUsage.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.Type_xxx xstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxstatic final JDFNode.EnumTypeDeprecated.use EnumType.xxxFields inherited from class org.apache.xerces.dom.ElementNSImpl
localName, namespaceURIFields inherited from class org.apache.xerces.dom.ElementImpl
attributes, nameFields inherited from class org.apache.xerces.dom.ParentNode
firstChild, fNodeListCache, ownerDocumentFields inherited from class org.apache.xerces.dom.ChildNode
nextSibling, previousSiblingFields inherited from class org.apache.xerces.dom.NodeImpl
DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_IS_CONTAINED, DOCUMENT_POSITION_PRECEDING, ELEMENT_DEFINITION_NODE, FIRSTCHILD, flags, HASSTRING, ID, IGNORABLEWS, NORMALIZED, OWNED, ownerNode, READONLY, SPECIFIED, SYNCCHILDREN, SYNCDATA, TREE_POSITION_ANCESTOR, TREE_POSITION_DESCENDANT, TREE_POSITION_DISCONNECTED, TREE_POSITION_EQUIVALENT, TREE_POSITION_FOLLOWING, TREE_POSITION_PRECEDING, TREE_POSITION_SAME_NODEFields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODEFields inherited from interface org.w3c.dom.TypeInfo
DERIVATION_EXTENSION, DERIVATION_LIST, DERIVATION_RESTRICTION, DERIVATION_UNION -
Constructor Summary
ConstructorsConstructorDescriptionConstructor for JDFNodeJDFNode(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String myNamespaceURI, String qualifiedName) Constructor for JDFNodeJDFNode(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String myNamespaceURI, String qualifiedName, String myLocalName) Constructor for JDFNode -
Method Summary
Modifier and TypeMethodDescriptionaddCombined(VString tasks) add a combined nodeaddComponent(String cType, boolean bInput, JDFNode resRoot, boolean bLink) Deprecated.use standard addResourceaddConsumable(String strName, boolean bInput, JDFNode resRoot, boolean bLink) Deprecated.use addResource(name, null, true, null, true)addHandling(String strName, boolean bInput, JDFNode resRoot, boolean bLink) Deprecated.use addResource(name, null, true, null, true)addInternalPipe(String resourceName, int indexOutput, int indexInput) add an internal pipe (an input and an output link to an explicitly defined exchange resource)addJDFNode(String typ) add a JDFNode remove @Types to avoid inconsistent JDFadd a JDFNodeaddModified(String by) addModifiedaddParameter(String strName, boolean bInput, JDFNode resRoot, boolean bLink) Deprecated.use addResource(strName, JDFResource.EnumClass.Parameter, bInput, resRoot, bLink, null)addProcess(String prodName) Deprecated.use addJDFNode(EnumType typ) or addJDFNode(String typ)addProcessGroup(VString tasks) Add a process group nodeadd a product node to thisaddResource(String strName, JDFResourceLink.EnumUsage usage) addResource - add a resource to resroot and link it to this process utility with the minimal parameter setaddResource(String strName, JDFResource.EnumResourceClass resClass, boolean bInput, JDFNode resRoot, boolean bLink, String nameSpaceURI) Deprecated.use addResource(String strName, JDFResource.EnumResourceClass resClass, EnumUsage usage, EnumProcessUsage processUsage, JDFNode resRoot, String nameSpaceURI)addResource(String strName, JDFResource.EnumResourceClass resClass, JDFResourceLink.EnumUsage usage, JDFNode.EnumProcessUsage processUsage, JDFNode resRoot, String nameSpaceURI, JDFResource toReplace) addResource - add a resource to resroot and link it to this processDeprecated.use addJDFNodeDeprecated.use addJDFNodevoidaddTypes(JDFNode.EnumType typ) add typ to the types list if this is a combined node or gray boxvoidaddTypes(JDFNode.EnumType typ, JDFNode.EnumType combineType, boolean unique) add typ to the types list if this is a combined node or gray boxappends a CustomerInfo to thisappendMatchingResource(String resName, JDFResourceLink.EnumUsage usage) Method AppendMatchingResource.appendMatchingResource(String resName, JDFNode.EnumProcessUsage processUsage, JDFNode resourceRoot) Method AppendMatchingResource.appends a NodeInfo to thisappendNodeInfo(int combinedProcessIndex) appends a NodeInfo for a given combinedprocessindex to thisAppend a ResourceLinkPool element, return existing element if one already existappend a ResourcePool element, return existing element if one already existappend a StatusPool element, return existing element if one already existprotected voidcheckPredecessorResource(boolean bPre, boolean bDirect, HashSet<KElement> h, HashSet<org.cip4.jdflib.node.JDFNode.ResPart> done, KElement resElem) checkSpawnedResources(VString vRWResources, VJDFAttributeMap vSpawnParts) add any resources that live in ancestor nodes to this nodecloneResourceToModify(JDFResourceLink resLink) clone the target resource of this and generate a ResourceAudit in the parent node's AuditPool.booleancontainsType(String type) Check whether typ or types contains typestatic JDFNodevoidensureCombined(JDFNode.EnumType combineType) one of Combined or ProcessGroupensureLink(JDFResource jdfResource, JDFResourceLink.EnumUsage usage, JDFNode.EnumProcessUsage processUsage) ensureLinkPU(JDFResource jdfResource, JDFResourceLink.EnumUsage usage, String processUsage) ensureLink: if it does not yet exist, create a resourceLink in the resourceLinkPool that refers to the resource jdfResource also sets the appropriate combined process indexvoidensure that the linked resource and all referenced resources are correctly positionedvoidvoidremoves all unlinked resourcesbooleanfitsActivation(JDFNode.EnumActivation active, boolean bWalkThroughAncestors) the activation state of this nodebooleanfixNiCi(JDFElement.EnumVersion version) fix NodeInfo and CustomerInfoDeprecated.060406 use getActivation(false)getActivation(boolean bWalkThroughAncestors) get attribute Activation; defaults to ActivegetAllRefs(HashSet<JDFElement> vDoneRefs, boolean bRecurse) get inter-resource linked resource refs and resourcs linksGets the vector of the string Type/Types attribute values of the given JDFNode by recursively traversing the tree
returns exactly one element="Product" if the tested node's type is productgetAncestorAttribute(String attrib, String nameSpaceURI, String def) searches for the first element occurence in the parent nodes and then the ancestor elements of the root ancestorpoolgetAncestorElement(String element, String nameSpaceURI) searches for the first element occurence in this and the ancestor elementsgetAncestorElementAttribute(String element, String attrib, String nameSpaceURI, String def) searches for the first attribute occurence in the ancestor elements subelementsGet an ordered list of all Parents ID attributes:
the last entry is the direct parent, the last-1 entry is the grandparent etc.
This is analog to the definition of JDFAncestorPoolgetAncestorNode(int nSkip) Deprecated.use getParentJDF()get string attribute CategorygetCategory(boolean bInherit) Deprecated.- use getCategory() insteadgetChildJDFNode(String id, boolean bDirect) get a Child JDFNode with a given ID attributeintgetCombinedProcessIndex(String typ, int start) get the first index of a process in types after startintgetCombinedProcessIndex(JDFNode.EnumType typ, int start) get the first index of a process in types after startDeprecated.use getTypes() or getEnumTypes()get a vector with all nodesgets the existing CustomerInfo or creates a new one if none exists this method will check if a NodeInfo exists,gets the existing NodeInfo or creates a new one if none exists this method will check if a NodeInfo exists,getCreateResource(String strName, JDFResourceLink.EnumUsage usage) Get the linked resource with name=strName; create it if it does not existgetCreateResource(String strName, JDFResourceLink.EnumUsage usage, int i) Get the linked resource with name=strName; create it if it does not existgetCreateResource(String strName, JDFResourceLink.EnumUsage usage, String processUsage) Get the linked resource with name=strNameGet element ResourceLinkPool, create if it doesn't existGet element ResourcePool, create if it doesn't existGet element StatusPool, create if it doesn't existgets the existing CustomerInfoDeprecated.06�221 use getInheritedCustomerInfo(String attName)Deprecated.06�221 use getInheritedCustomerInfo(String attName)getCustomerInfoContact(int iSkip) Deprecated.06�221 use getInheritedCustomerInfo(String attName)Deprecated.06�221 use getInheritedCustomerInfo(String attName)Deprecated.06�221 use getInheritedCustomerInfo(String attName)getCustomerInfoCustomerMessage(int iSkip) Deprecated.06�221 use getInheritedCustomerInfo(String attName)Deprecated.06�221 use getInheritedCustomerInfo(String attName)Deprecated.06�221 use getInheritedCustomerInfo(String attName)getEnumProcessUsage(String info, int i) Deprecated.get the enumerated type value of @Typeget the Types as a vector of EnumTypegetExecutablePartitions(JDFResourceLink link, JDFResource.EnumResStatus minStatus) Deprecated.only for backward compatibility !!!getExecutablePartitions(JDFResourceLink link, JDFResource.EnumResStatus minStatus, boolean bCheckNodeStatus) Gets the executable partitions of the resource in this node (with corresponding resource link).getExecutablePartitions(JDFResourceLink link, JDFResource res, JDFResource.EnumResStatus minStatus) Deprecated.use getExecutablePartitions(link, minStatus);getGeneralID(String idUsage, int iPos) Gets IDValue of the GeneralID with IDUsage=idUsage null, if none existsgetGeneralID(String idUsage, int iPos, boolean inherit) Gets IDValue of the GeneralID with IDUsage=idUsage null, if none existsgetICSVersions(boolean bInherit) get NMTOKENS attribute ICSVersionsgets the NodeIdetifier that matches thisgetIDPrefixDeprecated.06�221 use getInheritedCustomerInfo(String xPath)getInheritedCustomerInfo(String xPath) get first CustomerInfo element from child list or child list of any ancestorDeprecated.060221 use getInheritedNodeInfo(String xPath)getInheritedNodeInfo(String xPath) get first NodeInfo element from child list or child list of any ancestorgetInsertLinkVector(int nMax) get a vector of Link names that may be inserted in this element if the links need a processusage, the format is LinkName:ProcessUsageGet vector of linked input resource intentsgetInvalidLinks(JDFElement.EnumValidationLevel level, int nMax) typesafe validator utilitygetJDF(int iSkip) getJobPart - get a child node with a given jobpartidgetJobID(boolean bInherit) get string attribute JobIDgetJobPart(String jobPartID) convenience deep gettergetJobPart(String jobPartID, String jobID) getJobPart - get a child node with a given jobpartidgetJobPart(NodeIdentifier nodeID) getJobPart - get a child node with a given jobpartidDeprecated.use getJobPartID(false);getJobPartID(boolean bInherit) get string attribute JobIDgetLink(int index, String linkName, JDFAttributeMap mLinkAtt, String linkNS) getLink - get the n'th link matching mLinkAtt out of the resource link poolgetLink(String strName, JDFResourceLink.EnumUsage usage, String processUsage) Get the resource link with name=strName - conveniencegetLink(String strName, JDFResourceLink.EnumUsage usage, String processUsage, String namespaceURI, int i) Get the resource link with name=strNamegetLink(JDFResource r, boolean bInput) Deprecated.use getLink(resource, EnumUsage)getLink(JDFResource r, JDFResourceLink.EnumUsage usage) getLink - get the resourcelink that resides in the ResourceLinkPool of this node and references the resource rgetLinkedResources(JDFAttributeMap mResAtt, boolean bFollowRefs) get the linked resources matching certain conditions
combines all linked resources from ResourceLinkPool, CustomerInfo, NodeInfo and AuditPoolgetLinkedResourceVector(JDFResourceLink.EnumUsage usage, String resName, JDFNode.EnumProcessUsage procUsage, boolean expandLeaves) get the vector of all resource leaves linked to a resourceDeprecated.this routine does not belong here at all!getLinks(String linkName, JDFAttributeMap mLinkAtt, String linkNS) Deprecated.- use getResourceLinksgetLinksForCombinedProcessIndex(int combinedProcessIndex) get the links that are selected by a given CombinedProcessIndex
all links with no CombinedProcessIndex are included in the listgetLinksForType(JDFNode.EnumType type, int nType) get the links that are selected by a given CombinedProcessIndex
all links with no CombinedProcessIndex are included in the listgetMatchingLink(String resName, JDFNode.EnumProcessUsage processUsage, int pos) get the link that matches the typesafe resource name
if the Resource type is not defined for the process represented by this node, the link is ignored (see JDF Spec Chapter 6)getMatchingLinks(String resName, boolean bLink, JDFNode.EnumProcessUsage processUsage) get the links that match the typesafe resource name if the Resource type is not defined for the process represented by this node see chapter 6 JDFSpec, then the links are ignoredreturns all subnodes of this (including this) that match nigetMatchingResource(String resName, int processUsage, JDFAttributeMap partMap, int pos) Deprecated.use getMatchingResource(String resName, EnumProcessUsage processUsage, JDFAttributeMap partMap, int pos))getMatchingResource(String resName, JDFNode.EnumProcessUsage processUsage, JDFAttributeMap partMap, int pos) get the resource that matches a typesafe resource name if the Resource type is not defined for the process represented by this node see chapter 6 JDFSpec, then the resource is ignoredintgetMaxJobPartId(String idPrefix) gets the maximum job part id; note that this assumes integer job part ids returngetMaxVersion(boolean bInherit) get attribute MaxVersion, defaults to version if not setintgetMinID()Deprecated.- actually does more harm than goodgetMissingLinks(int nMax) Deprecated.use getMissingLinkVectorgetMissingLinkVector(int nMax) get a vector of Link names that are missing in this element
if the links need a processusage, the format is LinkName:ProcessUsageGet NMTOKENS attribute NamedFeaturesgets the existing local NodeInfo if it is a resource or an element and the NodeInfo is unique for all CombinedProcessIndex valuesgetNodeInfo(int combinedProcessIndex) gets the existing local NodeInfo for a given CombinedProcessIndexDeprecated.06�221 use getInheritedNodeInfo(String attName)Deprecated.06�221 use getInheritedNodeInfo(String attName)Deprecated.06�221 use getInheritedNodeInfo(String attName)Deprecated.06�221 use getInheritedNodeInfo(String attName)getNodeInfoJMF(int iSkip) Deprecated.06�221 use getInheritedNodeInfo(String attName)intDeprecated.06�221 use getInheritedNodeInfo(String attName)Deprecated.06�221 use getInheritedNodeInfo(String attName)getNodeInfoNotificationFilter(int iSkip) Deprecated.06�221 use getInheritedNodeInfo(String attName)return the partMapVector defined in AncestorPool or NodeInfo or output resource in that sequence, null if no NodeInfo exists, or NodeInfo has no Part elementsDeprecated.06�221 use getInheritedNodeInfo(String attName)Deprecated.06�221 use getInheritedNodeInfo(String attName)Deprecated.06�221 use getInheritedNodeInfo(String attName)Deprecated.06�221 use getInheritedNodeInfo(String attName)Get an ordered list of the ids of the parents of this node
the last element in the pool is the direct parent, the second to last is the grandparent etc.get the Parent JDFNode, null if the parent element is the document or an envelope xmlDeprecated.use getParentJDF()get the Parent JDFNode with Type=Product, null if the parent element is the document or an envelope xml or no product existsgetPartIDKeys(JDFAttributeMap partMap) get a heuristic partidkey vector from the partitons of the linked resourcesreturn the partMapVector defined in AncestorPool, null if no AncestorPool exists, or AncestorPool has no Part elementsgetPartStatus(JDFAttributeMap mattr) Deprecated.us 2 parameter methodgetPartStatus(JDFAttributeMap attMap, int method) get the node's partition status, even if the link does not match mattrget the node's partition statusdetailsgetPredecessors(boolean bPre) Deprecated.use getPredecessors(bPre,false);getPredecessors(boolean bPre, boolean bDirect) get a vector of all direct predecessor or following nodes, depending on bPreJDFNode[]Deprecated.use getvJDFNode(null,null,false) and skip intermediate nodesgetProcessStatus(JDFAttributeMap mattr) Deprecated.use getPartStatus()Deprecated.use getProjectID(boolean bInherit)getProjectID(boolean bInherit) get string attribute ProjectIDgetRelatedJobID(boolean bInherit) get string attribute RelatedJobIDgetRelatedJobPartID(boolean bInherit) get string attribute RelatedJobPartIDgetResource(String strName) Get the linked resource with name=strNamegetResource(String strName, JDFResourceLink.EnumUsage usage) Get the linked resource with name=strNamegetResource(String strName, JDFResourceLink.EnumUsage usage, int i) Get the linked resource with name=strNamegetResource(String strName, JDFResourceLink.EnumUsage usage, String processUsage, String namespaceURI, int i) Get the linked resource with name=strNamegetResource(String strName, JDFResourceLink.EnumUsage usage, JDFNode.EnumProcessUsage processUsage, int i) Get the linked resource with name=strNamegetResource(String strName, JDFResourceLink.EnumUsage usage, JDFNode.EnumProcessUsage processUsage, int i, String namespaceURI) Deprecated.getResourceIDs(boolean isInput) Returns the input or output resource IDs of this process node.getResourceLeaves(String strName, JDFResourceLink.EnumUsage usage) Get the linked resource with name=strNamegetResourceLeaves(String strName, JDFResourceLink.EnumUsage usage, String processUsage, String namespaceURI, int i) Get the linked resource with name=strNameget the first ResourceLinkPool elementDeprecated.use getResourceLinks(null)getResourceLinks(String linkName, JDFAttributeMap mLinkAtt, String linkNS) getLinks - get the links matching mLinkAtt out of the resource link poolgetResourceLinks(JDFAttributeMap mLinkAtt) get the resourcelinks in the resourcepool of this nodeget the first ResourcePool elementgetResourceRoot(String strName, JDFResourceLink.EnumUsage usage, int i) Get the linked resource with name=strNamegetRoot()getRoot - this function returns the root of the JDF documentDeprecated.use getSpawnID(boolean)getSpawnID(boolean bInherit) get string attribute SpawnIDget string attribute StatusDetailsgetStatusDetails(boolean bInherit) Deprecated.- use getStatusDetails() insteadreturn the partMapVector defined by nodeInfo partitioning null if nodeInfo is not partitioned or if the node status is neither pool nor partget the first StatusPool elementget the status synchronizerReturns a resource with id anywhere in the tree below this node similar to getTarget(id) but looks only in the resource pool's direct childrenbooleanget boolean attribute Template, default=falsegetTemplateID(boolean bInherit) get string attribute TemplateIDgetTemplateVersion(boolean bInherit) get string attribute TemplateVersionprotected AttributeInfodefinition of optional attributes in the JDF namespaceprotected ElementInfogetType()getType - get node TypegetTypes()get the Types as a vector of stringsgetType - get node Types or Type attributegetUnknownLinkVector(VString vInNameSpace, int nMax) get a vector of ResourceLink elements that exist but are unknown by this elementgetUnlinkedResources(boolean bLocal) Deprecated.- Use @see UnlinkFindergetURL()gets the CommentURL this allows us to implementIURLSetterand automagically manipulate attatched commenturl filesget the input stream that reads from URLget the status for the vector vget the statusdetails for the vector vgetVersion(boolean bInherit) get enum attribute "version"getvJDFNode(String task, boolean active) Deprecated.use public Vector getvJDFNode(task, JDFNode.EnumActivation.Unknown, false)getvJDFNode(String task, JDFNode.EnumActivation active, boolean bDirect) Get a vector of all JDF children with type nodeTypeget the NodeInfo/@workstepid for a given partition if no workstepID exists, returns jobPartIDbooleanhasActivation(boolean bInherit) Check existance of attribute ActivationbooleanhasAncestorAttribute(String attrib, String nameSpaceURI) true if a non default attribute occurence in the parent nodes and then the ancestor elements of the root ancestorpool existsbooleanhasAncestorElement(String element, String nameSpaceURI) Deprecated.booleanhasAncestorElementAttribute(String element, String attrib, String nameSpaceURI) true if a non default attribute occurs in the parent nodes and the ancestor elements subelements of the root ancestorpool existsbooleanDeprecated.use numChildElements(ElementName.ANCESTORPOOL, null) > 0;booleanDeprecated.use getCustomerInfo()!=nullbooleantrue if invalid Links are in this elementbooleanhasJobID(boolean bInherit) Deprecated.booleanDeprecated.use getNodeInfo()!=nullbooleancheck whether a node with the same ID as one in p's ancestorpool exists in this documentbooleanDeprecated.booleanhasProjectID(boolean bInherit) Deprecated.booleanDeprecated.booleanhasType()Deprecated.use inline hasAttributebooleanhasVersion(boolean bInherit) Check existence of attribute "version"booleaninit()init - init the nodevoidinsertTypeInTypes(JDFNode.EnumType type, int beforePos) insert a new Process into @Types at the position posbooleanisActive()Deprecated.use fitsActivationbooleanisActive(boolean bWalkThroughAnchestors) Deprecated.use fitsActivationbooleanisCombined - is this a Combined resource type ?booleanisExecutable(JDFAttributeMap partMap, boolean bCheckChildren) booleanIs this a group node type (ProcessGroup or Product)?booleanis this the JDF root element, i.e.booleanIs this a Combined node type ?booleanChecks if this node is a simple process (including Combined and grey box ProcessGroup) leaf node.booleanIs this a product node type ?booleanisSuccessor(JDFNode proc) Checks if this process is the successor of the given process node.booleanIs this a group node type that allows @Types (ProcessGroup or Combined)?booleantypesafe validator, checks whether all resource links are okbooleanisValidLink(String resName, JDFResourceLink.EnumUsage usage, String processUsage) isValidLink check whether an resLink is legal for this classbooleanisValidLink check whether an resLink is legal for this classlinkInfo()Deprecated.linkMatchingResource(JDFResource resource, JDFNode.EnumProcessUsage processUsage, JDFAttributeMap partMap) Append a resource that matches the typesafe link described by resource namedefinition of resource link names in the JDF namespacevoidlinkOutputs(JDFNode thePreviousNode) links all output resources of thePreviousNode as inputs to thislinkResource(JDFResource jdfResource, boolean input, boolean bForce) Deprecated.use linkResource(enum)linkResource(JDFResource jdfResource, JDFResourceLink.EnumUsage usage, JDFNode.EnumProcessUsage processUsage) LinkResource: create a resourceLink in the resourceLinkPool that refers to the resource jdfResource also sets the appropriate combined process indexmergeJDF(JDFNode toMerge, String urlMerge, JDFNode.EnumCleanUpMerge cleanPolicy, JDFResource.EnumAmountMerge amountPolicy) Deprecated.use JDFMerge classmerge nodes in a way that no duplicate elements are created
attention !! this kills pools !!intDeprecated.must never be more than one...intnumMatchingLinks(String resName, boolean bLink, JDFNode.EnumProcessUsage processUsage) get the number of links that match the typesafe link resource nameintDeprecated.must never be more than one...static JDFNodeparse a JDF filestatic JDFNodeparse a JDF filestatic JDFNodeparse a JDF input streamprepareNodeInfo(VJDFAttributeMap vSpawnParts) prepare the nodeinfo for a list of parts, e.g.prepareToModifyLink(JDFResourceLink resLink) Generate a ResourceAudit in the parent node's AuditPool an initial copy of the not yet modified resourcelink is inserted
call JDFResourceAudit.UpdateLink with the modified link to finalizevoidDeprecated.booleanDeprecated.voidremove element Customerinfo whether it is an element or a resourcevoidDeprecated.060220 use removeCustomerInfovoidremoveFromTypes(String type, int iSkip) Deprecated.use the 3-parameter versionvoidremoveFromTypes(String type, int iSkip, boolean bRemoveEmptyLink) remove a type from the types list - also cleaning up combinedprocessindexvoidremoveLink(JDFResourceLink l, boolean bRemoveResource) remove a resourceLink and potentially its linked resourcebooleanremoveMatchingLink(String resName, int processUsage, boolean bRemoveResource, int pos) remove the link that matches the typesafe link resource namebooleanremoveMatchingLinks(String resName, JDFNode.EnumProcessUsage processUsage, boolean bRemoveResource) remove the link that matches the typesafe link resource namevoidremoveNode(boolean bLeaveSubmit) Deprecated.voidremove element NodeInfo with ProcessUsage="Ancestor" is infinity.voidDeprecated.removes only 1 NodeInfo.removeResource(String nodeName, int iSkip) removes a Resource from this ResourceLinkPool and from the resourcePool if it is no longer linked to any other processvoidDeprecated.protected voidreplaceUpdate(JDFResourceLink.EnumUsage usage, JDFResource toReplace, JDFResource r) static booleanresourceTypeEqual(JDFResource res1, JDFResource res2) ResourceTypeEqual
Checks whether the given resources are of the same type.voidsetActivation(JDFNode.EnumActivation bActive) Set attribute ActivationvoidsetCategory(String value) set attribute CategoryvoidsetCombined(VString vCombiNodes) setCombined - set the combined node types to the values in vCombiNodesvoidsetICSVersions(VString value) set attribute ICSVersionssetICSVersions(ICSVersion... versions) set attribute ICSVersionsvoidvoidset attribute JobIDvoidsetJobPartID(String jobPartID) Set attribute JobPartIDvoidsetMaxVersion(String value) Deprecated.use setMaxVersion(EnumVersion)voidsetMaxVersion(JDFElement.EnumVersion enumVer) set MaxVersion to enumVervoidsetNamedFeatures(VString value) set attribute NamedFeaturesbooleansetPartStatus(JDFAttributeMap mattr, JDFElement.EnumNodeStatus status) Deprecated.use 3 parameter versionbooleansetPartStatus(JDFAttributeMap mattr, JDFElement.EnumNodeStatus status, String statusDetails) set the node's partition status if nodeinfo is partitioned, all leaves NodeStati below part are removedbooleansetPartStatus(VJDFAttributeMap vmattr, JDFElement.EnumNodeStatus status) Deprecated.use 3 parameter versionbooleansetPartStatus(VJDFAttributeMap vmattr, JDFElement.EnumNodeStatus status, String statusDetails) sets the node's partition status and StatusDetailssetPhase(JDFElement.EnumNodeStatus nodeStatus, String nodeStatusDetails, JDFAutoDeviceInfo.EnumDeviceStatus deviceStatus, String deviceStatusDetails, VJDFAttributeMap vPartMap) Deprecated.use the version with deviceIDvoidsetProjectID(String strValue) set attribute ProjectIDvoidsetRelatedJobID(String value) set attribute ProjectIDvoidsetRelatedJobPartID(String value) set attribute RelatedJobPartIDvoidsetSpawnID(String value) Set attribute SpawnIDvoidsetStatusDetails(String value) set attribute StatusDetailsvoidsetTemplate(boolean value) set attribute TemplatevoidsetTemplateID(String value) set attribute TemplateIDvoidsetTemplateVersion(String value) set attribute TemplateVersionbooleansetType set the type attribute to the string typevoidsetType(JDFNode.EnumType typ) setType set the type attribute to the enumeration type also set xsi:type etcvoidset node Types , also set Type to Combinedvoidset node Types , also set Type to Combinedvoidsets the CommentURL this allows us to implementIURLSetterand automagically manipulate attatched commenturl filesvoidsetVersion(String value) Deprecated.use JDFElement.setVersion(EnumVersion.getEnum(value))voidsetVersion(JDFElement.EnumVersion enumVer) set Version to enumVervoidsorts all elements alphabetically also recurses into the resourcepool and the sub JDF Node NO other sub-elements are sortedspawn(String parentURL, String spawnURL, VString vRWResources_in, VJDFAttributeMap vSpawnParts, boolean bSpawnROPartsOnly, boolean bCopyNodeInfo, boolean bCopyCustomerInfo, boolean bCopyComments) Deprecated.- use JDFSpawn class ( see code below)spawnInformative(String parentURL, String spawnURL, VJDFAttributeMap vSpawnParts, boolean bSpawnROPartsOnly, boolean bCopyNodeInfo, boolean bCopyCustomerInfo, boolean bCopyComments) Deprecated.use JDFSpawn.spawnInformative()voidsynchronize the amounts of a gray box parent with the expanded jdfnodevoidtoGrayBox(boolean bExpand) make any combined or single type process to a gray boxtoString()toString - StringRepresentation of JDFNodeDeprecated.use new JDFSpawn(this).unSpawn(spawnID);voidupdatePartStatus(VJDFAttributeMap vMap, boolean updateKids, boolean updateParents) Deprecated.use 4 parameter versionvoidupdatePartStatus(VJDFAttributeMap vMap, boolean updateKids, boolean updateParents, int method) update the node status or nodeinfo/@NodeStatus for all partitions specified in vMapvoidDeprecated.use updatePartStatus(VJDFAttributeMAP)Methods inherited from class org.cip4.jdflib.core.JDFElement
appendAnchor, appendBestEffortExceptions, appendComment, appendElement, appendGeneralID, appendGeneralID, appendGeneralID, appendHRef, appendHRef, appendMustHonorExceptions, appendOperatorInterventionExceptions, appendPreview, appendrRefs, attributeType, clearTargets, cloneNewDoc, copyChildren, copyInto, createRoot, createRoot, deprecatedAttributes, eraseDefaultAttributes, exclusiveOneOfAttribute, exclusiveOneOfElement, fixVersion, getAtrType, getAttributeInfo, getBestEffortExceptions, getChildElement, getChildElements, getChildElementVector, getChildElementVector_JDFElement, getChildIds, getChildrenByTagName, getChildrenByTagName, getChildWithAttribute, getChildWithMatchingAttribute, getComment, getComment, getCommentText, getCommentURL, getCreateComment, getCreateComment, getCreateElement_JDFElement, getCreatePreview, getCreateRefElement, getDeepElementByID, getDefaultAttributeMap, getDefaultJDFVersion, getDeprecatedAttributes, getDeprecatedElements, getDescriptiveName, getElement, getElement_JDFElement, getElementIDPrefix, getElementInfo, getElementNameVector, getEnumAttribute, getEnumerationsAttribute, getEnumerationsAttribute, getEnumerationsAttribute, getEnumforAttribute, getEnumNodeName, getEnumString, getFirstVersion, getGeneralID, getGeneralID, getGeneralIDListMap, getGeneralIDMap, getGeneralIDVectorMap, getHRef, getHRefs, getHRefs, getInsertElements, getInsertElementVector, getInvalidAttributes, getInvalidElements, getInvalidElements_JDFElement, getJDFRoot, getJMFRoot, getLastVersion, getLinkFromUserData, getLinkRoot, getMissingAttributes, getMissingAttributeVector, getMissingElements, getMissingElementVector, getMustHonorExceptions, getNamesVector, getOperatorInterventionExceptions, getOwnerDocument_JDFElement, getParentJDF, getPartMap, getPartMapArray, getPrereleaseAttributes, getPrereleaseElements, getPreview, getRefElement, getRefElements, getRefString, getrRefs, getSchemaURL, getSchemaURL, getSchemaURL, getSettingsPolicy, getStatus, getTarget, getTarget, getTarget_JDFElement, getTheAttributeInfo_JDFElement, getTheElementInfo_JDFElement, getTypeForAttribute, getUnknownAttributes, getUnknownAttributeVector, getUnknownElements, getUnknownElementVector, getUnknownPoolElements, getURLDoc, getURLInputStream, getValueForNewAttribute, getVersion, getvHRefRes, getvHRefRes, getXMLDocUserData, hasMissingAttributes, hasMissingElements, hasPartMap, hasSettingsPolicy, hasUnknownAttributes, hasUnknownElements, idString, includesMatchingAttribute, inlineRefElements, insertBefore, isComment, isCommentStatic, isDeprecated, isDirty, isInAnyCIP4NameSpaceStatic, isInAnyCIP4NameSpaceStatic, isInAnyJDFNameSpaceStatic, isInAnyJDFNameSpaceStatic, isInJDFNameSpace, isInJDFNameSpaceStatic, isInJDFNameSpaceStatic, isInXJDFNameSpaceStatic, isInXJDFNameSpaceStatic, isJDFNode, isRefElement, isRefElementStatic, isResource, isResourceLink, isResourceLinkStatic, isResourceStatic, isResourceUpdate, isValid_JDFElement, isXJDF, jdfVersion, knownAttributes, knownElements, matchesPath, newID, numChildElements, numChildElements_JDFElement, optionalAttributes, optionalElements, parseString, prereleaseAttributes, prereleaseElements, refElement, removeBestEffortExceptions, removeChild, removeChild, removeChildren, removeExtensions, removeFromBestEffortExceptions, removeFromMustHonorExceptions, removeFromOperatorInterventionExceptions, removeFromrRefs, removeGeneralID, removePartMap, removeRefElement, removeSettingsPolicy, replaceChild, requiredAttributes, requiredElements, requiredLevel, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeNameTimeStamp, setAttributes, setBestEffortExceptions, setCommentText, setCommentText, setCommentURL, setDefaultJDFVersion, setDescriptiveName, setDirty, setEnumerationsAttribute, setEnumsAttribute, setGeneralID, setLongID, setMustHonorExceptions, setOperatorInterventionExceptions, setPartMap, setPartMapVector, setSettingsPolicy, setStatus, setvStringAttribute, stringToVersion, uniqueElements, upDaterRefs, validAttribute, validAttribute, validEnumAttribute, validEnumerationsAttribute, validResourcePosition, version, write2DirMethods inherited from class org.cip4.jdflib.core.KElement
addAttribute, addAttribute, addNameSpace, ancestorDistance, appendAttribute, appendAttribute, appendAttributes, appendCData, appendCData, appendChild, appendElement, appendElementN, appendElementRaw, appendEntityReference, appendText, appendTextElement, appendXMLComment, appendXMLComment, buildRelativeXPath, buildXPath, buildXPath, buildXPath, cleanup, clearNSMap, clone, copyAttribute, copyAttribute, copyAttribute, copyAttribute, copyElement, copyElements, copyXPathValue, createRoot, deleteNode, ensureCase, eraseEmptyAttributes, eraseEmptyNodes, fillHashSet, fitsName, fitsName_KElement, flush, generateDotID, getAttribute, getAttribute, getAttribute, getAttribute_KElement, getAttribute_KElement, getAttributeArray_KElement, getAttributeIgnoreCase, getAttributeMap, getAttributeMap_KElement, getAttributeRaw, getAttributeVector, getAttributeVector_KElement, getBoolAttribute, getCData, getChildArray, getChildArray_KElement, getChildArrayByClass, getChildArrayByClass_KElement, getChildAttributeList, getChildByTagName, getChildElementArray, getChildElementVector, getChildElementVector, getChildElementVector_KElement, getChildFromList, getChildFromList, getChildList, getChildList, getChildNode, getChildNodes_KElement, getChildNodeVector, getChildrenByClass, getChildrenByTagName, getChildrenByTagName_KElement, getChildrenFromList, getChildrenIgnoreList, getChildrenWithAttribute, getChildWithAttribute, getChildWithAttribute, getCreateChildWithAttribute, getCreateElement, getCreateElement, getCreateElement_KElement, getCreateXPathElement, getDeepElement, getDeepParent, getDeepParent, getDeepParentChild, getDeepParentNotName, getDocRoot, getDOMAttr, getElement, getElement_KElement, getElementByClass, getElementHashMap, getElementsByTagName_KElement, getFirstChildElement, getFirstChildElement, getFirstChildElement, getFirstElementNode, getID, getIgnoreCase, getIgnoreCase_KElement, getInheritedAttribute, getInheritedElement, getInheritedXPathAttribute, getIntAttribute, getLocalNameStatic, getLongAttribute, getMultipleIDs, getNamespaceURI, getNamespaceURIFromPrefix, getNextElementNode, getNextSiblingElement, getNextSiblingElement, getNextSiblingElement, getNonEmpty, getNonEmpty_KElement, getNumCDatas, getNumChildNodes, getNumChildText, getNumXMLComments, getOwnerDocument_KElement, getParentNode_KElement, getPreviousSiblingElement, getPreviousSiblingElement, getRealAttribute, getTarget_KElement, getText, getText, getTree, getTree, getTreeByClass, getTreeElement, getXMLComment, getXMLNSNameSpace, getXMLNSPrefix, getXPathAttribute, getXPathAttributeMap, getXPathElement, getXPathElementVector, getXPathValueMap, getXPathValueMap, getXSIType, hasAttribute, hasAttribute, hasAttribute_KElement, hasAttributes, hasChildElement, hasChildElements, hasChildNodes, hasChildText, hasNonEmpty, hasNonEmpty_KElement, hasXPathNode, includesAttribute, includesAttributes, insertAt, insertBefore, isAncestor, isEqual, isEqual, isWildCard, matchesPath, matchesPathName, mergeElement, moveArray, moveAttribute, moveAttribute, moveElement, moveElements, moveMe, normalize, numChildElements_KElement, numChildNodes, numChildNodes, numChildrenByClass, numSiblingElements, pushUp, removeAllText, removeAttribute, removeAttribute, removeAttribute_KElement, removeAttributeNode, removeAttributeNS, removeAttributes, removeCData, removeChildNode, removeChildren, removeChildrenByClass, removeChildText, removeExtensions, removeFromAttribute, removeIgnoreCase, removeIgnoreCase_KElement, removeXMLComment, removeXPathAttribute, removeXPathElement, renameAttribute, renameAttribute, renameElement, replaceElement, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setAttributeNSRaw, setAttributeRaw, setAttributes, setAttributes, setAttributes, setAttributesRaw, setBoolAttribute, setDirty, setID, setIntAttribute, setNamespaceURI, setNodeValue, setNonEmpty, setPrefix, setRealAttribute, setText, setvStringAttribute, setXMLComment, setXMLComment, setXPathAttribute, setXPathValue, setXPathValues, setXSIType, sortChild, sortChild, sortChildren, sortChildren, sortChildren, toDisplayXML, toValueString, toXML, toXML, uniqueID, uniqueID, write2File, write2File, write2Stream, writeStream, xmlNameSpace, xmlnsLocalName, xmlnsPrefixMethods inherited from class org.apache.xerces.dom.ElementNSImpl
getLocalName, getPrefix, getTypeName, getTypeNamespace, getXMLBaseAttribute, isDerivedFrom, setTypeMethods inherited from class org.apache.xerces.dom.ElementImpl
cloneNode, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getBaseURI, getChildElementCount, getDefaultAttributes, getElementsByTagName, getElementsByTagNameNS, getFirstElementChild, getLastElementChild, getNextElementSibling, getNodeName, getNodeType, getPreviousElementSibling, getSchemaTypeInfo, getTagName, getXercesAttribute, hasAttributeNS, isEqualNode, reconcileDefaultAttributes, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setOwnerDocument, setReadOnly, setupDefaultAttributes, setXercesAttributeNode, synchronizeDataMethods inherited from class org.apache.xerces.dom.ParentNode
getChildNodes, getChildNodesUnoptimized, getFirstChild, getLastChild, getLength, getOwnerDocument, getTextContent, hasChildNodes, item, setTextContent, synchronizeChildrenMethods inherited from class org.apache.xerces.dom.ChildNode
getNextSibling, getParentNode, getPreviousSiblingMethods inherited from class org.apache.xerces.dom.NodeImpl
addEventListener, changed, changes, compareDocumentPosition, compareTreePosition, dispatchEvent, getContainer, getFeature, getNodeNumber, getNodeValue, getReadOnly, getUserData, getUserData, getUserDataRecord, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, needsSyncChildren, removeEventListener, setUserData, setUserDataMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.w3c.dom.Element
getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNSMethods inherited from interface org.w3c.dom.Node
cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasChildNodes, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, setTextContent, setUserData
-
Field Details
-
Activation_Inactive
Deprecated.use EnumActivation.Inactive -
Activation_Informative
Deprecated.use EnumActivation.EnumActivation.Informative -
Activation_Held
Deprecated.use EnumActivation.Held -
Activation_TestRun
Deprecated.use EnumActivation.TestRun -
Activation_TestRunAndGo
Deprecated.use EnumActivation.TestRunAndGo -
Activation_Active
Deprecated.use EnumActivation.Active -
Type_ProcessGroup
Deprecated.use EnumType.xxx -
Type_Combined
Deprecated.use EnumType.xxx -
Type_Product
Deprecated.use EnumType.xxx -
Type_Approval
Deprecated.use EnumType.xxx -
Type_Buffer
Deprecated.use EnumType.xxx -
Type_Combine
Deprecated.use EnumType.xxx -
Type_Delivery
Deprecated.use EnumType.xxx -
Type_ManualLabor
Deprecated.use EnumType.xxx -
Type_Ordering
Deprecated.use EnumType.xxx -
Type_Packing
Deprecated.use EnumType.xxx -
Type_QualityControl
Deprecated.use EnumType.xxx -
Type_ResourceDefinition
Deprecated.use EnumType.xxx -
Type_Split
Deprecated.use EnumType.Type_xxx x -
Type_Verification
Deprecated.use EnumType.xxx -
Type_AssetListCreation
Deprecated.use EnumType.xxx -
Type_ColorCorrection
Deprecated.use EnumType.xxx -
Type_ColorSpaceConversion
Deprecated.use EnumType.xxx -
Type_ContactCopying
Deprecated.use EnumType.xxx -
Type_ContoneCalibration
Deprecated.use EnumType.xxx -
Type_DBDocTemplateLayout
Deprecated.use EnumType.xxx -
Type_DBTemplateMerging
Deprecated.use EnumType.xxx -
Type_DigitalDelivery
Deprecated.use EnumType.xxx -
Type_FilmToPlateCopying
Deprecated.use EnumType.xxx -
Type_FormatConversion
Deprecated.use EnumType.xxx -
Type_ImageReplacement
Deprecated.use EnumType.xxx -
Type_ImageSetting
Deprecated.use EnumType.xxx -
Type_Imposition
Deprecated.use EnumType.xxx -
Type_InkZoneCalculation
Deprecated.use EnumType.xxx -
Type_Interpreting
Deprecated.use EnumType.xxx -
Type_LayoutElementProduction
Deprecated.use EnumType.xxx -
Type_LayoutPreparation
Deprecated.use EnumType.xxx -
Type_PDFToPSConversion
Deprecated.use EnumType.xxx -
Type_Preflight
Deprecated.use EnumType.xxx -
Type_PreviewGeneration
Deprecated.use EnumType.xxx -
Type_Proofing
Deprecated.use EnumType.xxx -
Type_PSToPDFConversion
Deprecated.use EnumType.xxx -
Type_Rendering
Deprecated.use EnumType.xxx -
Type_Scanning
Deprecated.use EnumType.xxx -
Type_Screening
Deprecated.use EnumType.xxx -
Type_Separation
Deprecated.use EnumType.xxx -
Type_SoftProofing
Deprecated.use EnumType.xxx -
Type_Stripping
Deprecated.use EnumType.xxx -
Type_Tiling
Deprecated.use EnumType.xxx -
Type_Trapping
Deprecated.use EnumType.xxx -
Type_ConventionalPrinting
Deprecated.use EnumType.xxx -
Type_DigitalPrinting
Deprecated.use EnumType.xxx -
Type_IDPrinting
Deprecated.use EnumType.xxx -
Type_AdhesiveBinding
Deprecated.use EnumType.xxx -
Type_BlockPreparation
Deprecated.use EnumType.xxx -
Type_BoxPacking
Deprecated.use EnumType.xxx -
Type_Bundling
Deprecated.use EnumType.xxx -
Type_CaseMaking
Deprecated.use EnumType.xxx -
Type_CasingIn
Deprecated.use EnumType.xxx -
Type_ChannelBinding
Deprecated.use EnumType.xxx -
Type_CoilBinding
Deprecated.use EnumType.xxx -
Type_Collecting
Deprecated.use EnumType.xxx -
Type_CoverApplication
Deprecated.use EnumType.xxx -
Type_Creasing
Deprecated.use EnumType.xxx -
Type_Cutting
Deprecated.use EnumType.xxx -
Type_Dividing
Deprecated.use EnumType.xxx -
Type_Embossing
Deprecated.use EnumType.xxx -
Type_EndSheetGluing
Deprecated.use EnumType.xxx -
Type_Feeding
Deprecated.use EnumType.xxx -
Type_Folding
Deprecated.use EnumType.xxx -
Type_Gathering
Deprecated.use EnumType.xxx -
Type_Gluing
Deprecated.use EnumType.xxx -
Type_HeadBandApplication
Deprecated.use EnumType.xxx -
Type_HoleMaking
Deprecated.use EnumType.xxx -
Type_Inserting
Deprecated.use EnumType.xxx -
Type_Jacketing
Deprecated.use EnumType.xxx -
Type_Labeling
Deprecated.use EnumType.xxx -
Type_Laminating
Deprecated.use EnumType.xxx -
Type_LongitudinalRibbonOperations
Deprecated.use EnumType.xxx -
Type_Numbering
Deprecated.use EnumType.xxx -
Type_Palletizing
Deprecated.use EnumType.xxx -
Type_Perforating
Deprecated.use EnumType.xxx -
Type_PlasticCombBinding
Deprecated.use EnumType.xxx -
Type_PrintRolling
Deprecated.use EnumType.xxx -
Type_RingBinding
Deprecated.use EnumType.xxx -
Type_SaddleStitching
Deprecated.use EnumType.xxx -
Type_ShapeCutting
Deprecated.use EnumType.xxx -
Type_Shrinking
Deprecated.use EnumType.xxx -
Type_SideSewing
Deprecated.use EnumType.xxx -
Type_SpinePreparation
Deprecated.use EnumType.xxx -
Type_SpineTaping
Deprecated.use EnumType.xxx -
Type_Stacking
Deprecated.use EnumType.xxx -
Type_Stitching
Deprecated.use EnumType.xxx -
Type_Strapping
Deprecated.use EnumType.xxx -
Type_StripBinding
Deprecated.use EnumType.xxx -
Type_ThreadSealing
Deprecated.use EnumType.xxx -
Type_ThreadSewing
Deprecated.use EnumType.xxx -
Type_Trimming
Deprecated.use EnumType.xxx -
Type_WireCombBinding
Deprecated.use EnumType.xxx -
Type_Wrapping
Deprecated.use EnumType.xxx -
ProcessUsage_AnyInput
Deprecated.use EnumProcessUsage.xxx -
ProcessUsage_AnyOutput
Deprecated.use EnumProcessUsage.xxx -
ProcessUsage_Any
Deprecated.use EnumProcessUsage.xxx -
ProcessUsage_Rejected
Deprecated.use EnumProcessUsage.xxx -
ProcessUsage_Accepted
Deprecated.use EnumProcessUsage.xxx -
ProcessUsage_Marks
Deprecated.use EnumProcessUsage.xxx -
ProcessUsage_Document
Deprecated.use EnumProcessUsage.xxx -
ProcessUsage_Surface
Deprecated.use EnumProcessUsage.xxx -
ProcessUsage_Waste
Deprecated.use EnumProcessUsage.xxx -
ProcessUsage_Proof
Deprecated.use EnumProcessUsage.xxx -
ProcessUsage_Input
Deprecated.use EnumProcessUsage.xxx -
ProcessUsage_Plate
Deprecated.use EnumProcessUsage.xxx -
ProcessUsage_Good
Deprecated.use EnumProcessUsage.xxx -
ProcessUsage_Cover
Deprecated.use EnumProcessUsage.xxx -
ProcessUsage_BookBlock
Deprecated.use EnumProcessUsage.xxx -
ProcessUsage_Box
Deprecated.use EnumProcessUsage.xxx -
ProcessUsage_CoverMaterial
Deprecated.use EnumProcessUsage.xxx -
ProcessUsage_SpineBoard
Deprecated.use EnumProcessUsage.xxx -
ProcessUsage_CoverBoard
Deprecated.use EnumProcessUsage.xxx -
ProcessUsage_Case
Deprecated.use EnumProcessUsage.xxx -
ProcessUsage_FrontEndSheet
Deprecated.use EnumProcessUsage.xxx -
ProcessUsage_BackEndSheet
Deprecated.use EnumProcessUsage.xxx -
ProcessUsage_Child
Deprecated.use EnumProcessUsage.xxx -
ProcessUsage_Mother
Deprecated.use EnumProcessUsage.xxx -
ProcessUsage_Jacket
Deprecated.use EnumProcessUsage.xxx -
ProcessUsage_Book
Deprecated.use EnumProcessUsage.xxx -
ProcessUsage_Label
Deprecated.use EnumProcessUsage.xxx -
ProcessUsage_RingBinder
Deprecated.use EnumProcessUsage.xxx -
ProcessUsage_Ancestor
Deprecated.use EnumProcessUsage.xxx
-
-
Constructor Details
-
JDFNode
Constructor for JDFNode- Parameters:
myOwnerDocument-qualifiedName-
-
JDFNode
public JDFNode(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String myNamespaceURI, String qualifiedName) Constructor for JDFNode- Parameters:
myOwnerDocument-myNamespaceURI-qualifiedName-
-
JDFNode
public JDFNode(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String myNamespaceURI, String qualifiedName, String myLocalName) Constructor for JDFNode- Parameters:
myOwnerDocument-myNamespaceURI-qualifiedName-myLocalName-
-
-
Method Details
-
getURLInputStream
get the input stream that reads from URL- Specified by:
getURLInputStreamin interfaceIURLSetter- Returns:
- InputStream the input stream that the url points to, null if the url is inaccessible
-
getTheAttributeInfo
definition of optional attributes in the JDF namespace- Overrides:
getTheAttributeInfoin classJDFElement- Returns:
- comma separated list of optional attributes for JDF nodes
-
getTheElementInfo
- Overrides:
getTheElementInfoin classJDFElement- Returns:
- the elementinfo
-
toString
toString - StringRepresentation of JDFNode -
init
public boolean init()init - init the node- Overrides:
initin classJDFElement- Returns:
- boolean: always true
- See Also:
-
ensureJobPartID
-
isJDFRoot
public boolean isJDFRoot()is this the JDF root element, i.e. it has no JDF above it- Returns:
- true, if this is a root
-
linkNames
definition of resource link names in the JDF namespace- Returns:
- String list of resource names that may be linked
-
linkInfo
Deprecated.definition of resource link usage, cardinality and ProcessUsage in the JDF namespace- Returns:
- String list of resource information usages that may be linked
-
getLinkInfoMap
-
setPartStatus
Deprecated.use 3 parameter versionsets the node's partition status and StatusDetails- Parameters:
vmattr- vector Attribute maps of partitionstatus- Status to set- Returns:
- boolean: success or not
-
setPartStatus
public boolean setPartStatus(VJDFAttributeMap vmattr, JDFElement.EnumNodeStatus status, String statusDetails) sets the node's partition status and StatusDetails- Parameters:
vmattr- vector Attribute maps of partitionstatus- Status to setstatusDetails-- Returns:
- boolean: success or not
-
setPartStatus
Deprecated.use 3 parameter versionset the node's partition status if nodeinfo is partitioned, all leaves NodeStati below part are removed- Parameters:
mattr- Attribute map of partitionstatus- Status to set- Returns:
- boolean: success or not
-
setPartStatus
public boolean setPartStatus(JDFAttributeMap mattr, JDFElement.EnumNodeStatus status, String statusDetails) set the node's partition status if nodeinfo is partitioned, all leaves NodeStati below part are removed- Parameters:
mattr- Attribute map of partitionstatus- Status to setstatusDetails-- Returns:
- boolean: success or not
-
getVectorPartStatus
get the status for the vector v- Parameters:
vMap- the vevtor of partmaps- Returns:
- the status, null if the value is not consistent
-
getVectorPartStatusDetails
get the statusdetails for the vector v- Parameters:
vMap- the vevtor of partmaps- Returns:
- the status, null if the value is not consistent
-
getPartStatus
Deprecated.us 2 parameter methodget the node's partition status- Parameters:
mattr- Attribute map of partition- Returns:
- JDFElement.EnumNodeStatus: Status of the partition, null if no Status exists
-
getPartStatus
get the node's partition status, even if the link does not match mattr- Parameters:
attMap- Attribute map of partitionmethod- : -1, 0 or 1; -1 min status; 0 equals, 1 max status- Returns:
- JDFElement.EnumNodeStatus: Status of the partition, null if no Status exists
-
getPartStatusDetails
get the node's partition statusdetails- Parameters:
mattr- Attribute map of partition- Returns:
- String: Status of the partition, null if no Status exists (note the null return!)
-
setPhase
@Deprecated public JDFDoc setPhase(JDFElement.EnumNodeStatus nodeStatus, String nodeStatusDetails, JDFAutoDeviceInfo.EnumDeviceStatus deviceStatus, String deviceStatusDetails, VJDFAttributeMap vPartMap) Deprecated.use the version with deviceIDSet the Status and StatusDetails of this node update the PhaseTime audit or append a new phasetime as appropriate also generate a status JMF- Parameters:
nodeStatus- the new status of the nodenodeStatusDetails- the new statusDetails of the nodedeviceStatus- the new status of the devicedeviceStatusDetails- the new statusDetails of the devicevPartMap- the vector of parts to that should be set- Returns:
- The root element representing the PhaseTime JMF
-
getStatusPartMapVector
return the partMapVector defined by nodeInfo partitioning null if nodeInfo is not partitioned or if the node status is neither pool nor part- Returns:
- the vector of PartMaps
-
getPartMapVector
return the partMapVector defined in AncestorPool, null if no AncestorPool exists, or AncestorPool has no Part elements- Overrides:
getPartMapVectorin classJDFElement- Returns:
- the vector of PartMaps
-
getNodeInfoPartMapVector
return the partMapVector defined in AncestorPool or NodeInfo or output resource in that sequence, null if no NodeInfo exists, or NodeInfo has no Part elements- Returns:
- the vector of PartMaps
-
getActivation
Deprecated.060406 use getActivation(false)getActivation- Returns:
- EnumActivation
-
getActivation
get attribute Activation; defaults to Active- Parameters:
bWalkThroughAncestors- if true, walks through all ancestors which may overwrite the local activation state; if false only the explicit activation, if any, is returned- Returns:
- the enumeration value of the attribute
-
setActivation
Set attribute Activation- Parameters:
bActive- the value to set the attribute to
-
addModified
addModified- Parameters:
by-- Returns:
- JDFAudit
-
getResource
public JDFResource getResource(String strName, JDFResourceLink.EnumUsage usage, JDFNode.EnumProcessUsage processUsage, int i) Get the linked resource with name=strName- Parameters:
strName- the resource nameusage- the ResourceLink Usage, if null either in or out are acceptedprocessUsage-i- the nuber of matches to skip, if negative, count backwards- Returns:
- the matching resource, null if none matches
-
getResourceRoot
Get the linked resource with name=strName- Parameters:
strName- the resource nameusage- the ResourceLink Usage, if null either in or out are acceptedi- the nuber of matches to skip, if negative, count backwards- Returns:
- the matching resource, null if none matches
-
getResource
Get the linked resource with name=strName- Parameters:
strName- the resource nameusage- the ResourceLink Usage, if null either in or out are acceptedi- the number of matches to skip, if negative, count backwards- Returns:
- the matching resource, null if none matches
-
getResource
Get the linked resource with name=strName- Parameters:
strName- the resource nameusage- the ResourceLink Usage, if null either in or out are accepted- Returns:
- the matching resource, null if none matches
-
getResource
Get the linked resource with name=strName- Parameters:
strName- the resource name- Returns:
- the matching resource, null if none matches
-
getResource
@Deprecated public JDFResource getResource(String strName, JDFResourceLink.EnumUsage usage, JDFNode.EnumProcessUsage processUsage, int i, String namespaceURI) Deprecated.Get the linked resource with name=strName- Parameters:
strName- the resource name if strName has a prefix, the explicit DOM level 1 resource with prefix will be searchedusage- the ResourceLink Usage, if null either in or out are acceptedprocessUsage- the processUsage of the respective resourcei- the nuber of matches to skip, if negative, count backwardsnamespaceURI- if null and no prefix, assume JDF namespace, else correct lvl 2 handling- Returns:
- the matching resource, null if none matches
-
getCreateResource
public JDFResource getCreateResource(String strName, JDFResourceLink.EnumUsage usage, String processUsage) Get the linked resource with name=strName- Parameters:
strName- the resource name if strName has a prefix, the explicit DOM level 1 resource with prefix will be searchedusage- the ResourceLink Usage, if null either in or out are acceptedprocessUsage- the processUsage of the respective resource- Returns:
- the matching resource, null if none matches
-
getLink
public JDFResourceLink getLink(String strName, JDFResourceLink.EnumUsage usage, String processUsage) Get the resource link with name=strName - convenience- Parameters:
strName- the resource name if strName has a prefix, the explicit DOM level 1 resource with prefix will be searchedusage- the ResourceLink Usage, if null either in or out are acceptedprocessUsage- the processUsage of the respective resource- Returns:
- the matching resource, null if none matches
-
getLink
public JDFResourceLink getLink(String strName, JDFResourceLink.EnumUsage usage, String processUsage, String namespaceURI, int i) Get the resource link with name=strName- Parameters:
strName- the resource name if strName has a prefix, the explicit DOM level 1 resource with prefix will be searchedusage- the ResourceLink Usage, if null either in or out are acceptedprocessUsage- the processUsage of the respective resourcei- the nuber of matches to skip, if negative, count backwardsnamespaceURI- if null and no prefix, assume JDF namespace, else correct lvl 2 handling- Returns:
- the matching resource, null if none matches
-
getResource
public JDFResource getResource(String strName, JDFResourceLink.EnumUsage usage, String processUsage, String namespaceURI, int i) Get the linked resource with name=strName- Parameters:
strName- the resource name if strName has a prefix, the explicit DOM level 1 resource with prefix will be searchedusage- the ResourceLink Usage, if null either in or out are acceptedprocessUsage- the processUsage of the respective resourcei- the nuber of matches to skip, if negative, count backwardsnamespaceURI- if null and no prefix, assume JDF namespace, else correct lvl 2 handling- Returns:
- the matching resource, null if none matches
-
getResourceLeaves
Get the linked resource with name=strName- Parameters:
strName- the resource name if strName has a prefix, the explicit DOM level 1 resource with prefix will be searchedusage- the ResourceLink Usage, if null either in or out are acceptedprocessUsage- the processUsage of the respective resourcei- the nuber of matches to skip, if negative, count backwardsnamespaceURI- if null and no prefix, assume JDF namespace, else correct lvl 2 handling- Returns:
- the matching resource, null if none matches
-
getResourceLeaves
public List<JDFResource> getResourceLeaves(String strName, JDFResourceLink.EnumUsage usage, String processUsage, String namespaceURI, int i) Get the linked resource with name=strName- Parameters:
strName- the resource name if strName has a prefix, the explicit DOM level 1 resource with prefix will be searchedusage- the ResourceLink Usage, if null either in or out are acceptedprocessUsage- the processUsage of the respective resourcei- the nuber of matches to skip, if negative, count backwardsnamespaceURI- if null and no prefix, assume JDF namespace, else correct lvl 2 handling- Returns:
- the matching resource, null if none matches
-
getCreateResource
Get the linked resource with name=strName; create it if it does not exist- Parameters:
strName- the resource nameusage- the ResourceLink Usage, if null either in or out are acceptedi- the nuber of matches to skip, if negative, count backwards- Returns:
- the matching resource,
- Throws:
JDFException- if resource does not exist and EnumUsage is null
-
getCreateResource
Get the linked resource with name=strName; create it if it does not exist- Parameters:
strName- the resource nameusage- the ResourceLink Usage, if null either in or out are acceptedi- the nuber of matches to skip, if negative, count backwards- Returns:
- the matching resource,
- Throws:
JDFException- if resource does not exist and EnumUsage is null
-
addResource
@Deprecated public JDFResource addResource(String strName, JDFResource.EnumResourceClass resClass, boolean bInput, JDFNode resRoot, boolean bLink, String nameSpaceURI) Deprecated.use addResource(String strName, JDFResource.EnumResourceClass resClass, EnumUsage usage, EnumProcessUsage processUsage, JDFNode resRoot, String nameSpaceURI)addResource - add a resource to resroot and link it to this process- Parameters:
strName- the localname of the resourceresClass- the JFD/@Class of the resource; if null, find from factorybInput- if true, the resource is linked as input, else outputresRoot- the node where to add the Resource, if null defaults to this. Note that the link is always in thisbLink- if true, creat a ResourceLink to the newly created resourcenameSpaceURI- the nsURI of the resource, if null take the default ns- Returns:
- JDFResource
-
addResource
addResource - add a resource to resroot and link it to this process utility with the minimal parameter set- Parameters:
strName- the localname of the resourceusage- the Usage attribute of the ResourceLink. If null, the resource is not linked- Returns:
- JDFResource the new resource
-
addResource
public JDFResource addResource(String strName, JDFResource.EnumResourceClass resClass, JDFResourceLink.EnumUsage usage, JDFNode.EnumProcessUsage processUsage, JDFNode resRoot, String nameSpaceURI, JDFResource toReplace) addResource - add a resource to resroot and link it to this process- Parameters:
strName- the localname of the resourceresClass- the JFD/@Class of the resource; if null, find the resource class from factoryusage- the Usage attribute of the ResourceLink. If null, the resource is not linkedprocessUsage- the processUsage attribute of the link to the resourceresRoot- the node to add the Resource to, defaults to 'this' if null. Note that the link is always in 'this'nameSpaceURI- the nsURI of the resource, if null take the default nstoReplace- the resource to replace by this - also add a resource audit- Returns:
- JDFResource
-
replaceUpdate
-
linkResource
@Deprecated public JDFResourceLink linkResource(JDFResource jdfResource, boolean input, boolean bForce) Deprecated.use linkResource(enum)LinkResource: create a resourceLink in the resourceLinkPool that refers to the resource jdfResource also sets the appropriate combined process index- Parameters:
jdfResource- the resource or partition to link toinput- it true, link as input, else link as outputbForce- if true, create a new link, even if an existing link already exists- Returns:
- JDFResourceLink the new link
-
linkResource
public JDFResourceLink linkResource(JDFResource jdfResource, JDFResourceLink.EnumUsage usage, JDFNode.EnumProcessUsage processUsage) LinkResource: create a resourceLink in the resourceLinkPool that refers to the resource jdfResource also sets the appropriate combined process index- Parameters:
jdfResource- the resource or partition to link tousage- Usage of the resourceprocessUsage- processUsage of the resource- Returns:
- JDFResourceLink the new link
-
ensureLink
public JDFResourceLink ensureLink(JDFResource jdfResource, JDFResourceLink.EnumUsage usage, JDFNode.EnumProcessUsage processUsage) - Parameters:
jdfResource-usage-processUsage-- Returns:
-
ensureLinkPU
public JDFResourceLink ensureLinkPU(JDFResource jdfResource, JDFResourceLink.EnumUsage usage, String processUsage) ensureLink: if it does not yet exist, create a resourceLink in the resourceLinkPool that refers to the resource jdfResource also sets the appropriate combined process index- Parameters:
jdfResource- the resource or partition to link tousage- Usage of the resourceprocessUsage- processUsage of the resource- Returns:
- JDFResourceLink the link
-
ensureValidRefsPosition
ensure that the linked resource and all referenced resources are correctly positioned- Parameters:
r-
-
ensureValidResPosition
- Parameters:
res-
-
getResourceLinks
Deprecated.use getResourceLinks(null)get the resourcelinks in the resourcepool of this node- Returns:
- VElement the vector of ResorceLinks:
-
getResourceLinks
get the resourcelinks in the resourcepool of this node- Parameters:
mLinkAtt- the map of attributes- Returns:
- VElement - the vector of ResourceLinks, null if none exist:
-
getLinkedResources
get the linked resources matching certain conditions
combines all linked resources from ResourceLinkPool, CustomerInfo, NodeInfo and AuditPool- Parameters:
mResAtt- map of Resource attributes to search forbFollowRefs- true if internal references shall be followed- Returns:
- vResource: vector with all elements matching the conditions
-
getUnlinkedResources
Deprecated.- Use @see UnlinkFinderget all the unlinked resources in this node
TODO: also include resources that are only linked by other unlinked resources- Parameters:
bLocal- if true, only in the local resourcepool, else also recurse into children- Returns:
- vElement vector with all
-
getPredecessors
Deprecated.use getPredecessors(bPre,false);get a vector of all direct predecessor or following nodes, depending on bPre- Parameters:
bPre- if true get predecessors, if false get following nodes- Returns:
- Vector of pre / post decessor nodes
-
getPredecessors
get a vector of all direct predecessor or following nodes, depending on bPre- Parameters:
bPre- if true get predecessors, if false get following nodesbDirect- if true, only return the direct condidates- Returns:
- Vector of pre / post decessor nodes
-
checkPredecessorResource
-
isExecutable
- Parameters:
partMap-bCheckChildren-- Returns:
-
getProcessStatus
Deprecated.use getPartStatus()gets the status of a certain partition of the node. The partition is given by a map of partition attributes or by a JDFResource object containing such a map.- Parameters:
mattr-- Returns:
-
resourceTypeEqual
ResourceTypeEqual
Checks whether the given resources are of the same type. Resources are considered equal by this method if they have identical Class attributes and their resource type is equal. Basically the resource type is the node name.
Two resources with different node names are considered equal if their Type attributes from the ToolConfig.xml file are equal. This is not implemented yet. Instead of it is hard-coded that "RunList" and "HDM:ReportList" are of the same type.- Parameters:
res1- first resourceres2- second resource- Returns:
- boolean
-
getvJDFNode
Get a vector of all JDF children with type nodeType- Parameters:
task- node typeactive- Activation of the requested nodes, if null ignore activationbDirect- if true, get direct children only, else recurse down the tree and include this, i.e. return a complete tree starting at this- Returns:
- VElement of JDF nodes
-
getvJDFNode
Deprecated.use public Vector getvJDFNode(task, JDFNode.EnumActivation.Unknown, false)getvJDFNode- Parameters:
task-active-- Returns:
- Vector of JDFNodes
-
isActive
Deprecated.use fitsActivationisActive- Returns:
- boolean
-
isActive
Deprecated.use fitsActivation- Parameters:
bWalkThroughAnchestors-- Returns:
- boolean
-
fitsActivation
the activation state of this node- Parameters:
active-bWalkThroughAncestors- if true, walks through all anchestors which may overwrite the local activation state- Returns:
- boolean true if the activations are compatible
-
removeNode
Deprecated.removeNode - remove a node. If bLeaveSubmit is true, leave a stub with the id and status field- Parameters:
bLeaveSubmit- if true, leave a stub with id and status field
-
addTask
Deprecated.use addJDFNodeaddTask- Parameters:
task-tasks-- Returns:
- JDFNode
-
addTask
Deprecated.use addJDFNodeaddTask- Parameters:
task-- Returns:
- JDFNode
-
setType
setType set the type attribute to the enumeration type also set xsi:type etc- Parameters:
typ- the new type to set this to
-
setType
setType set the type attribute to the string type- Parameters:
newType- the new type to set this tocheckName- if true, check whether this type exists and throw an exception if not- Returns:
- ignore, always true
- Throws:
JDFException- if type is not a known JDF type
-
getType
getType - get node Type- Returns:
- String - the type
-
getTypesString
getType - get node Types or Type attribute- Returns:
- String - the type
-
fixNiCi
fix NodeInfo and CustomerInfo- Parameters:
version- target version- Returns:
-
isValid
typesafe validator, checks whether all resource links are ok- Overrides:
isValidin classJDFElement- Parameters:
level- validation level- Returns:
- true if this node is valid
-
hasInvalidLinks
true if invalid Links are in this element- Parameters:
level- validation level- Returns:
- boolean - true if unknown Links are in this element
-
getInvalidLinks
typesafe validator utility- Parameters:
level- validation levelnMax- max. size of the returned vector- Returns:
- vector of invalid Link names
-
getStatusSynch
get the status synchronizer- Returns:
-
updatePartStatus
@Deprecated public void updatePartStatus(VJDFAttributeMap vMap, boolean updateKids, boolean updateParents) Deprecated.use 4 parameter versionupdate the node status or nodeinfo/@NodeStatus for all partitions specified in vMap- Parameters:
vMap- the map of partitions to apply the update algorithm toupdateKids- if true, also recursively update all kids, if false move to root without updating kidsupdateParents- if true, recurse down to the root, updatimg the satus based on modifications in this
-
updatePartStatus
public void updatePartStatus(VJDFAttributeMap vMap, boolean updateKids, boolean updateParents, int method) update the node status or nodeinfo/@NodeStatus for all partitions specified in vMap- Parameters:
vMap- the map of partitions to apply the update algorithm toupdateKids- if true, also recursively update all kids, if false move to root without updating kidsupdateParents- if true, recurse down to the root, updatimg the satus based on modifications in thismethod- : -1, 0 or 1; -1 min status; 0 equals, 1 max status
-
upDateStatus
Deprecated.use updatePartStatus(VJDFAttributeMAP)UpDateStatus - update the status of a node depending on its resources and child nodes -
getJobPart
getJobPart - get a child node with a given jobpartid- Parameters:
nodeID- the NodeIdentifier of the job part- Returns:
- JDFNode
-
getJDF
getJobPart - get a child node with a given jobpartid- Parameters:
nodeID- the NodeIdentifier of the job part- Returns:
- JDFNode
-
getJobPart
getJobPart - get a child node with a given jobpartid- Parameters:
jobPartID- the ID of the part jobjobID- the ID of the job- Returns:
- JDFNode
-
checkSpawnedResources
public Collection<JDFResource> checkSpawnedResources(VString vRWResources, VJDFAttributeMap vSpawnParts) add any resources that live in ancestor nodes to this node- Parameters:
vRWResources- vector of resource names and Usage / ProcessUsage that are spawned as rw
the format is one of:
- ResName
- ResName:Input
- ResName:Output
- ResName:ProcessUsage
- ID
vSpawnParts- vector of JDFAttributeMaps that describe the parts to spawn- Returns:
- HashSet of resources or resource partitions that would be spawned rw multiple times
-
getAllRefs
get inter-resource linked resource refs and resourcs links- Overrides:
getAllRefsin classJDFElement- Parameters:
vDoneRefs-bRecurse- if true, also return references linked from the resource pool directly- Returns:
- HashSet of referenced resource refs and links
-
setCombined
setCombined - set the combined node types to the values in vCombiNodes- Parameters:
vCombiNodes-
-
getCombinedTypes
Deprecated.use getTypes() or getEnumTypes()getCombinedTypes - get the list of combined types if this is a combined node- Returns:
- Vector
-
addComponent
@Deprecated public JDFComponent addComponent(String cType, boolean bInput, JDFNode resRoot, boolean bLink) Deprecated.use standard addResourceaddComponent - add a component resource to resroot and link it to this process- Parameters:
cType-bInput-resRoot-bLink-- Returns:
- JDFComponent
-
setSpawnID
Set attribute SpawnID- Parameters:
value- the value to set the attribute to
-
spawn
@Deprecated public JDFNode spawn(String parentURL, String spawnURL, VString vRWResources_in, VJDFAttributeMap vSpawnParts, boolean bSpawnROPartsOnly, boolean bCopyNodeInfo, boolean bCopyCustomerInfo, boolean bCopyComments) Deprecated.- use JDFSpawn class ( see code below)spawn a node; url is the file name of the new node, vRWResourceUsage is the vector of Resources Usages (or Names if no usage exists for the process) that are spawned RW, all others are spawned read only; vParts is the vector of part maps that are to be spawned, defaults to no part, i.e. the whole thing- Parameters:
parentURL-spawnURL- URL of the spawned JDF filevRWResources_in- vector of resource names and Usage / ProcessUsage that are spawned as rw
the format is one of:
ResName:Input
ResName:Output
ResName:ProcessUsagevSpawnParts- vector of mAttributes that describe the parts to spawn, only valid PartIDKeys are allowedbSpawnROPartsOnly- if true, only the parts of RO resources that are specified in vParts are spawned, else the complete resource is spawnedbCopyNodeInfo- copy the NodeInfo elements into the AncestorsbCopyCustomerInfo- copy the CustomerInfo elements into the AncestorsbCopyComments- copy the Comment elements into the Ancestors- Returns:
- The spawned node
- Since:
- 050831 added bCopyComments
-
spawnInformative
@Deprecated public JDFNode spawnInformative(String parentURL, String spawnURL, VJDFAttributeMap vSpawnParts, boolean bSpawnROPartsOnly, boolean bCopyNodeInfo, boolean bCopyCustomerInfo, boolean bCopyComments) Deprecated.use JDFSpawn.spawnInformative()spawn a node in informative mode without modifying the root JDF; url is the file name of the new node, the parameters except for the list of rw resources, which are by definition empty, are identical to those of Spawn vRWResourceUsage is the vector of Resources Usages, Resource Names or Resource IDs that are spawned RW, all others are spawned read only; vParts is the vector of part maps that are to be spawned, defaults to no part, i.e. the whole thing- Parameters:
parentURL-spawnURL- URL of the spawned JDF filevSpawnParts- vector of mAttributes that describe the parts to spawnbSpawnROPartsOnly- if true, only the parts of RO resources that are specified in vParts are spawned, else the complete resource is spawnedbCopyNodeInfo- copy the NodeInfo elements into the AncestorsbCopyCustomerInfo- copy the CustomerInfo elements into the AncestorsbCopyComments- copy the Comment elements into the Ancestors- Returns:
- JDFDoc - the spawned node's owner document.
-
unSpawn
Deprecated.use new JDFSpawn(this).unSpawn(spawnID);Method unSpawn. undo a spawn, removing any and all bookkeeping of that spawning- Parameters:
spawnID- spawnID of the spawn to undo- Returns:
- the fixed unspawned node
-
mergeNode
merge nodes in a way that no duplicate elements are created
attention !! this kills pools !!- Parameters:
e- the node element to merge with the current nodebDelete- if true KElement e will be deleted- Returns:
- JDFNode: the merged node element
-
getLink
Deprecated.use getLink(resource, EnumUsage)getLink - get the resourcelink that resides in the ResourceLinkPool of this node and references the resource r- Parameters:
r- the resource you are searching a link forbInput-- Returns:
- JDFResourceLink - the resource link you was searching for or if not found, a new empty JDFResource Link
-
getLink
getLink - get the resourcelink that resides in the ResourceLinkPool of this node and references the resource r- Parameters:
r- the resource you are searching a link forusage- the usage attribute of the link. If null, both input and output resourelinks will be returned- Returns:
- JDFResourceLink - the resource link you was searching for or if not found, null
-
getLinkedResourceVector
public VElement getLinkedResourceVector(JDFResourceLink.EnumUsage usage, String resName, JDFNode.EnumProcessUsage procUsage, boolean expandLeaves) get the vector of all resource leaves linked to a resource- Parameters:
usage-resName-procUsage-expandLeaves- if true expand to the lowest leaves- Returns:
-
getRoot
getRoot - this function returns the root of the JDF document- Returns:
- JDFNode - the root node of the document
-
getAncestorIDs
Get an ordered list of all Parents ID attributes:
the last entry is the direct parent, the last-1 entry is the grandparent etc.
This is analog to the definition of JDFAncestorPool- Returns:
- vector of strings representing the node IDs
-
getAncestorNode
Deprecated.use getParentJDF()getAncestorNode - return the ancestor node- Parameters:
nSkip-- Returns:
- JDFNode - the ancestor node
-
getAncestorAttribute
searches for the first element occurence in the parent nodes and then the ancestor elements of the root ancestorpool- Parameters:
attrib- the element namenameSpaceURI- the XML-namespacedef- the default value, if there is no ancestor attribute- Returns:
- String - value of attribute found, value of def if not available
-
hasAncestorAttribute
true if a non default attribute occurence in the parent nodes and then the ancestor elements of the root ancestorpool exists- Parameters:
attrib- the attribute namenameSpaceURI- the XML-namespace- Returns:
- true if the attribute exists
-
hasActivation
public boolean hasActivation(boolean bInherit) Check existance of attribute Activation- Parameters:
bInherit- recurse through ancestors and Ancestor elements of the AncestorPool when searching- Returns:
- true if attribute Activation exists
-
hasJobID
Deprecated.Check existence of attribute JobID- Parameters:
bInherit- recurse through ancestors and Ancestor elements of the AncestorPool when searching- Returns:
- true if attribute JobID exists
-
getAncestorElement
searches for the first element occurence in this and the ancestor elements- Parameters:
element- the attribute namenameSpaceURI- the XML-namespace- Returns:
- the KElement found
- Since:
- 180502
-
hasAncestorElement
Deprecated.true if a non default attribute occurs in the parent nodes and then the ancestor elements of the root ancestorpool exists- Parameters:
element- the attribute namenameSpaceURI- the XML-namespace- Returns:
- boolean - true if the attribute exists
- Since:
- 180502
-
addParameter
@Deprecated public JDFResource addParameter(String strName, boolean bInput, JDFNode resRoot, boolean bLink) Deprecated.use addResource(strName, JDFResource.EnumClass.Parameter, bInput, resRoot, bLink, null)addParameter - add a parameter resource to resroot and link it to this process- Parameters:
strName-bInput-resRoot-bLink-- Returns:
- JDFResource
-
addConsumable
@Deprecated public JDFResource addConsumable(String strName, boolean bInput, JDFNode resRoot, boolean bLink) Deprecated.use addResource(name, null, true, null, true)addConsumable - add a consumable resource to resroot and link it to this process- Parameters:
strName-bInput-resRoot-bLink-- Returns:
- JDFResource
-
addHandling
@Deprecated public JDFResource addHandling(String strName, boolean bInput, JDFNode resRoot, boolean bLink) Deprecated.use addResource(name, null, true, null, true)addHandling - add a handling resource to resroot and link it to this process- Parameters:
strName-bInput-resRoot-bLink-- Returns:
- JDFResource
-
isCombined
public boolean isCombined()isCombined - is this a Combined resource type ?- Returns:
- boolean - true if it is, otherwise false
-
isProduct
public boolean isProduct()Is this a product node type ?- Returns:
- boolean - true if this is a product node
-
isProcessGroup
public boolean isProcessGroup()Is this a Combined node type ?- Returns:
- boolean - true if this is a combined node
-
isGroupNode
public boolean isGroupNode()Is this a group node type (ProcessGroup or Product)?- Returns:
- boolean - true if this is a combined node
-
isTypesNode
public boolean isTypesNode()Is this a group node type that allows @Types (ProcessGroup or Combined)?- Returns:
- boolean - true if this is a combined node
-
getIDPrefix
getIDPrefix- Overrides:
getIDPrefixin classKElement- Returns:
- the ID prefix of JDFNode
-
getJobID
get string attribute JobID- Parameters:
bInherit- recurse through ancestors when searching- Returns:
- String - attribute value
-
getJobPartID
Deprecated.use getJobPartID(false);get string attribute JobID- Returns:
- attribute value
-
getJobPartID
get string attribute JobID- Parameters:
bInherit- if true recurse through ancestors when searching- Returns:
- String - attribute value
-
setJobPartID
Set attribute JobPartID- Parameters:
jobPartID- the value to set the attribute to
-
setJobID
set attribute JobID- Parameters:
value- the value to set the attribute to
-
hasStatusPool
Deprecated.test element StatusPool existence- Returns:
- boolean - true if a matching element exists
-
getSpawnID
Deprecated.use getSpawnID(boolean)get string attribute SpawnID- Returns:
- String - attribute value
-
getSpawnID
get string attribute SpawnID- Parameters:
bInherit- if true recurse through ancestors when searching- Returns:
- String - attribute value
-
removeSpawnID
Deprecated.remove attribute SpawnID -
removeAncestorPool
Deprecated.remove element AncestorPool -
getParentJDFNode
Deprecated.use getParentJDF()get the Parent JDFNode, null if the parent element is the document or an envelope xml- Returns:
- JDFNode: the parent JDF, null if this is the root JDF
-
getParentJDF
get the Parent JDFNode, null if the parent element is the document or an envelope xml- Overrides:
getParentJDFin classJDFElement- Returns:
- JDFNode: the parent JDF, null if this is the root JDF
-
getParentProduct
get the Parent JDFNode with Type=Product, null if the parent element is the document or an envelope xml or no product exists- Returns:
- JDFNode: the parent JDF, null if this is the root JDF
-
hasType
Deprecated.use inline hasAttributeCheck existence of attribute Type- Returns:
- boolean - true if attribute Type exists
-
containsType
Check whether typ or types contains type- Parameters:
type- the type to check for- Returns:
- boolean - true if attribute Type is either in Type or types always true for null
-
getInsertLinkVector
get a vector of Link names that may be inserted in this element if the links need a processusage, the format is LinkName:ProcessUsage- Parameters:
nMax- maximum size of the returned vector- Returns:
- vector of strings that contains insertable link names
-
getEnumProcessUsage
Deprecated.get the resource that matches the typesafe link described by i- Parameters:
info- the LinkInfo string for this namei- the index of the pu to find- Returns:
- the enumerated process usage of this checked link
-
hasAncestorPool
Deprecated.use numChildElements(ElementName.ANCESTORPOOL, null) > 0;test element AncestorPool existance- Returns:
- bool true if a matching element exists
-
hasProjectID
Deprecated.Check existance of attribute ProjectID- Parameters:
bInherit- recurse through ancestors when searching- Returns:
- true if attribute ProjectID exists
-
hasProjectID
Deprecated.Check existence of attribute ProjectID- Returns:
- true if attribute ProjectID exists
-
setProjectID
set attribute ProjectID- Parameters:
strValue- the value to set the attribute to
-
getProjectID
get string attribute ProjectID- Parameters:
bInherit- recurse through ancestors when searching- Returns:
- the value of the attribute
-
getProjectID
Deprecated.use getProjectID(boolean bInherit)get string attribute ProjectID- Returns:
- the value of the attribute
-
isValidLink
isValidLink check whether an resLink is legal for this class- Parameters:
level- the checking levelrl- the JDFResourceLink to checkdoneNameList- Vector of IntegerdoneIndexList- Vector of Integer- Returns:
- true if valid
-
isValidLink
isValidLink check whether an resLink is legal for this class- Parameters:
resName-usage-processUsage-- Returns:
- true if valis
-
getMissingLinks
Deprecated.use getMissingLinkVector- Parameters:
nMax-- Returns:
- VString
-
getMatchingLinks
public VElement getMatchingLinks(String resName, boolean bLink, JDFNode.EnumProcessUsage processUsage) get the links that match the typesafe resource name if the Resource type is not defined for the process represented by this node see chapter 6 JDFSpec, then the links are ignored- Parameters:
resName- of the resource to removebLink- if false, returns the linked resources, else if true, returns the ResourceLink elementsprocessUsage- enum that defines if all links matching the name or only those matching the name usage and/or processusage are requested- Returns:
- vector of resourcelink elements
-
getMissingLinkVector
get a vector of Link names that are missing in this element
if the links need a processusage, the format is LinkName:ProcessUsage- Parameters:
nMax- maximum size of the returned vector- Returns:
- VString vector of strings that contains missing Link names
-
getMatchingResource
@Deprecated public JDFResource getMatchingResource(String resName, int processUsage, JDFAttributeMap partMap, int pos) Deprecated.use getMatchingResource(String resName, EnumProcessUsage processUsage, JDFAttributeMap partMap, int pos))- Parameters:
resName-processUsage-partMap-pos-- Returns:
- JDFResource
-
getMatchingResource
public JDFResource getMatchingResource(String resName, JDFNode.EnumProcessUsage processUsage, JDFAttributeMap partMap, int pos) get the resource that matches a typesafe resource name if the Resource type is not defined for the process represented by this node see chapter 6 JDFSpec, then the resource is ignored- Parameters:
resName- of the resource to removeprocessUsage- enum that defines if all links matching the name or only those matching the name usage and/or processusage are requestedpartMap-pos- the position of the link if multiple matching links exist- Returns:
- JDFResource - the resourcelink element
-
getMatchingLink
public JDFResourceLink getMatchingLink(String resName, JDFNode.EnumProcessUsage processUsage, int pos) get the link that matches the typesafe resource name
if the Resource type is not defined for the process represented by this node, the link is ignored (see JDF Spec Chapter 6)- Parameters:
resName- name of the resource to removeprocessUsage- enum that defines if all links matching the name or only those matching the name usage and/or processusage are requestedpos- the position of the link (if multiple matching links exist)- Returns:
- JDFResourceLink - the resourcelink
-
appendMatchingResource
Method AppendMatchingResource. Appends a resource and link it to this if it is listed in the list of valid nodes for for a JDF with the given type also creates the matching resource link in this- Parameters:
resName- the name of the resource to addusage- the Usage of the resourcelink of the resource to add:- null EnumProcessUsage.AnyOutput - for input but no processUsage
- Returns:
- JDFResource the newly created resource
-
appendMatchingResource
public JDFResource appendMatchingResource(String resName, JDFNode.EnumProcessUsage processUsage, JDFNode resourceRoot) Method AppendMatchingResource. Appends a resource and link it to this if it is listed in the list of valid nodes for for a JDF with the given type also creates the matching resource link in this- Parameters:
resName- the name of the resource to addprocessUsage- the processUsage of the resourcelink of the resource to add:- null EnumProcessUsage.AnyOutput - for input but no processUsage
- EnumProcessUsage.AnyOutput - for output but no processUsage
resourceRoot- the root JDF node, that is the parent of the resourcepool where the resource should be added. If null, this node is assumed.- Returns:
- JDFResource the newly created resource
-
removeMatchingLink
public boolean removeMatchingLink(String resName, int processUsage, boolean bRemoveResource, int pos) remove the link that matches the typesafe link resource name- Parameters:
resName- name of the resource to removeprocessUsage- enum that defines if all links matching the name or only those matching the name usage and/or processusage are requestedbRemoveResource- also remove the resource, if it is not linked by any other processpos- the position of the link, if multiple matching links exist- Returns:
- true if successful
-
removeLink
remove a resourceLink and potentially its linked resource- Parameters:
l-bRemoveResource-
-
removeMatchingLinks
public boolean removeMatchingLinks(String resName, JDFNode.EnumProcessUsage processUsage, boolean bRemoveResource) remove the link that matches the typesafe link resource name- Parameters:
resName- name of the resource to removeprocessUsage- enum that defines if all links matching the name or only those matching the name usage and/or processusage are requestedbRemoveResource- also remove the resource, if it is not linked by any other process- Returns:
- true if successful
-
linkMatchingResource
public JDFResourceLink linkMatchingResource(JDFResource resource, JDFNode.EnumProcessUsage processUsage, JDFAttributeMap partMap) Append a resource that matches the typesafe link described by resource name- Parameters:
resource- the resource to linkprocessUsage- enum that defines if all links matching the name or only those matching the name usage and/or processusage are requestedpartMap- the Attribute map of parts- Returns:
- the new link, null if failure
-
numMatchingLinks
get the number of links that match the typesafe link resource name- Parameters:
resName- name of the resources to matchbLink- if false: returns the linked resources, if true: returns the ResourceLink elementsprocessUsage- enum that defines if all links matching the name or only those matching the name usage and/or processusage are requested- Returns:
- int - the number of resourcelink elements
-
getCreateAncestorPool
- Returns:
-
appendAncestorPool
- Returns:
-
getAncestorPool
- Returns:
-
getCreateAuditPool
- Returns:
-
appendAuditPool
- Returns:
-
getAuditPool
- Returns:
-
getCreateCustomerInfo
gets the existing CustomerInfo or creates a new one if none exists this method will check if a NodeInfo exists,- Returns:
- the found or created CustomerInfo.
-
appendCustomerInfo
appends a CustomerInfo to this- Returns:
- the appended CustomerInfo
-
getCustomerInfo
gets the existing CustomerInfo- Returns:
- the existing CustomerInfo.
-
getIdentifier
gets the NodeIdetifier that matches this- Specified by:
getIdentifierin interfaceINodeIdentifiable- Returns:
-
getGeneralID
Gets IDValue of the GeneralID with IDUsage=idUsage null, if none exists- Parameters:
idUsage-iPos-- Returns:
- String the attribute value
-
getGeneralID
Gets IDValue of the GeneralID with IDUsage=idUsage null, if none exists- Overrides:
getGeneralIDin classJDFElement- Parameters:
idUsage-iPos-- Returns:
- String the attribute value
-
getCreateNodeInfo
gets the existing NodeInfo or creates a new one if none exists this method will check if a NodeInfo exists,- Returns:
- the found or created nodeinfo.
-
appendNodeInfo
appends a NodeInfo to this- Returns:
- the appended NodeInfo
-
appendNodeInfo
appends a NodeInfo for a given combinedprocessindex to this- Parameters:
combinedProcessIndex- the combinedprocessindex that must be explicitly specified in the link- Returns:
- the appended NodeInfo
- Throws:
JDFException- if combinedProcessIndex is outside the legal range implied by @Types
-
getNodeInfo
gets the existing local NodeInfo for a given CombinedProcessIndex- Parameters:
combinedProcessIndex- the combinedprocessindex that must be explicitly specified in the link- Returns:
- the existing NodeInfo.
-
getNodeInfo
gets the existing local NodeInfo if it is a resource or an element and the NodeInfo is unique for all CombinedProcessIndex values- Returns:
- the existing NodeInfo, null if multiple NodeInfos exist, or the CombinedProcessIndex of the Link does not apply to the entire node
-
getInheritedNodeInfo
get first NodeInfo element from child list or child list of any ancestor- Parameters:
xPath- the xPath to an element or attribute that must exist in the queried CustomerInfo
note that attributes must be marked with an "@", if xPath=null, simply return the next in line- Returns:
- JDFNodeInfo The matching NodeInfo element
-
getInheritedNodeInfo
Deprecated.060221 use getInheritedNodeInfo(String xPath)get first NodeInfo element from child list or child list of any ancestor- Returns:
- JDFNodeInfo - the element
-
removeNodeInfo
public void removeNodeInfo()remove element NodeInfo with ProcessUsage="Ancestor" is infinity. Use removeNodeInfos() to remove all. -
removeCustomerInfo
public void removeCustomerInfo()remove element Customerinfo whether it is an element or a resource -
removeNodeInfos
Deprecated.removes only 1 NodeInfo. In Version 1.3 the cardinality of NodeInforemoves all NodeInfo elements -
removeCustomerInfos
Deprecated.060220 use removeCustomerInforemoves all CustomerInfo elements whether it is an element or a resource -
eraseUnlinkedResources
public void eraseUnlinkedResources()removes all unlinked resources -
removeFromTypes
Deprecated.use the 3-parameter versionremove a type from the types list - also cleaning up combinedprocessindex- Parameters:
type- the typeiSkip- the index of this type in the list of identical types - typically 0
-
removeFromTypes
remove a type from the types list - also cleaning up combinedprocessindex- Parameters:
type- the typeiSkip- the index of this type in the list of identical types - typically 0bRemoveEmptyLink- if true, remove any reslinks that have no remaining combinedprocessindex
-
removeResource
removes a Resource from this ResourceLinkPool and from the resourcePool if it is no longer linked to any other process- Parameters:
nodeName- the Nodename of the Resource "NodeInfo" for exampleiSkip- number to skip before deleting- Returns:
- KElement the removed resource, null if nothing was found or deleted (e.g. 4 found and the 5th is the one to delete). The link is not returned
If the link is deleted and the resource is still linked to another process, null is returned.
-
numNodeInfos
Deprecated.must never be more than one...Number of NodeInfo elements- Returns:
- int number of matching elements
-
numCustomerInfos
Deprecated.must never be more than one...Number of NodeInfo elements- Returns:
- int - number of matching elements
-
hasNodeInfo
Deprecated.use getNodeInfo()!=nulltest whether either an element NodeInfo or a JDF 1.3 NodeInfo Resource exists- Returns:
- true if at least one matching element exists
-
hasCustomerInfo
Deprecated.use getCustomerInfo()!=nulltest whether either an element CustomerInfo or a JDF 1.3 CustomerInfo Resource exists- Returns:
- bool true if at least one matching element exists
-
getCreateResourceLinkPool
Get element ResourceLinkPool, create if it doesn't exist- Returns:
- the found/created element
-
appendResourceLinkPool
Append a ResourceLinkPool element, return existing element if one already exist- Returns:
- the ResourceLinkPool element
-
getResourceLinkPool
get the first ResourceLinkPool element- Returns:
- the element
-
getCreateResourcePool
Get element ResourcePool, create if it doesn't exist- Returns:
- the found/created element
-
appendResourcePool
append a ResourcePool element, return existing element if one already exist- Returns:
- the ResourcePool element
-
getResourcePool
get the first ResourcePool element- Returns:
- the element
-
getCreateStatusPool
Get element StatusPool, create if it doesn't exist- Returns:
- the found/created element
-
appendStatusPool
append a StatusPool element, return existing element if one already exist- Returns:
- the StatusPool element
-
getStatusPool
get the first StatusPool element- Returns:
- the element
-
getChildJDFNode
get a Child JDFNode with a given ID attribute- Parameters:
id- the id of the childbDirect- if true, only direct children, else recurse down the tree- Returns:
- JDFNode - the parent JDF, null if this is the root JDF
-
hasVersion
public boolean hasVersion(boolean bInherit) Check existence of attribute "version"- Parameters:
bInherit- recurse through ancestors and Ancestor elements of the AncestorPool when searching- Returns:
- true if attribute Version exists
-
setVersion
Deprecated.use JDFElement.setVersion(EnumVersion.getEnum(value))set attribute "version"- Parameters:
value- the value to set the attribute to
-
getVersion
get enum attribute "version"- Overrides:
getVersionin classJDFElement- Parameters:
bInherit- recurse through ancestors when searching- Returns:
- EnumVersion - attribute value
-
cloneResourceToModify
clone the target resource of this and generate a ResourceAudit in the parent node's AuditPool. Both resourcelinks of the ResourceAudit are filled in.
The resource selected by this may now be modified.
The cloned copy has a new Id in the format: (thisID)_old_nnn- Parameters:
resLink-- Returns:
- the ResourceAudit that was created
-
prepareToModifyLink
Generate a ResourceAudit in the parent node's AuditPool an initial copy of the not yet modified resourcelink is inserted
call JDFResourceAudit.UpdateLink with the modified link to finalize- Parameters:
resLink-- Returns:
- the ResourceAudit that was created
-
getTypes
get the Types as a vector of strings- Returns:
- vector of Strings in Types, null if this may not contain multiple types
-
getEnumTypes
get the Types as a vector of EnumType- Returns:
- vector of enumerated types, null if extensions exist that hinder us from generating a complete vector
e.g. extension types or gray box names
-
getCombinedProcessIndex
get the first index of a process in types after start- Parameters:
typ- the Type to search forstart- the position to start searching at - generally 0- Returns:
- int the position of the first occurence after start,-1 if none is found
-
getCombinedProcessIndex
get the first index of a process in types after start- Parameters:
typ- the Type to search forstart- the position to start searching at - generally 0- Returns:
- int the position of the first occurence after start,-1 if none is found
-
addTypes
add typ to the types list if this is a combined node or gray box- Parameters:
typ-
-
addTypes
add typ to the types list if this is a combined node or gray box- Parameters:
typ-combineType- one of null, Combined or ProcessGroup
-
ensureCombined
one of Combined or ProcessGroup- Parameters:
combineType-
-
getAllTypes
Gets the vector of the string Type/Types attribute values of the given JDFNode by recursively traversing the tree
returns exactly one element="Product" if the tested node's type is product- Returns:
- VString - vector of Type/Types attributes of the tested ProcessGroup JDFNode
- Throws:
JDFException- if the tested JDFNode has an illegal combination of attribute 'Types' and child JDFNodes
-
setTypes
set node Types , also set Type to Combined- Parameters:
vCombiNodes- vector of types
-
setTypes
set node Types , also set Type to Combined- Parameters:
vCombiNodes- vector of types
-
getLinksForCombinedProcessIndex
get the links that are selected by a given CombinedProcessIndex
all links with no CombinedProcessIndex are included in the list- Parameters:
combinedProcessIndex- the nTh occurence of the CombinedProcessIndex field, -1 if all valid positions are ok- Returns:
-
getLinksForType
get the links that are selected by a given CombinedProcessIndex
all links with no CombinedProcessIndex are included in the list- Parameters:
type- the process type for which to get the linksnType- the nTh occurence of the Type field, -1 if all valid positions are ok- Returns:
-
getEnumType
get the enumerated type value of @Type- Returns:
- the enumerated type
-
insertTypeInTypes
insert a new Process into @Types at the position pos- Parameters:
type- the process typebeforePos- the position before which to add the in the list, 0 is first, ... -1 is before the last, very large is append
-
getParentIds
Get an ordered list of the ids of the parents of this node
the last element in the pool is the direct parent, the second to last is the grandparent etc. The first element is the original root element.- Returns:
- the list of ids in the order parent, grandparent...
-
mergeJDF
@Deprecated public JDFNode mergeJDF(JDFNode toMerge, String urlMerge, JDFNode.EnumCleanUpMerge cleanPolicy, JDFResource.EnumAmountMerge amountPolicy) Deprecated.use JDFMerge classmerge a previously spawned JDF into a node that is a child of, or this root- Parameters:
toMerge- the previosly spawned jdf nodeurlMerge- the url of the ???cleanPolicy- how to clean up the spawn and merge audits after mergingamountPolicy- how to clean up the Resource amounts after merging- Returns:
- JDFNode - the merged node in the new document
note that the return value used to be boolean. The boolean value is now replaced by exceptions. This always corresponds totrue. - Throws:
JDFException- if toMerge has already been mergedJDFException- if toMerge was not spawned from thisJDFException- if toMerge has no AncestorPool
-
hasParent
check whether a node with the same ID as one in p's ancestorpool exists in this document- Parameters:
p- the node to check- Returns:
- true if a node with the same ID as one in p's ancestorpool exists
-
getMinID
Deprecated.- actually does more harm than goodloop over all IDs and find the min ID that will create unique new IDs- Returns:
- the new minimum ID that will generate unique IDs
-
getMaxJobPartId
gets the maximum job part id; note that this assumes integer job part ids return- Parameters:
idPrefix-- Returns:
- int
-
addJDFNode
add a JDFNode remove @Types to avoid inconsistent JDF- Parameters:
typ- type of JDFNode to add- Returns:
- JDFNode the added JDFNode
-
addJDFNode
add a JDFNode- Parameters:
typ- enum type of JDFNode to add- Returns:
- the added JDFNode
-
addProcess
Deprecated.use addJDFNode(EnumType typ) or addJDFNode(String typ)- Parameters:
prodName-- Returns:
-
addProcessGroup
Add a process group node- Parameters:
tasks- types of the processgroup- Returns:
- the added JDFNode
-
addCombined
add a combined node- Parameters:
tasks- types of the node to add- Returns:
- the added node
-
addProduct
add a product node to this- Returns:
- Throws:
JDFException- ith this is not a Product itself
-
removeCompleted
Deprecated.remove all completed nodes- Returns:
-
getCompleted
get a vector with all nodes- Returns:
- vector with all nodes
-
getTargetResource
Returns a resource with id anywhere in the tree below this node similar to getTarget(id) but looks only in the resource pool's direct children- Parameters:
id- the id of the resource- Returns:
- the resource, if available
-
getAncestorElementAttribute
public String getAncestorElementAttribute(String element, String attrib, String nameSpaceURI, String def) searches for the first attribute occurence in the ancestor elements subelements- Parameters:
element-attrib- the attribute namenameSpaceURI- the XML-namespacedef- default value, if no matching attribute is found- Returns:
- String - value of attribute found, empty string if not available
- Since:
- 180502
-
hasAncestorElementAttribute
true if a non default attribute occurs in the parent nodes and the ancestor elements subelements of the root ancestorpool exists- Parameters:
element-attrib- the attribute namenameSpaceURI- the XML-namespace- Returns:
- true if the attribute exists
- Since:
- 180502
-
getIntents
Get vector of linked input resource intents- Returns:
- VElement vector of all input intent resources that are linked as inputs to this node
-
getUnknownLinkVector
get a vector of ResourceLink elements that exist but are unknown by this element- Parameters:
vInNameSpace- list of namespaces where unknown Links are searched for
if null, all namespaces are searchednMax- maximum size of the returned vector- Returns:
- VElement vector of unknown elements
- Since:
- 060730 return type changed to VElement - but since the routine was utterly broken, we should be ok
-
setCategory
set attribute Category- Parameters:
value- the value to set the attribute to
-
getCategory
get string attribute Category- Returns:
- the attribute value
-
getCategory
Deprecated.- use getCategory() instead- Parameters:
bInherit-- Returns:
-
setICSVersions
set attribute ICSVersions- Parameters:
value- the value to set the attribute to
-
setICSVersions
set attribute ICSVersions- Parameters:
value- the value to set the attribute to
-
appendICSVersion
-
getICSVersions
get NMTOKENS attribute ICSVersions- Parameters:
bInherit- if true recurse through ancestors when searching- Returns:
- VString - attribute value
-
setMaxVersion
set MaxVersion to enumVer- Parameters:
enumVer- the EnumVersion to set
-
setMaxVersion
Deprecated.use setMaxVersion(EnumVersion)- Parameters:
value- the string version to set MaxVersion to
-
getMaxVersion
get attribute MaxVersion, defaults to version if not set- Overrides:
getMaxVersionin classJDFElement- Parameters:
bInherit- if true recurse through ancestors when searching- Returns:
- EnumVersion - attribute value default - getMaxVersion(false)
-
setNamedFeatures
set attribute NamedFeatures- Parameters:
value- the value to set the attribute to
-
getNamedFeatures
Get NMTOKENS attribute NamedFeatures- Returns:
- the attribute value
-
setRelatedJobID
set attribute ProjectID- Parameters:
value- the value to set the attribute to
-
getRelatedJobID
get string attribute RelatedJobID- Parameters:
bInherit- recurse through ancestors when searching- Returns:
- the attribute value
-
setRelatedJobPartID
set attribute RelatedJobPartID- Parameters:
value- the value to set the attribute to
-
getRelatedJobPartID
get string attribute RelatedJobPartID- Parameters:
bInherit- recurse through ancestors when searching- Returns:
- the attribute value
-
setStatusDetails
set attribute StatusDetails- Parameters:
value- the value to set the attribute to
-
getStatusDetails
get string attribute StatusDetails- Returns:
- the attribute value
-
getStatusDetails
Deprecated.- use getStatusDetails() instead- Parameters:
bInherit-- Returns:
-
setTemplate
public void setTemplate(boolean value) set attribute Template- Parameters:
value- the value to set the attribute to
-
getTemplate
public boolean getTemplate()get boolean attribute Template, default=false- Returns:
- the attribute value
-
setTemplateID
set attribute TemplateID- Parameters:
value- the value to set the attribute to
-
getTemplateID
get string attribute TemplateID- Parameters:
bInherit- recurse through ancestors when searching- Returns:
- the attribute value
-
setTemplateVersion
set attribute TemplateVersion- Parameters:
value- the value to set the attribute to
-
getTemplateVersion
get string attribute TemplateVersion- Parameters:
bInherit- recurse through ancestors when searching- Returns:
- the attribute value
-
getWorkStepID
get the NodeInfo/@workstepid for a given partition if no workstepID exists, returns jobPartID- Parameters:
map-- Returns:
- the workstepid
-
getNodeInfoCleanupDuration
- Returns:
- JDFDuration
-
getNodeInfoCostType
Deprecated.06�221 use getInheritedNodeInfo(String attName)- Returns:
- JDFMISDetails.EnumCostType
-
getNodeInfoDueLevel
- Returns:
- #
-
getNodeInfoEnd
- Returns:
-
getNodeInfoFirstEnd
- Returns:
-
getNodeInfoFirstStart
- Returns:
-
getNodeInfoIPPVersion
Deprecated.06�221 use getInheritedNodeInfo(String attName)- Returns:
-
getNodeInfoJobPriority
Deprecated.06�221 use getInheritedNodeInfo(String attName)- Returns:
-
getNodeInfoLastEnd
- Returns:
-
getNodeInfoLastStart
- Returns:
-
getNodeInfoNaturalLang
Deprecated.06�221 use getInheritedNodeInfo(String attName)- Returns:
-
getNodeInfoRoute
Deprecated.06�221 use getInheritedNodeInfo(String attName)- Returns:
-
getNodeInfoSetupDuration
- Returns:
-
getNodeInfoStart
- Returns:
-
getNodeInfoTargetRoute
Deprecated.06�221 use getInheritedNodeInfo(String attName)- Returns:
-
getNodeInfoTotalDuration
- Returns:
-
getNodeInfoWorkType
Deprecated.06�221 use getInheritedNodeInfo(String attName)- Returns:
-
getNodeInfoWorkTypeDetails
Deprecated.06�221 use getInheritedNodeInfo(String attName)- Returns:
-
getNodeInfoBusinessInfo
Deprecated.06�221 use getInheritedNodeInfo(String attName)- Returns:
-
getNodeInfoEmployee
Deprecated.06�221 use getInheritedNodeInfo(String attName)- Returns:
-
getNodeInfoJMF
Deprecated.06�221 use getInheritedNodeInfo(String attName)- Parameters:
iSkip-- Returns:
-
getNodeInfoNotificationFilter
Deprecated.06�221 use getInheritedNodeInfo(String attName)- Parameters:
iSkip-- Returns:
-
getInheritedCustomerInfo
get first CustomerInfo element from child list or child list of any ancestor- Parameters:
xPath- the the xPath to an element or attribute that must exist in the queried CustomerInfo
note that attributes must be marked with an "@", if xPath=null, simply return the next in line- Returns:
- the matching CustomerInfo element
-
getInheritedCustomerInfo
Deprecated.06�221 use getInheritedCustomerInfo(String xPath)get first CustomerInfo element from child list or child list of any ancestor- Returns:
- CustomerInfo The matching CustomerInfo element
-
getCustomerInfoBillingCode
Deprecated.06�221 use getInheritedCustomerInfo(String attName)- Returns:
-
getCustomerInfoCustomerID
Deprecated.06�221 use getInheritedCustomerInfo(String attName)- Returns:
-
getCustomerInfoCustomerJobName
Deprecated.06�221 use getInheritedCustomerInfo(String attName)- Returns:
-
getCustomerInfoCustomerOrderID
Deprecated.06�221 use getInheritedCustomerInfo(String attName)- Returns:
-
getCustomerInfoCustomerProjectID
Deprecated.06�221 use getInheritedCustomerInfo(String attName)- Returns:
-
getCustomerInfoCompany
Deprecated.06�221 use getInheritedCustomerInfo(String attName)- Returns:
-
getCustomerInfoContact
Deprecated.06�221 use getInheritedCustomerInfo(String attName)- Parameters:
iSkip-- Returns:
-
getCustomerInfoCustomerMessage
Deprecated.06�221 use getInheritedCustomerInfo(String attName)- Parameters:
iSkip-- Returns:
-
isSuccessor
Checks if this process is the successor of the given process node.- Parameters:
proc- node to check against- Returns:
- boolean -
trueif this process is successor of given process
-
getResourceIDs
Returns the input or output resource IDs of this process node.- Parameters:
isInput-trueto get input resource IDs.falseto get output resource IDs.- Returns:
- VString - Vector containing resource IDs.
-
getExecutablePartitions
@Deprecated public VJDFAttributeMap getExecutablePartitions(JDFResourceLink link, JDFResource res, JDFResource.EnumResStatus minStatus) Deprecated.use getExecutablePartitions(link, minStatus);Gets the executable partitions of the resource in this node (with corresponding resource link). The part maps returned may be nested. If the empty part map is contained, the whole resource is executable.
Availability of a resource depends on the status, the availability of refered sub-partitions and the part usage.- Parameters:
link- the resource link.res- the resource. (legacy dummy the resource is actually calculated from the link)minStatus- minimum resource status to include.- Returns:
- VJDFAttributeMap - A part map vector containing the executable partitions.
-
getExecutablePartitions
@Deprecated public VJDFAttributeMap getExecutablePartitions(JDFResourceLink link, JDFResource.EnumResStatus minStatus) Deprecated.only for backward compatibility !!!Method getExecutablePartitions- Parameters:
link-minStatus-- Returns:
-
getExecutablePartitions
public VJDFAttributeMap getExecutablePartitions(JDFResourceLink link, JDFResource.EnumResStatus minStatus, boolean bCheckNodeStatus) Gets the executable partitions of the resource in this node (with corresponding resource link). The part maps returned may be nested. If the empty part map is contained, the whole resource is executable.
Availability of a resource depends on the status, the availability of refered sub-partitions and the part usage.- Parameters:
link- the resource link.minStatus- minimum resource status to include.bCheckNodeStatus- check node status.- Returns:
- VJDFAttributeMap - A part map vector containing the executable partitions.
-
getProcessNodes
Deprecated.use getvJDFNode(null,null,false) and skip intermediate nodesGets all child process nodes. This function replaces the JDFDoc.getProcessNodes, which may be implemented as getJDFRoot.getProcessNodes();- Returns:
- JDFNode [] - All child process nodes.
-
isProcessNode
public boolean isProcessNode()Checks if this node is a simple process (including Combined and grey box ProcessGroup) leaf node.- Returns:
- boolean -
trueif this is a process node.
-
addInternalPipe
add an internal pipe (an input and an output link to an explicitly defined exchange resource)- Parameters:
resourceName- The name of the reource to createindexOutput- the CombinedProcessIndex of the output ResourceLink to the internal pipeindexInput- the CombinedProcessIndex of the input ResourceLink to the internal pipe- Returns:
- JDFResource - the newly created resource
-
getPartIDKeys
get a heuristic partidkey vector from the partitons of the linked resources- Parameters:
partMap- the partmap to order. If not specified, use the output link- Returns:
- the ordered vector of partIDKeys
-
prepareNodeInfo
prepare the nodeinfo for a list of parts, e.g. for a partitioned spawn if nodeinfo is prepartitioned it will return a vector of all matching leaves- Parameters:
vSpawnParts- the list of parts- Returns:
- the vector of nodeinfo leaves
-
getLinks
Deprecated.- use getResourceLinksgetLinks - get the links matching mLinkAtt out of the resource link pool- Parameters:
linkName- the name of the link including or excluding the "Link", If it is omitted, it will be addedmLinkAtt- the attributes to search forlinkNS- the namespace of the link- Returns:
- VElement - all elements matching the condition mLinkAtt
-
getResourceLinks
getLinks - get the links matching mLinkAtt out of the resource link pool- Parameters:
linkName- the name of the link including or excluding the "Link", If it is omitted, it will be addedmLinkAtt- the resourcelink attributes to search forlinkNS- the namespace of the link- Returns:
- VElement - all elements matching the condition mLinkAtt,
-
getLink
getLink - get the n'th link matching mLinkAtt out of the resource link pool- Parameters:
index- the index of the matching linklinkName- the name of the link including or excluding the "Link". If it is omitted, it will be added.mLinkAtt- the attributes to search forlinkNS- the namespace of the link- Returns:
- JDFResourceLink - the ResourceLink matching the condition mLinkAtt
-
getLinks
Deprecated.this routine does not belong here at all!Gets all elements with name linkName, which contain resource links that point to this resource- Parameters:
linkName- defaults to anynameSpaceURI- attribute namespace you are searching in- Returns:
- VElement vector of all found elements
-
sortChildren
public void sortChildren()sorts all elements alphabetically also recurses into the resourcepool and the sub JDF Node NO other sub-elements are sorted- Overrides:
sortChildrenin classKElement- See Also:
-
getMatchingNodes
returns all subnodes of this (including this) that match ni- Parameters:
ni- the Identifier to match- Returns:
-
linkOutputs
links all output resources of thePreviousNode as inputs to this- Parameters:
thePreviousNode-
-
synchParentAmounts
public void synchParentAmounts()synchronize the amounts of a gray box parent with the expanded jdfnode -
toGrayBox
public void toGrayBox(boolean bExpand) make any combined or single type process to a gray box- Parameters:
bExpand- if true, create a parent gray box that wraps this, else simply rename this
-
setIdentifier
- Specified by:
setIdentifierin interfaceINodeIdentifiable- Parameters:
ni-- See Also:
-
setURL
sets the CommentURL this allows us to implementIURLSetterand automagically manipulate attatched commenturl files- Specified by:
setURLin interfaceIURLSetter- Parameters:
url- the URL to set- See Also:
-
getURL
gets the CommentURL this allows us to implementIURLSetterand automagically manipulate attatched commenturl files- Specified by:
getURLin interfaceIURLSetter- Returns:
- the URL of this
- See Also:
-
getUserFileName
- Specified by:
getUserFileNamein interfaceIURLSetter- Returns:
- the filename of this; null if not implemented
-
setVersion
Description copied from class:JDFElementset Version to enumVer- Overrides:
setVersionin classJDFElement- Parameters:
enumVer- the EnumVersion to set- See Also:
-
parseFile
parse a JDF file- Parameters:
file-- Returns:
- the parsed JDFNode
-
parseFile
parse a JDF file- Parameters:
fileName-- Returns:
- the parsed JDFNode
-
parseStream
parse a JDF input stream- Parameters:
is-- Returns:
- the parsed JDFNode
-
createRoot
- Returns:
-
getJobPart
convenience deep getter- Parameters:
jobPartID-- Returns:
-