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:
java.io.Serializable,java.lang.Cloneable,INodeIdentifiable,IStreamWriter,IURLSetter,org.w3c.dom.Element,org.w3c.dom.ElementTraversal,org.w3c.dom.events.EventTarget,org.w3c.dom.Node,org.w3c.dom.NodeList,org.w3c.dom.TypeInfo
public class JDFNode extends JDFElement implements INodeIdentifiable, IURLSetter
This is the main node for the JDF ticket. Others are around, but this is the main one to do editing.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJDFNode.CombinedProcessIndexHelperclassJDFNode.CombinedProcessLinkHelperstatic classJDFNode.EnumActivationinner class EnumActivation:
Enumeration for attribute Activationstatic classJDFNode.EnumCleanUpMergeEnumeration for the policy of cleaning up the Spawn and Merge auditsstatic classJDFNode.EnumProcessUsageEnumeration for accessing typesafe nodesstatic classJDFNode.EnumTypeinner class EnumType: Enumeration for accessing typesafe node typesclassJDFNode.StatusSynchsynchronization of stati based on child jdf node status-
Nested classes/interfaces inherited from class org.cip4.jdflib.core.JDFElement
JDFElement.EnumBoolean, JDFElement.EnumNamedColor, JDFElement.EnumNodeStatus, JDFElement.EnumOrientation, JDFElement.EnumPoolType, JDFElement.EnumSeparation, JDFElement.EnumSettingsPolicy, JDFElement.EnumValidationLevel, JDFElement.EnumVersion, JDFElement.EnumXYRelation, JDFElement.eUnit
-
Nested classes/interfaces inherited from class org.cip4.jdflib.core.KElement
KElement.MultiAttributeComparator, KElement.SimpleElementNameComparator, KElement.SimpleNodeComparator, KElement.SingleAttributeComparator, KElement.SingleXPathComparator
-
-
Field Summary
Fields Modifier and Type Field Description static JDFNode.EnumActivationActivation_ActiveDeprecated.use EnumActivation.Activestatic JDFNode.EnumActivationActivation_HeldDeprecated.use EnumActivation.Heldstatic JDFNode.EnumActivationActivation_InactiveDeprecated.use EnumActivation.Inactivestatic JDFNode.EnumActivationActivation_InformativeDeprecated.use EnumActivation.EnumActivation.Informativestatic JDFNode.EnumActivationActivation_TestRunDeprecated.use EnumActivation.TestRunstatic JDFNode.EnumActivationActivation_TestRunAndGoDeprecated.use EnumActivation.TestRunAndGostatic JDFNode.EnumProcessUsageProcessUsage_AcceptedDeprecated.use EnumProcessUsage.xxxstatic JDFNode.EnumProcessUsageProcessUsage_AncestorDeprecated.use EnumProcessUsage.xxxstatic JDFNode.EnumProcessUsageProcessUsage_AnyDeprecated.use EnumProcessUsage.xxxstatic JDFNode.EnumProcessUsageProcessUsage_AnyInputDeprecated.use EnumProcessUsage.xxxstatic JDFNode.EnumProcessUsageProcessUsage_AnyOutputDeprecated.use EnumProcessUsage.xxxstatic JDFNode.EnumProcessUsageProcessUsage_BackEndSheetDeprecated.use EnumProcessUsage.xxxstatic JDFNode.EnumProcessUsageProcessUsage_BookDeprecated.use EnumProcessUsage.xxxstatic JDFNode.EnumProcessUsageProcessUsage_BookBlockDeprecated.use EnumProcessUsage.xxxstatic JDFNode.EnumProcessUsageProcessUsage_BoxDeprecated.use EnumProcessUsage.xxxstatic JDFNode.EnumProcessUsageProcessUsage_CaseDeprecated.use EnumProcessUsage.xxxstatic JDFNode.EnumProcessUsageProcessUsage_ChildDeprecated.use EnumProcessUsage.xxxstatic JDFNode.EnumProcessUsageProcessUsage_CoverDeprecated.use EnumProcessUsage.xxxstatic JDFNode.EnumProcessUsageProcessUsage_CoverBoardDeprecated.use EnumProcessUsage.xxxstatic JDFNode.EnumProcessUsageProcessUsage_CoverMaterialDeprecated.use EnumProcessUsage.xxxstatic JDFNode.EnumProcessUsageProcessUsage_DocumentDeprecated.use EnumProcessUsage.xxxstatic JDFNode.EnumProcessUsageProcessUsage_FrontEndSheetDeprecated.use EnumProcessUsage.xxxstatic JDFNode.EnumProcessUsageProcessUsage_GoodDeprecated.use EnumProcessUsage.xxxstatic JDFNode.EnumProcessUsageProcessUsage_InputDeprecated.use EnumProcessUsage.xxxstatic JDFNode.EnumProcessUsageProcessUsage_JacketDeprecated.use EnumProcessUsage.xxxstatic JDFNode.EnumProcessUsageProcessUsage_LabelDeprecated.use EnumProcessUsage.xxxstatic JDFNode.EnumProcessUsageProcessUsage_MarksDeprecated.use EnumProcessUsage.xxxstatic JDFNode.EnumProcessUsageProcessUsage_MotherDeprecated.use EnumProcessUsage.xxxstatic JDFNode.EnumProcessUsageProcessUsage_PlateDeprecated.use EnumProcessUsage.xxxstatic JDFNode.EnumProcessUsageProcessUsage_ProofDeprecated.use EnumProcessUsage.xxxstatic JDFNode.EnumProcessUsageProcessUsage_RejectedDeprecated.use EnumProcessUsage.xxxstatic JDFNode.EnumProcessUsageProcessUsage_RingBinderDeprecated.use EnumProcessUsage.xxxstatic JDFNode.EnumProcessUsageProcessUsage_SpineBoardDeprecated.use EnumProcessUsage.xxxstatic JDFNode.EnumProcessUsageProcessUsage_SurfaceDeprecated.use EnumProcessUsage.xxxstatic JDFNode.EnumProcessUsageProcessUsage_WasteDeprecated.use EnumProcessUsage.xxxstatic JDFNode.EnumTypeType_AdhesiveBindingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_ApprovalDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_AssetListCreationDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_BlockPreparationDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_BoxPackingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_BufferDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_BundlingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_CaseMakingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_CasingInDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_ChannelBindingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_CoilBindingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_CollectingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_ColorCorrectionDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_ColorSpaceConversionDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_CombineDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_CombinedDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_ContactCopyingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_ContoneCalibrationDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_ConventionalPrintingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_CoverApplicationDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_CreasingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_CuttingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_DBDocTemplateLayoutDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_DBTemplateMergingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_DeliveryDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_DigitalDeliveryDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_DigitalPrintingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_DividingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_EmbossingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_EndSheetGluingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_FeedingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_FilmToPlateCopyingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_FoldingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_FormatConversionDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_GatheringDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_GluingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_HeadBandApplicationDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_HoleMakingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_IDPrintingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_ImageReplacementDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_ImageSettingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_ImpositionDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_InkZoneCalculationDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_InsertingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_InterpretingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_JacketingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_LabelingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_LaminatingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_LayoutElementProductionDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_LayoutPreparationDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_LongitudinalRibbonOperationsDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_ManualLaborDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_NumberingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_OrderingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_PackingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_PalletizingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_PDFToPSConversionDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_PerforatingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_PlasticCombBindingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_PreflightDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_PreviewGenerationDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_PrintRollingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_ProcessGroupDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_ProductDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_ProofingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_PSToPDFConversionDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_QualityControlDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_RenderingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_ResourceDefinitionDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_RingBindingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_SaddleStitchingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_ScanningDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_ScreeningDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_SeparationDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_ShapeCuttingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_ShrinkingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_SideSewingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_SoftProofingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_SpinePreparationDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_SpineTapingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_SplitDeprecated.use EnumType.Type_xxx xstatic JDFNode.EnumTypeType_StackingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_StitchingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_StrappingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_StripBindingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_StrippingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_ThreadSealingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_ThreadSewingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_TilingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_TrappingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_TrimmingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_VerificationDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_WireCombBindingDeprecated.use EnumType.xxxstatic JDFNode.EnumTypeType_WrappingDeprecated.use EnumType.xxx-
Fields inherited from class org.apache.xerces.dom.ParentNode
firstChild, fNodeListCache, ownerDocument
-
Fields 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_NODE
-
Fields 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_NODE
-
-
Constructor Summary
Constructors Constructor Description JDFNode(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, java.lang.String qualifiedName)Constructor for JDFNodeJDFNode(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, java.lang.String myNamespaceURI, java.lang.String qualifiedName)Constructor for JDFNodeJDFNode(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, java.lang.String myNamespaceURI, java.lang.String qualifiedName, java.lang.String myLocalName)Constructor for JDFNode
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description JDFNodeaddCombined(VString tasks)add a combined nodeJDFComponentaddComponent(java.lang.String cType, boolean bInput, JDFNode resRoot, boolean bLink)Deprecated.use standard addResourceJDFResourceaddConsumable(java.lang.String strName, boolean bInput, JDFNode resRoot, boolean bLink)Deprecated.use addResource(name, null, true, null, true)JDFResourceaddHandling(java.lang.String strName, boolean bInput, JDFNode resRoot, boolean bLink)Deprecated.use addResource(name, null, true, null, true)JDFResourceaddInternalPipe(java.lang.String resourceName, int indexOutput, int indexInput)add an internal pipe (an input and an output link to an explicitly defined exchange resource)JDFNodeaddJDFNode(java.lang.String typ)add a JDFNode remove @Types to avoid inconsistent JDFJDFNodeaddJDFNode(JDFNode.EnumType typ)add a JDFNodeJDFAuditaddModified(java.lang.String by)addModifiedJDFResourceaddParameter(java.lang.String strName, boolean bInput, JDFNode resRoot, boolean bLink)Deprecated.use addResource(strName, JDFResource.EnumClass.Parameter, bInput, resRoot, bLink, null)JDFNodeaddProcess(java.lang.String prodName)Deprecated.use addJDFNode(EnumType typ) or addJDFNode(String typ)JDFNodeaddProcessGroup(VString tasks)Add a process group nodeJDFNodeaddProduct()add a product node to thisJDFResourceaddResource(java.lang.String strName, JDFResourceLink.EnumUsage usage)addResource - add a resource to resroot and link it to this process utility with the minimal parameter setJDFResourceaddResource(java.lang.String strName, JDFResource.EnumResourceClass resClass, boolean bInput, JDFNode resRoot, boolean bLink, java.lang.String nameSpaceURI)Deprecated.use addResource(String strName, JDFResource.EnumResourceClass resClass, EnumUsage usage, EnumProcessUsage processUsage, JDFNode resRoot, String nameSpaceURI)JDFResourceaddResource(java.lang.String strName, JDFResource.EnumResourceClass resClass, JDFResourceLink.EnumUsage usage, JDFNode.EnumProcessUsage processUsage, JDFNode resRoot, java.lang.String nameSpaceURI, JDFResource toReplace)addResource - add a resource to resroot and link it to this processJDFNodeaddTask(java.lang.String task)Deprecated.use addJDFNodeJDFNodeaddTask(java.lang.String task, VString tasks)Deprecated.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 boxJDFAncestorPoolappendAncestorPool()JDFAuditPoolappendAuditPool()JDFCustomerInfoappendCustomerInfo()appends a CustomerInfo to thisjava.lang.StringappendICSVersion(ICSVersion v)JDFResourceappendMatchingResource(java.lang.String resName, JDFResourceLink.EnumUsage usage)Method AppendMatchingResource.JDFResourceappendMatchingResource(java.lang.String resName, JDFNode.EnumProcessUsage processUsage, JDFNode resourceRoot)Method AppendMatchingResource.JDFNodeInfoappendNodeInfo()appends a NodeInfo to thisJDFNodeInfoappendNodeInfo(int combinedProcessIndex)appends a NodeInfo for a given combinedprocessindex to thisJDFResourceLinkPoolappendResourceLinkPool()Append a ResourceLinkPool element, return existing element if one already existJDFResourcePoolappendResourcePool()append a ResourcePool element, return existing element if one already existJDFStatusPoolappendStatusPool()append a StatusPool element, return existing element if one already existprotected voidcheckPredecessorResource(boolean bPre, boolean bDirect, java.util.HashSet<KElement> h, java.util.HashSet<org.cip4.jdflib.node.JDFNode.ResPart> done, KElement resElem)java.util.Collection<JDFResource>checkSpawnedResources(VString vRWResources, VJDFAttributeMap vSpawnParts)add any resources that live in ancestor nodes to this nodeJDFResourceAuditcloneResourceToModify(JDFResourceLink resLink)clone the target resource of this and generate a ResourceAudit in the parent node's AuditPool.booleancontainsType(java.lang.String type)Check whether typ or types contains typestatic JDFNodecreateRoot()voidensureCombined(JDFNode.EnumType combineType)one of Combined or ProcessGroupjava.lang.StringensureJobPartID()JDFResourceLinkensureLink(JDFResource jdfResource, JDFResourceLink.EnumUsage usage, JDFNode.EnumProcessUsage processUsage)JDFResourceLinkensureLinkPU(JDFResource jdfResource, JDFResourceLink.EnumUsage usage, java.lang.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 indexvoidensureValidRefsPosition(JDFResource r)ensure that the linked resource and all referenced resources are correctly positionedvoidensureValidResPosition(JDFResource res)voideraseUnlinkedResources()removes all unlinked resourcesbooleanfitsActivation(JDFNode.EnumActivation active, boolean bWalkThroughAncestors)the activation state of this nodebooleanfixNiCi(JDFElement.EnumVersion version)fix NodeInfo and CustomerInfoJDFNode.EnumActivationgetActivation()Deprecated.060406 use getActivation(false)JDFNode.EnumActivationgetActivation(boolean bWalkThroughAncestors)get attribute Activation; defaults to Activejava.util.HashSet<JDFElement>getAllRefs(java.util.HashSet<JDFElement> vDoneRefs, boolean bRecurse)get inter-resource linked resource refs and resourcs linksVStringgetAllTypes()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 productjava.lang.StringgetAncestorAttribute(java.lang.String attrib, java.lang.String nameSpaceURI, java.lang.String def)searches for the first element occurence in the parent nodes and then the ancestor elements of the root ancestorpoolKElementgetAncestorElement(java.lang.String element, java.lang.String nameSpaceURI)searches for the first element occurence in this and the ancestor elementsjava.lang.StringgetAncestorElementAttribute(java.lang.String element, java.lang.String attrib, java.lang.String nameSpaceURI, java.lang.String def)searches for the first attribute occurence in the ancestor elements subelementsVStringgetAncestorIDs()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 JDFAncestorPoolJDFNodegetAncestorNode(int nSkip)Deprecated.use getParentJDF()JDFAncestorPoolgetAncestorPool()JDFAuditPoolgetAuditPool()java.lang.StringgetCategory()get string attribute Categoryjava.lang.StringgetCategory(boolean bInherit)Deprecated.- use getCategory() insteadJDFNodegetChildJDFNode(java.lang.String id, boolean bDirect)get a Child JDFNode with a given ID attributeintgetCombinedProcessIndex(java.lang.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 startjava.util.VectorgetCombinedTypes()Deprecated.use getTypes() or getEnumTypes()VElementgetCompleted()get a vector with all nodesJDFAncestorPoolgetCreateAncestorPool()JDFAuditPoolgetCreateAuditPool()JDFCustomerInfogetCreateCustomerInfo()gets the existing CustomerInfo or creates a new one if none exists this method will check if a NodeInfo exists,JDFNodeInfogetCreateNodeInfo()gets the existing NodeInfo or creates a new one if none exists this method will check if a NodeInfo exists,JDFResourcegetCreateResource(java.lang.String strName, JDFResourceLink.EnumUsage usage)Get the linked resource with name=strName; create it if it does not existJDFResourcegetCreateResource(java.lang.String strName, JDFResourceLink.EnumUsage usage, int i)Get the linked resource with name=strName; create it if it does not existJDFResourcegetCreateResource(java.lang.String strName, JDFResourceLink.EnumUsage usage, java.lang.String processUsage)Get the linked resource with name=strNameJDFResourceLinkPoolgetCreateResourceLinkPool()Get element ResourceLinkPool, create if it doesn't existJDFResourcePoolgetCreateResourcePool()Get element ResourcePool, create if it doesn't existJDFStatusPoolgetCreateStatusPool()Get element StatusPool, create if it doesn't existJDFCustomerInfogetCustomerInfo()gets the existing CustomerInfojava.lang.StringgetCustomerInfoBillingCode()Deprecated.06�221 use getInheritedCustomerInfo(String attName)JDFCompanygetCustomerInfoCompany()Deprecated.06�221 use getInheritedCustomerInfo(String attName)JDFContactgetCustomerInfoContact(int iSkip)Deprecated.06�221 use getInheritedCustomerInfo(String attName)java.lang.StringgetCustomerInfoCustomerID()Deprecated.06�221 use getInheritedCustomerInfo(String attName)java.lang.StringgetCustomerInfoCustomerJobName()Deprecated.06�221 use getInheritedCustomerInfo(String attName)JDFCustomerMessagegetCustomerInfoCustomerMessage(int iSkip)Deprecated.06�221 use getInheritedCustomerInfo(String attName)java.lang.StringgetCustomerInfoCustomerOrderID()Deprecated.06�221 use getInheritedCustomerInfo(String attName)java.lang.StringgetCustomerInfoCustomerProjectID()Deprecated.06�221 use getInheritedCustomerInfo(String attName)JDFNode.EnumProcessUsagegetEnumProcessUsage(java.lang.String info, int i)Deprecated.JDFNode.EnumTypegetEnumType()get the enumerated type value of @Typejava.util.Vector<JDFNode.EnumType>getEnumTypes()get the Types as a vector of EnumTypeVJDFAttributeMapgetExecutablePartitions(JDFResourceLink link, JDFResource.EnumResStatus minStatus)Deprecated.only for backward compatibility !!!VJDFAttributeMapgetExecutablePartitions(JDFResourceLink link, JDFResource.EnumResStatus minStatus, boolean bCheckNodeStatus)Gets the executable partitions of the resource in this node (with corresponding resource link).VJDFAttributeMapgetExecutablePartitions(JDFResourceLink link, JDFResource res, JDFResource.EnumResStatus minStatus)Deprecated.use getExecutablePartitions(link, minStatus);VStringgetICSVersions(boolean bInherit)get NMTOKENS attribute ICSVersionsNodeIdentifiergetIdentifier()gets the NodeIdetifier that matches thisjava.lang.StringgetIDPrefix()getIDPrefixJDFCustomerInfogetInheritedCustomerInfo()Deprecated.06�221 use getInheritedCustomerInfo(String xPath)JDFCustomerInfogetInheritedCustomerInfo(java.lang.String xPath)get first CustomerInfo element from child list or child list of any ancestorJDFNodeInfogetInheritedNodeInfo()Deprecated.060221 use getInheritedNodeInfo(String xPath)JDFNodeInfogetInheritedNodeInfo(java.lang.String xPath)get first NodeInfo element from child list or child list of any ancestorVStringgetInsertLinkVector(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:ProcessUsageVElementgetIntents()Get vector of linked input resource intentsVStringgetInvalidLinks(JDFElement.EnumValidationLevel level, int nMax)typesafe validator utilityJDFNodegetJDF(int iSkip)getJobPart - get a child node with a given jobpartidjava.lang.StringgetJobID(boolean bInherit)get string attribute JobIDJDFNodegetJobPart(java.lang.String jobPartID)convenience deep getterJDFNodegetJobPart(java.lang.String jobPartID, java.lang.String jobID)getJobPart - get a child node with a given jobpartidJDFNodegetJobPart(NodeIdentifier nodeID)getJobPart - get a child node with a given jobpartidjava.lang.StringgetJobPartID()Deprecated.use getJobPartID(false);java.lang.StringgetJobPartID(boolean bInherit)get string attribute JobIDJDFResourceLinkgetLink(int index, java.lang.String linkName, JDFAttributeMap mLinkAtt, java.lang.String linkNS)getLink - get the n'th link matching mLinkAtt out of the resource link poolJDFResourceLinkgetLink(java.lang.String strName, JDFResourceLink.EnumUsage usage, java.lang.String processUsage)Get the resource link with name=strName - convenienceJDFResourceLinkgetLink(java.lang.String strName, JDFResourceLink.EnumUsage usage, java.lang.String processUsage, java.lang.String namespaceURI, int i)Get the resource link with name=strNameJDFResourceLinkgetLink(JDFResource r, boolean bInput)Deprecated.use getLink(resource, EnumUsage)JDFResourceLinkgetLink(JDFResource r, JDFResourceLink.EnumUsage usage)getLink - get the resourcelink that resides in the ResourceLinkPool of this node and references the resource rVElementgetLinkedResources(JDFAttributeMap mResAtt, boolean bFollowRefs)get the linked resources matching certain conditions
combines all linked resources from ResourceLinkPool, CustomerInfo, NodeInfo and AuditPoolVElementgetLinkedResourceVector(JDFResourceLink.EnumUsage usage, java.lang.String resName, JDFNode.EnumProcessUsage procUsage, boolean expandLeaves)get the vector of all resource leaves linked to a resourceLinkInfoMapgetLinkInfoMap()VElementgetLinks(java.lang.String linkName, java.lang.String nameSpaceURI)Deprecated.this routine does not belong here at all!VElementgetLinks(java.lang.String linkName, JDFAttributeMap mLinkAtt, java.lang.String linkNS)Deprecated.- use getResourceLinksVElementgetLinksForCombinedProcessIndex(int combinedProcessIndex)get the links that are selected by a given CombinedProcessIndex
all links with no CombinedProcessIndex are included in the listVElementgetLinksForType(JDFNode.EnumType type, int nType)get the links that are selected by a given CombinedProcessIndex
all links with no CombinedProcessIndex are included in the listJDFResourceLinkgetMatchingLink(java.lang.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)VElementgetMatchingLinks(java.lang.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 ignoredVElementgetMatchingNodes(NodeIdentifier ni)returns all subnodes of this (including this) that match niJDFResourcegetMatchingResource(java.lang.String resName, int processUsage, JDFAttributeMap partMap, int pos)Deprecated.use getMatchingResource(String resName, EnumProcessUsage processUsage, JDFAttributeMap partMap, int pos))JDFResourcegetMatchingResource(java.lang.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(java.lang.String idPrefix)gets the maximum job part id; note that this assumes integer job part ids returnJDFElement.EnumVersiongetMaxVersion(boolean bInherit)get attribute MaxVersion, defaults to version if not setintgetMinID()Deprecated.- actually does more harm than goodVStringgetMissingLinks(int nMax)Deprecated.use getMissingLinkVectorVStringgetMissingLinkVector(int nMax)get a vector of Link names that are missing in this element
if the links need a processusage, the format is LinkName:ProcessUsageVStringgetNamedFeatures()Get NMTOKENS attribute NamedFeaturesJDFNodeInfogetNodeInfo()gets the existing local NodeInfo if it is a resource or an element and the NodeInfo is unique for all CombinedProcessIndex valuesJDFNodeInfogetNodeInfo(int combinedProcessIndex)gets the existing local NodeInfo for a given CombinedProcessIndexJDFBusinessInfogetNodeInfoBusinessInfo()Deprecated.06�221 use getInheritedNodeInfo(String attName)JDFDurationgetNodeInfoCleanupDuration()JDFAutoMISDetails.EnumCostTypegetNodeInfoCostType()Deprecated.06�221 use getInheritedNodeInfo(String attName)JDFAutoNodeInfo.EnumDueLevelgetNodeInfoDueLevel()JDFEmployeegetNodeInfoEmployee()Deprecated.06�221 use getInheritedNodeInfo(String attName)JDFDategetNodeInfoEnd()JDFDategetNodeInfoFirstEnd()JDFDategetNodeInfoFirstStart()JDFXYPairgetNodeInfoIPPVersion()Deprecated.06�221 use getInheritedNodeInfo(String attName)JDFJMFgetNodeInfoJMF(int iSkip)Deprecated.06�221 use getInheritedNodeInfo(String attName)intgetNodeInfoJobPriority()Deprecated.06�221 use getInheritedNodeInfo(String attName)JDFDategetNodeInfoLastEnd()JDFDategetNodeInfoLastStart()java.lang.StringgetNodeInfoNaturalLang()Deprecated.06�221 use getInheritedNodeInfo(String attName)JDFNotificationFiltergetNodeInfoNotificationFilter(int iSkip)Deprecated.06�221 use getInheritedNodeInfo(String attName)VJDFAttributeMapgetNodeInfoPartMapVector()return the partMapVector defined in AncestorPool or NodeInfo or output resource in that sequence, null if no NodeInfo exists, or NodeInfo has no Part elementsjava.lang.StringgetNodeInfoRoute()Deprecated.06�221 use getInheritedNodeInfo(String attName)JDFDurationgetNodeInfoSetupDuration()JDFDategetNodeInfoStart()java.lang.StringgetNodeInfoTargetRoute()Deprecated.06�221 use getInheritedNodeInfo(String attName)JDFDurationgetNodeInfoTotalDuration()JDFAutoMISDetails.EnumWorkTypegetNodeInfoWorkType()Deprecated.06�221 use getInheritedNodeInfo(String attName)java.lang.StringgetNodeInfoWorkTypeDetails()Deprecated.06�221 use getInheritedNodeInfo(String attName)VStringgetParentIds()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.JDFNodegetParentJDF()get the Parent JDFNode, null if the parent element is the document or an envelope xmlJDFNodegetParentJDFNode()Deprecated.use getParentJDF()JDFNodegetParentProduct()get the Parent JDFNode with Type=Product, null if the parent element is the document or an envelope xml or no product existsVStringgetPartIDKeys(JDFAttributeMap partMap)get a heuristic partidkey vector from the partitons of the linked resourcesVJDFAttributeMapgetPartMapVector()return the partMapVector defined in AncestorPool, null if no AncestorPool exists, or AncestorPool has no Part elementsJDFElement.EnumNodeStatusgetPartStatus(JDFAttributeMap mattr)Deprecated.us 2 parameter methodJDFElement.EnumNodeStatusgetPartStatus(JDFAttributeMap attMap, int method)get the node's partition status, even if the link does not match mattrjava.lang.StringgetPartStatusDetails(JDFAttributeMap mattr)get the node's partition statusdetailsjava.util.VectorgetPredecessors(boolean bPre)Deprecated.use getPredecessors(bPre,false);VElementgetPredecessors(boolean bPre, boolean bDirect)get a vector of all direct predecessor or following nodes, depending on bPreJDFNode[]getProcessNodes()Deprecated.use getvJDFNode(null,null,false) and skip intermediate nodesJDFElement.EnumNodeStatusgetProcessStatus(JDFAttributeMap mattr)Deprecated.use getPartStatus()java.lang.StringgetProjectID()Deprecated.use getProjectID(boolean bInherit)java.lang.StringgetProjectID(boolean bInherit)get string attribute ProjectIDjava.lang.StringgetRelatedJobID(boolean bInherit)get string attribute RelatedJobIDjava.lang.StringgetRelatedJobPartID(boolean bInherit)get string attribute RelatedJobPartIDJDFResourcegetResource(java.lang.String strName)Get the linked resource with name=strNameJDFResourcegetResource(java.lang.String strName, JDFResourceLink.EnumUsage usage)Get the linked resource with name=strNameJDFResourcegetResource(java.lang.String strName, JDFResourceLink.EnumUsage usage, int i)Get the linked resource with name=strNameJDFResourcegetResource(java.lang.String strName, JDFResourceLink.EnumUsage usage, java.lang.String processUsage, java.lang.String namespaceURI, int i)Get the linked resource with name=strNameJDFResourcegetResource(java.lang.String strName, JDFResourceLink.EnumUsage usage, JDFNode.EnumProcessUsage processUsage, int i)Get the linked resource with name=strNameJDFResourcegetResource(java.lang.String strName, JDFResourceLink.EnumUsage usage, JDFNode.EnumProcessUsage processUsage, int i, java.lang.String namespaceURI)Deprecated.VStringgetResourceIDs(boolean isInput)Returns the input or output resource IDs of this process node.java.util.List<JDFResource>getResourceLeaves(java.lang.String strName, JDFResourceLink.EnumUsage usage)Get the linked resource with name=strNamejava.util.List<JDFResource>getResourceLeaves(java.lang.String strName, JDFResourceLink.EnumUsage usage, java.lang.String processUsage, java.lang.String namespaceURI, int i)Get the linked resource with name=strNameJDFResourceLinkPoolgetResourceLinkPool()get the first ResourceLinkPool elementVElementgetResourceLinks()Deprecated.use getResourceLinks(null)VElementgetResourceLinks(java.lang.String linkName, JDFAttributeMap mLinkAtt, java.lang.String linkNS)getLinks - get the links matching mLinkAtt out of the resource link poolVElementgetResourceLinks(JDFAttributeMap mLinkAtt)get the resourcelinks in the resourcepool of this nodeJDFResourcePoolgetResourcePool()get the first ResourcePool elementJDFResourcegetResourceRoot(java.lang.String strName, JDFResourceLink.EnumUsage usage, int i)Get the linked resource with name=strNameJDFNodegetRoot()getRoot - this function returns the root of the JDF documentjava.lang.StringgetSpawnID()Deprecated.use getSpawnID(boolean)java.lang.StringgetSpawnID(boolean bInherit)get string attribute SpawnIDjava.lang.StringgetStatusDetails()get string attribute StatusDetailsjava.lang.StringgetStatusDetails(boolean bInherit)Deprecated.- use getStatusDetails() insteadVJDFAttributeMapgetStatusPartMapVector()return the partMapVector defined by nodeInfo partitioning null if nodeInfo is not partitioned or if the node status is neither pool nor partJDFStatusPoolgetStatusPool()get the first StatusPool elementJDFNode.StatusSynchgetStatusSynch()get the status synchronizerJDFResourcegetTargetResource(java.lang.String id)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 childrenbooleangetTemplate()get boolean attribute Template, default=falsejava.lang.StringgetTemplateID(boolean bInherit)get string attribute TemplateIDjava.lang.StringgetTemplateVersion(boolean bInherit)get string attribute TemplateVersionprotected AttributeInfogetTheAttributeInfo()definition of optional attributes in the JDF namespaceprotected ElementInfogetTheElementInfo()java.lang.StringgetType()getType - get node TypeVStringgetTypes()get the Types as a vector of stringsjava.lang.StringgetTypesString()getType - get node Types or Type attributeVElementgetUnknownLinkVector(VString vInNameSpace, int nMax)get a vector of ResourceLink elements that exist but are unknown by this elementVElementgetUnlinkedResources(boolean bLocal)Deprecated.- Use @see UnlinkFinderjava.lang.StringgetURL()gets the CommentURL this allows us to implementIURLSetterand automagically manipulate attatched commenturl filesjava.io.InputStreamgetURLInputStream()get the input stream that reads from URLjava.lang.StringgetUserFileName()JDFElement.EnumNodeStatusgetVectorPartStatus(VJDFAttributeMap vMap)get the status for the vector vjava.lang.StringgetVectorPartStatusDetails(VJDFAttributeMap vMap)get the statusdetails for the vector vJDFElement.EnumVersiongetVersion(boolean bInherit)get enum attribute "version"java.util.VectorgetvJDFNode(java.lang.String task, boolean active)Deprecated.use public Vector getvJDFNode(task, JDFNode.EnumActivation.Unknown, false)VElementgetvJDFNode(java.lang.String task, JDFNode.EnumActivation active, boolean bDirect)Get a vector of all JDF children with type nodeTypejava.lang.StringgetWorkStepID(JDFAttributeMap map)get the NodeInfo/@workstepid for a given partition if no workstepID exists, returns jobPartIDbooleanhasActivation(boolean bInherit)Check existance of attribute ActivationbooleanhasAncestorAttribute(java.lang.String attrib, java.lang.String nameSpaceURI)true if a non default attribute occurence in the parent nodes and then the ancestor elements of the root ancestorpool existsbooleanhasAncestorElement(java.lang.String element, java.lang.String nameSpaceURI)Deprecated.booleanhasAncestorElementAttribute(java.lang.String element, java.lang.String attrib, java.lang.String nameSpaceURI)true if a non default attribute occurs in the parent nodes and the ancestor elements subelements of the root ancestorpool existsbooleanhasAncestorPool()Deprecated.use numChildElements(ElementName.ANCESTORPOOL, null) > 0;booleanhasCustomerInfo()Deprecated.use getCustomerInfo()!=nullbooleanhasInvalidLinks(JDFElement.EnumValidationLevel level)true if invalid Links are in this elementbooleanhasJobID(boolean bInherit)Deprecated.booleanhasNodeInfo()Deprecated.use getNodeInfo()!=nullbooleanhasParent(JDFNode p)check whether a node with the same ID as one in p's ancestorpool exists in this documentbooleanhasProjectID()Deprecated.booleanhasProjectID(boolean bInherit)Deprecated.booleanhasStatusPool()Deprecated.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()isCombined - is this a Combined resource type ?booleanisExecutable(JDFAttributeMap partMap, boolean bCheckChildren)booleanisGroupNode()Is this a group node type (ProcessGroup or Product)?booleanisJDFRoot()is this the JDF root element, i.e.booleanisProcessGroup()Is this a Combined node type ?booleanisProcessNode()Checks if this node is a simple process (including Combined and grey box ProcessGroup) leaf node.booleanisProduct()Is this a product node type ?booleanisSuccessor(JDFNode proc)Checks if this process is the successor of the given process node.booleanisTypesNode()Is this a group node type that allows @Types (ProcessGroup or Combined)?booleanisValid(JDFElement.EnumValidationLevel level)typesafe validator, checks whether all resource links are okbooleanisValidLink(java.lang.String resName, JDFResourceLink.EnumUsage usage, java.lang.String processUsage)isValidLink check whether an resLink is legal for this classbooleanisValidLink(JDFElement.EnumValidationLevel level, JDFResourceLink rl)isValidLink check whether an resLink is legal for this classVStringlinkInfo()Deprecated.JDFResourceLinklinkMatchingResource(JDFResource resource, JDFNode.EnumProcessUsage processUsage, JDFAttributeMap partMap)Append a resource that matches the typesafe link described by resource nameVStringlinkNames()definition of resource link names in the JDF namespacevoidlinkOutputs(JDFNode thePreviousNode)links all output resources of thePreviousNode as inputs to thisJDFResourceLinklinkResource(JDFResource jdfResource, boolean input, boolean bForce)Deprecated.use linkResource(enum)JDFResourceLinklinkResource(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 indexJDFNodemergeJDF(JDFNode toMerge, java.lang.String urlMerge, JDFNode.EnumCleanUpMerge cleanPolicy, JDFResource.EnumAmountMerge amountPolicy)Deprecated.use JDFMerge classJDFNodemergeNode(JDFNode e, boolean bDelete)merge nodes in a way that no duplicate elements are created
attention !! this kills pools !!intnumCustomerInfos()Deprecated.must never be more than one...intnumMatchingLinks(java.lang.String resName, boolean bLink, JDFNode.EnumProcessUsage processUsage)get the number of links that match the typesafe link resource nameintnumNodeInfos()Deprecated.must never be more than one...static JDFNodeparseFile(java.io.File file)parse a JDF filestatic JDFNodeparseFile(java.lang.String fileName)parse a JDF filestatic JDFNodeparseStream(java.io.InputStream is)parse a JDF input streamVElementprepareNodeInfo(VJDFAttributeMap vSpawnParts)prepare the nodeinfo for a list of parts, e.g.JDFResourceAuditprepareToModifyLink(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 finalizevoidremoveAncestorPool()Deprecated.booleanremoveCompleted()Deprecated.voidremoveCustomerInfo()remove element Customerinfo whether it is an element or a resourcevoidremoveCustomerInfos()Deprecated.060220 use removeCustomerInfovoidremoveFromTypes(java.lang.String type, int iSkip)Deprecated.use the 3-parameter versionvoidremoveFromTypes(java.lang.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(java.lang.String resName, int processUsage, boolean bRemoveResource, int pos)remove the link that matches the typesafe link resource namebooleanremoveMatchingLinks(java.lang.String resName, JDFNode.EnumProcessUsage processUsage, boolean bRemoveResource)remove the link that matches the typesafe link resource namevoidremoveNode(boolean bLeaveSubmit)Deprecated.voidremoveNodeInfo()remove element NodeInfo with ProcessUsage="Ancestor" is infinity.voidremoveNodeInfos()Deprecated.removes only 1 NodeInfo.JDFResourceremoveResource(java.lang.String nodeName, int iSkip)removes a Resource from this ResourceLinkPool and from the resourcePool if it is no longer linked to any other processvoidremoveSpawnID()Deprecated.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(java.lang.String value)set attribute CategoryvoidsetCombined(VString vCombiNodes)setCombined - set the combined node types to the values in vCombiNodesvoidsetICSVersions(VString value)set attribute ICSVersionsVStringsetICSVersions(ICSVersion... versions)set attribute ICSVersionsvoidsetIdentifier(NodeIdentifier ni)voidsetJobID(java.lang.String value)set attribute JobIDvoidsetJobPartID(java.lang.String jobPartID)Set attribute JobPartIDvoidsetMaxVersion(java.lang.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, java.lang.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, java.lang.String statusDetails)sets the node's partition status and StatusDetailsJDFDocsetPhase(JDFElement.EnumNodeStatus nodeStatus, java.lang.String nodeStatusDetails, JDFAutoDeviceInfo.EnumDeviceStatus deviceStatus, java.lang.String deviceStatusDetails, VJDFAttributeMap vPartMap)Deprecated.use the version with deviceIDvoidsetProjectID(java.lang.String strValue)set attribute ProjectIDvoidsetRelatedJobID(java.lang.String value)set attribute ProjectIDvoidsetRelatedJobPartID(java.lang.String value)set attribute RelatedJobPartIDvoidsetSpawnID(java.lang.String value)Set attribute SpawnIDvoidsetStatusDetails(java.lang.String value)set attribute StatusDetailsvoidsetTemplate(boolean value)set attribute TemplatevoidsetTemplateID(java.lang.String value)set attribute TemplateIDvoidsetTemplateVersion(java.lang.String value)set attribute TemplateVersionbooleansetType(java.lang.String newType, boolean checkName)setType set the type attribute to the string typevoidsetType(JDFNode.EnumType typ)setType set the type attribute to the enumeration type also set xsi:type etcvoidsetTypes(VString vCombiNodes)set node Types , also set Type to CombinedvoidsetTypes(VString vCombiNodes, boolean isProcessGroup)set node Types , also set Type to CombinedvoidsetURL(java.lang.String url)sets the CommentURL this allows us to implementIURLSetterand automagically manipulate attatched commenturl filesvoidsetVersion(java.lang.String value)Deprecated.use JDFElement.setVersion(EnumVersion.getEnum(value))voidsetVersion(JDFElement.EnumVersion enumVer)set Version to enumVervoidsortChildren()sorts all elements alphabetically also recurses into the resourcepool and the sub JDF Node NO other sub-elements are sortedJDFNodespawn(java.lang.String parentURL, java.lang.String spawnURL, VString vRWResources_in, VJDFAttributeMap vSpawnParts, boolean bSpawnROPartsOnly, boolean bCopyNodeInfo, boolean bCopyCustomerInfo, boolean bCopyComments)Deprecated.- use JDFSpawn class ( see code below)JDFNodespawnInformative(java.lang.String parentURL, java.lang.String spawnURL, VJDFAttributeMap vSpawnParts, boolean bSpawnROPartsOnly, boolean bCopyNodeInfo, boolean bCopyCustomerInfo, boolean bCopyComments)Deprecated.use JDFSpawn.spawnInformative()voidsynchParentAmounts()synchronize the amounts of a gray box parent with the expanded jdfnodevoidtoGrayBox(boolean bExpand)make any combined or single type process to a gray boxjava.lang.StringtoString()toString - StringRepresentation of JDFNodeJDFNodeunSpawn(java.lang.String spawnID)Deprecated.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 vMapvoidupDateStatus()Deprecated.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, getEnumforAttribute, getEnumNodeName, getEnumString, getFirstVersion, getGeneralID, 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, setGeneralID, setLongID, setMustHonorExceptions, setOperatorInterventionExceptions, setPartMap, setPartMapVector, setSettingsPolicy, setStatus, setvStringAttribute, stringToVersion, uniqueElements, upDaterRefs, validAttribute, validAttribute, validEnumAttribute, validEnumerationsAttribute, validResourcePosition, version, write2Dir
-
Methods 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, xmlnsPrefix
-
Methods inherited from class org.apache.xerces.dom.ElementNSImpl
getLocalName, getPrefix, getTypeName, getTypeNamespace, getXMLBaseAttribute, isDerivedFrom, setType
-
Methods 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, synchronizeData
-
Methods inherited from class org.apache.xerces.dom.ParentNode
getChildNodes, getChildNodesUnoptimized, getFirstChild, getLastChild, getLength, getOwnerDocument, getTextContent, hasChildNodes, item, setTextContent, synchronizeChildren
-
Methods inherited from class org.apache.xerces.dom.ChildNode
getNextSibling, getParentNode, getPreviousSibling
-
Methods 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, setUserData
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.w3c.dom.Element
getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS
-
Methods 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 Detail
-
Activation_Inactive
@Deprecated public static final JDFNode.EnumActivation Activation_Inactive
Deprecated.use EnumActivation.Inactive
-
Activation_Informative
@Deprecated public static final JDFNode.EnumActivation Activation_Informative
Deprecated.use EnumActivation.EnumActivation.Informative
-
Activation_Held
@Deprecated public static final JDFNode.EnumActivation Activation_Held
Deprecated.use EnumActivation.Held
-
Activation_TestRun
@Deprecated public static final JDFNode.EnumActivation Activation_TestRun
Deprecated.use EnumActivation.TestRun
-
Activation_TestRunAndGo
@Deprecated public static final JDFNode.EnumActivation Activation_TestRunAndGo
Deprecated.use EnumActivation.TestRunAndGo
-
Activation_Active
@Deprecated public static final JDFNode.EnumActivation Activation_Active
Deprecated.use EnumActivation.Active
-
Type_ProcessGroup
@Deprecated public static final JDFNode.EnumType Type_ProcessGroup
Deprecated.use EnumType.xxx
-
Type_Combined
@Deprecated public static final JDFNode.EnumType Type_Combined
Deprecated.use EnumType.xxx
-
Type_Product
@Deprecated public static final JDFNode.EnumType Type_Product
Deprecated.use EnumType.xxx
-
Type_Approval
@Deprecated public static final JDFNode.EnumType Type_Approval
Deprecated.use EnumType.xxx
-
Type_Buffer
@Deprecated public static final JDFNode.EnumType Type_Buffer
Deprecated.use EnumType.xxx
-
Type_Combine
@Deprecated public static final JDFNode.EnumType Type_Combine
Deprecated.use EnumType.xxx
-
Type_Delivery
@Deprecated public static final JDFNode.EnumType Type_Delivery
Deprecated.use EnumType.xxx
-
Type_ManualLabor
@Deprecated public static final JDFNode.EnumType Type_ManualLabor
Deprecated.use EnumType.xxx
-
Type_Ordering
@Deprecated public static final JDFNode.EnumType Type_Ordering
Deprecated.use EnumType.xxx
-
Type_Packing
@Deprecated public static final JDFNode.EnumType Type_Packing
Deprecated.use EnumType.xxx
-
Type_QualityControl
@Deprecated public static final JDFNode.EnumType Type_QualityControl
Deprecated.use EnumType.xxx
-
Type_ResourceDefinition
@Deprecated public static final JDFNode.EnumType Type_ResourceDefinition
Deprecated.use EnumType.xxx
-
Type_Split
@Deprecated public static final JDFNode.EnumType Type_Split
Deprecated.use EnumType.Type_xxx x
-
Type_Verification
@Deprecated public static final JDFNode.EnumType Type_Verification
Deprecated.use EnumType.xxx
-
Type_AssetListCreation
@Deprecated public static final JDFNode.EnumType Type_AssetListCreation
Deprecated.use EnumType.xxx
-
Type_ColorCorrection
@Deprecated public static final JDFNode.EnumType Type_ColorCorrection
Deprecated.use EnumType.xxx
-
Type_ColorSpaceConversion
@Deprecated public static final JDFNode.EnumType Type_ColorSpaceConversion
Deprecated.use EnumType.xxx
-
Type_ContactCopying
@Deprecated public static final JDFNode.EnumType Type_ContactCopying
Deprecated.use EnumType.xxx
-
Type_ContoneCalibration
@Deprecated public static final JDFNode.EnumType Type_ContoneCalibration
Deprecated.use EnumType.xxx
-
Type_DBDocTemplateLayout
@Deprecated public static final JDFNode.EnumType Type_DBDocTemplateLayout
Deprecated.use EnumType.xxx
-
Type_DBTemplateMerging
@Deprecated public static final JDFNode.EnumType Type_DBTemplateMerging
Deprecated.use EnumType.xxx
-
Type_DigitalDelivery
@Deprecated public static final JDFNode.EnumType Type_DigitalDelivery
Deprecated.use EnumType.xxx
-
Type_FilmToPlateCopying
@Deprecated public static final JDFNode.EnumType Type_FilmToPlateCopying
Deprecated.use EnumType.xxx
-
Type_FormatConversion
@Deprecated public static final JDFNode.EnumType Type_FormatConversion
Deprecated.use EnumType.xxx
-
Type_ImageReplacement
@Deprecated public static final JDFNode.EnumType Type_ImageReplacement
Deprecated.use EnumType.xxx
-
Type_ImageSetting
@Deprecated public static final JDFNode.EnumType Type_ImageSetting
Deprecated.use EnumType.xxx
-
Type_Imposition
@Deprecated public static final JDFNode.EnumType Type_Imposition
Deprecated.use EnumType.xxx
-
Type_InkZoneCalculation
@Deprecated public static final JDFNode.EnumType Type_InkZoneCalculation
Deprecated.use EnumType.xxx
-
Type_Interpreting
@Deprecated public static final JDFNode.EnumType Type_Interpreting
Deprecated.use EnumType.xxx
-
Type_LayoutElementProduction
@Deprecated public static final JDFNode.EnumType Type_LayoutElementProduction
Deprecated.use EnumType.xxx
-
Type_LayoutPreparation
@Deprecated public static final JDFNode.EnumType Type_LayoutPreparation
Deprecated.use EnumType.xxx
-
Type_PDFToPSConversion
@Deprecated public static final JDFNode.EnumType Type_PDFToPSConversion
Deprecated.use EnumType.xxx
-
Type_Preflight
@Deprecated public static final JDFNode.EnumType Type_Preflight
Deprecated.use EnumType.xxx
-
Type_PreviewGeneration
@Deprecated public static final JDFNode.EnumType Type_PreviewGeneration
Deprecated.use EnumType.xxx
-
Type_Proofing
@Deprecated public static final JDFNode.EnumType Type_Proofing
Deprecated.use EnumType.xxx
-
Type_PSToPDFConversion
@Deprecated public static final JDFNode.EnumType Type_PSToPDFConversion
Deprecated.use EnumType.xxx
-
Type_Rendering
@Deprecated public static final JDFNode.EnumType Type_Rendering
Deprecated.use EnumType.xxx
-
Type_Scanning
@Deprecated public static final JDFNode.EnumType Type_Scanning
Deprecated.use EnumType.xxx
-
Type_Screening
@Deprecated public static final JDFNode.EnumType Type_Screening
Deprecated.use EnumType.xxx
-
Type_Separation
@Deprecated public static final JDFNode.EnumType Type_Separation
Deprecated.use EnumType.xxx
-
Type_SoftProofing
@Deprecated public static final JDFNode.EnumType Type_SoftProofing
Deprecated.use EnumType.xxx
-
Type_Stripping
@Deprecated public static final JDFNode.EnumType Type_Stripping
Deprecated.use EnumType.xxx
-
Type_Tiling
@Deprecated public static final JDFNode.EnumType Type_Tiling
Deprecated.use EnumType.xxx
-
Type_Trapping
@Deprecated public static final JDFNode.EnumType Type_Trapping
Deprecated.use EnumType.xxx
-
Type_ConventionalPrinting
@Deprecated public static final JDFNode.EnumType Type_ConventionalPrinting
Deprecated.use EnumType.xxx
-
Type_DigitalPrinting
@Deprecated public static final JDFNode.EnumType Type_DigitalPrinting
Deprecated.use EnumType.xxx
-
Type_IDPrinting
@Deprecated public static final JDFNode.EnumType Type_IDPrinting
Deprecated.use EnumType.xxx
-
Type_AdhesiveBinding
@Deprecated public static final JDFNode.EnumType Type_AdhesiveBinding
Deprecated.use EnumType.xxx
-
Type_BlockPreparation
@Deprecated public static final JDFNode.EnumType Type_BlockPreparation
Deprecated.use EnumType.xxx
-
Type_BoxPacking
@Deprecated public static final JDFNode.EnumType Type_BoxPacking
Deprecated.use EnumType.xxx
-
Type_Bundling
@Deprecated public static final JDFNode.EnumType Type_Bundling
Deprecated.use EnumType.xxx
-
Type_CaseMaking
@Deprecated public static final JDFNode.EnumType Type_CaseMaking
Deprecated.use EnumType.xxx
-
Type_CasingIn
@Deprecated public static final JDFNode.EnumType Type_CasingIn
Deprecated.use EnumType.xxx
-
Type_ChannelBinding
@Deprecated public static final JDFNode.EnumType Type_ChannelBinding
Deprecated.use EnumType.xxx
-
Type_CoilBinding
@Deprecated public static final JDFNode.EnumType Type_CoilBinding
Deprecated.use EnumType.xxx
-
Type_Collecting
@Deprecated public static final JDFNode.EnumType Type_Collecting
Deprecated.use EnumType.xxx
-
Type_CoverApplication
@Deprecated public static final JDFNode.EnumType Type_CoverApplication
Deprecated.use EnumType.xxx
-
Type_Creasing
@Deprecated public static final JDFNode.EnumType Type_Creasing
Deprecated.use EnumType.xxx
-
Type_Cutting
@Deprecated public static final JDFNode.EnumType Type_Cutting
Deprecated.use EnumType.xxx
-
Type_Dividing
@Deprecated public static final JDFNode.EnumType Type_Dividing
Deprecated.use EnumType.xxx
-
Type_Embossing
@Deprecated public static final JDFNode.EnumType Type_Embossing
Deprecated.use EnumType.xxx
-
Type_EndSheetGluing
@Deprecated public static final JDFNode.EnumType Type_EndSheetGluing
Deprecated.use EnumType.xxx
-
Type_Feeding
@Deprecated public static final JDFNode.EnumType Type_Feeding
Deprecated.use EnumType.xxx
-
Type_Folding
@Deprecated public static final JDFNode.EnumType Type_Folding
Deprecated.use EnumType.xxx
-
Type_Gathering
@Deprecated public static final JDFNode.EnumType Type_Gathering
Deprecated.use EnumType.xxx
-
Type_Gluing
@Deprecated public static final JDFNode.EnumType Type_Gluing
Deprecated.use EnumType.xxx
-
Type_HeadBandApplication
@Deprecated public static final JDFNode.EnumType Type_HeadBandApplication
Deprecated.use EnumType.xxx
-
Type_HoleMaking
@Deprecated public static final JDFNode.EnumType Type_HoleMaking
Deprecated.use EnumType.xxx
-
Type_Inserting
@Deprecated public static final JDFNode.EnumType Type_Inserting
Deprecated.use EnumType.xxx
-
Type_Jacketing
@Deprecated public static final JDFNode.EnumType Type_Jacketing
Deprecated.use EnumType.xxx
-
Type_Labeling
@Deprecated public static final JDFNode.EnumType Type_Labeling
Deprecated.use EnumType.xxx
-
Type_Laminating
@Deprecated public static final JDFNode.EnumType Type_Laminating
Deprecated.use EnumType.xxx
-
Type_LongitudinalRibbonOperations
@Deprecated public static final JDFNode.EnumType Type_LongitudinalRibbonOperations
Deprecated.use EnumType.xxx
-
Type_Numbering
@Deprecated public static final JDFNode.EnumType Type_Numbering
Deprecated.use EnumType.xxx
-
Type_Palletizing
@Deprecated public static final JDFNode.EnumType Type_Palletizing
Deprecated.use EnumType.xxx
-
Type_Perforating
@Deprecated public static final JDFNode.EnumType Type_Perforating
Deprecated.use EnumType.xxx
-
Type_PlasticCombBinding
@Deprecated public static final JDFNode.EnumType Type_PlasticCombBinding
Deprecated.use EnumType.xxx
-
Type_PrintRolling
@Deprecated public static final JDFNode.EnumType Type_PrintRolling
Deprecated.use EnumType.xxx
-
Type_RingBinding
@Deprecated public static final JDFNode.EnumType Type_RingBinding
Deprecated.use EnumType.xxx
-
Type_SaddleStitching
@Deprecated public static final JDFNode.EnumType Type_SaddleStitching
Deprecated.use EnumType.xxx
-
Type_ShapeCutting
@Deprecated public static final JDFNode.EnumType Type_ShapeCutting
Deprecated.use EnumType.xxx
-
Type_Shrinking
@Deprecated public static final JDFNode.EnumType Type_Shrinking
Deprecated.use EnumType.xxx
-
Type_SideSewing
@Deprecated public static final JDFNode.EnumType Type_SideSewing
Deprecated.use EnumType.xxx
-
Type_SpinePreparation
@Deprecated public static final JDFNode.EnumType Type_SpinePreparation
Deprecated.use EnumType.xxx
-
Type_SpineTaping
@Deprecated public static final JDFNode.EnumType Type_SpineTaping
Deprecated.use EnumType.xxx
-
Type_Stacking
@Deprecated public static final JDFNode.EnumType Type_Stacking
Deprecated.use EnumType.xxx
-
Type_Stitching
@Deprecated public static final JDFNode.EnumType Type_Stitching
Deprecated.use EnumType.xxx
-
Type_Strapping
@Deprecated public static final JDFNode.EnumType Type_Strapping
Deprecated.use EnumType.xxx
-
Type_StripBinding
@Deprecated public static final JDFNode.EnumType Type_StripBinding
Deprecated.use EnumType.xxx
-
Type_ThreadSealing
@Deprecated public static final JDFNode.EnumType Type_ThreadSealing
Deprecated.use EnumType.xxx
-
Type_ThreadSewing
@Deprecated public static final JDFNode.EnumType Type_ThreadSewing
Deprecated.use EnumType.xxx
-
Type_Trimming
@Deprecated public static final JDFNode.EnumType Type_Trimming
Deprecated.use EnumType.xxx
-
Type_WireCombBinding
@Deprecated public static final JDFNode.EnumType Type_WireCombBinding
Deprecated.use EnumType.xxx
-
Type_Wrapping
@Deprecated public static final JDFNode.EnumType Type_Wrapping
Deprecated.use EnumType.xxx
-
ProcessUsage_AnyInput
@Deprecated public static final JDFNode.EnumProcessUsage ProcessUsage_AnyInput
Deprecated.use EnumProcessUsage.xxx
-
ProcessUsage_AnyOutput
@Deprecated public static final JDFNode.EnumProcessUsage ProcessUsage_AnyOutput
Deprecated.use EnumProcessUsage.xxx
-
ProcessUsage_Any
@Deprecated public static final JDFNode.EnumProcessUsage ProcessUsage_Any
Deprecated.use EnumProcessUsage.xxx
-
ProcessUsage_Rejected
@Deprecated public static final JDFNode.EnumProcessUsage ProcessUsage_Rejected
Deprecated.use EnumProcessUsage.xxx
-
ProcessUsage_Accepted
@Deprecated public static final JDFNode.EnumProcessUsage ProcessUsage_Accepted
Deprecated.use EnumProcessUsage.xxx
-
ProcessUsage_Marks
@Deprecated public static final JDFNode.EnumProcessUsage ProcessUsage_Marks
Deprecated.use EnumProcessUsage.xxx
-
ProcessUsage_Document
@Deprecated public static final JDFNode.EnumProcessUsage ProcessUsage_Document
Deprecated.use EnumProcessUsage.xxx
-
ProcessUsage_Surface
@Deprecated public static final JDFNode.EnumProcessUsage ProcessUsage_Surface
Deprecated.use EnumProcessUsage.xxx
-
ProcessUsage_Waste
@Deprecated public static final JDFNode.EnumProcessUsage ProcessUsage_Waste
Deprecated.use EnumProcessUsage.xxx
-
ProcessUsage_Proof
@Deprecated public static final JDFNode.EnumProcessUsage ProcessUsage_Proof
Deprecated.use EnumProcessUsage.xxx
-
ProcessUsage_Input
@Deprecated public static final JDFNode.EnumProcessUsage ProcessUsage_Input
Deprecated.use EnumProcessUsage.xxx
-
ProcessUsage_Plate
@Deprecated public static final JDFNode.EnumProcessUsage ProcessUsage_Plate
Deprecated.use EnumProcessUsage.xxx
-
ProcessUsage_Good
@Deprecated public static final JDFNode.EnumProcessUsage ProcessUsage_Good
Deprecated.use EnumProcessUsage.xxx
-
ProcessUsage_Cover
@Deprecated public static final JDFNode.EnumProcessUsage ProcessUsage_Cover
Deprecated.use EnumProcessUsage.xxx
-
ProcessUsage_BookBlock
@Deprecated public static final JDFNode.EnumProcessUsage ProcessUsage_BookBlock
Deprecated.use EnumProcessUsage.xxx
-
ProcessUsage_Box
@Deprecated public static final JDFNode.EnumProcessUsage ProcessUsage_Box
Deprecated.use EnumProcessUsage.xxx
-
ProcessUsage_CoverMaterial
@Deprecated public static final JDFNode.EnumProcessUsage ProcessUsage_CoverMaterial
Deprecated.use EnumProcessUsage.xxx
-
ProcessUsage_SpineBoard
@Deprecated public static final JDFNode.EnumProcessUsage ProcessUsage_SpineBoard
Deprecated.use EnumProcessUsage.xxx
-
ProcessUsage_CoverBoard
@Deprecated public static final JDFNode.EnumProcessUsage ProcessUsage_CoverBoard
Deprecated.use EnumProcessUsage.xxx
-
ProcessUsage_Case
@Deprecated public static final JDFNode.EnumProcessUsage ProcessUsage_Case
Deprecated.use EnumProcessUsage.xxx
-
ProcessUsage_FrontEndSheet
@Deprecated public static final JDFNode.EnumProcessUsage ProcessUsage_FrontEndSheet
Deprecated.use EnumProcessUsage.xxx
-
ProcessUsage_BackEndSheet
@Deprecated public static final JDFNode.EnumProcessUsage ProcessUsage_BackEndSheet
Deprecated.use EnumProcessUsage.xxx
-
ProcessUsage_Child
@Deprecated public static final JDFNode.EnumProcessUsage ProcessUsage_Child
Deprecated.use EnumProcessUsage.xxx
-
ProcessUsage_Mother
@Deprecated public static final JDFNode.EnumProcessUsage ProcessUsage_Mother
Deprecated.use EnumProcessUsage.xxx
-
ProcessUsage_Jacket
@Deprecated public static final JDFNode.EnumProcessUsage ProcessUsage_Jacket
Deprecated.use EnumProcessUsage.xxx
-
ProcessUsage_Book
@Deprecated public static final JDFNode.EnumProcessUsage ProcessUsage_Book
Deprecated.use EnumProcessUsage.xxx
-
ProcessUsage_Label
@Deprecated public static final JDFNode.EnumProcessUsage ProcessUsage_Label
Deprecated.use EnumProcessUsage.xxx
-
ProcessUsage_RingBinder
@Deprecated public static final JDFNode.EnumProcessUsage ProcessUsage_RingBinder
Deprecated.use EnumProcessUsage.xxx
-
ProcessUsage_Ancestor
@Deprecated public static final JDFNode.EnumProcessUsage ProcessUsage_Ancestor
Deprecated.use EnumProcessUsage.xxx
-
-
Constructor Detail
-
JDFNode
public JDFNode(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, java.lang.String qualifiedName)Constructor for JDFNode- Parameters:
myOwnerDocument-qualifiedName-
-
JDFNode
public JDFNode(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, java.lang.String myNamespaceURI, java.lang.String qualifiedName)Constructor for JDFNode- Parameters:
myOwnerDocument-myNamespaceURI-qualifiedName-
-
JDFNode
public JDFNode(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, java.lang.String myNamespaceURI, java.lang.String qualifiedName, java.lang.String myLocalName)Constructor for JDFNode- Parameters:
myOwnerDocument-myNamespaceURI-qualifiedName-myLocalName-
-
-
Method Detail
-
getURLInputStream
public java.io.InputStream 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
protected AttributeInfo getTheAttributeInfo()
definition of optional attributes in the JDF namespace- Overrides:
getTheAttributeInfoin classJDFElement- Returns:
- comma separated list of optional attributes for JDF nodes
-
getTheElementInfo
protected ElementInfo getTheElementInfo()
- Overrides:
getTheElementInfoin classJDFElement- Returns:
- the elementinfo
-
toString
public java.lang.String toString()
toString - StringRepresentation of JDFNode
-
init
public boolean init()
init - init the node- Overrides:
initin classJDFElement- Returns:
- boolean: always true
- See Also:
KElement.init()
-
ensureJobPartID
public java.lang.String 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
public VString linkNames()
definition of resource link names in the JDF namespace- Returns:
- String list of resource names that may be linked
-
linkInfo
@Deprecated public VString 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
public LinkInfoMap getLinkInfoMap()
-
setPartStatus
@Deprecated public boolean setPartStatus(VJDFAttributeMap vmattr, JDFElement.EnumNodeStatus status)
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, java.lang.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 public boolean setPartStatus(JDFAttributeMap mattr, JDFElement.EnumNodeStatus status)
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, java.lang.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
public JDFElement.EnumNodeStatus getVectorPartStatus(VJDFAttributeMap vMap)
get the status for the vector v- Parameters:
vMap- the vevtor of partmaps- Returns:
- the status, null if the value is not consistent
-
getVectorPartStatusDetails
public java.lang.String getVectorPartStatusDetails(VJDFAttributeMap vMap)
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 public JDFElement.EnumNodeStatus getPartStatus(JDFAttributeMap mattr)
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
public JDFElement.EnumNodeStatus getPartStatus(JDFAttributeMap attMap, int method)
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
public java.lang.String getPartStatusDetails(JDFAttributeMap mattr)
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, java.lang.String nodeStatusDetails, JDFAutoDeviceInfo.EnumDeviceStatus deviceStatus, java.lang.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
public VJDFAttributeMap 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
public VJDFAttributeMap 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
public VJDFAttributeMap 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 public JDFNode.EnumActivation getActivation()
Deprecated.060406 use getActivation(false)getActivation- Returns:
- EnumActivation
-
getActivation
public JDFNode.EnumActivation getActivation(boolean bWalkThroughAncestors)
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
public void setActivation(JDFNode.EnumActivation bActive)
Set attribute Activation- Parameters:
bActive- the value to set the attribute to
-
addModified
public JDFAudit addModified(java.lang.String by)
addModified- Parameters:
by-- Returns:
- JDFAudit
-
getResource
public JDFResource getResource(java.lang.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
public JDFResource getResourceRoot(java.lang.String strName, JDFResourceLink.EnumUsage usage, int i)
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
public JDFResource getResource(java.lang.String strName, JDFResourceLink.EnumUsage usage, int i)
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
public JDFResource getResource(java.lang.String strName, JDFResourceLink.EnumUsage usage)
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
public JDFResource getResource(java.lang.String strName)
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(java.lang.String strName, JDFResourceLink.EnumUsage usage, JDFNode.EnumProcessUsage processUsage, int i, java.lang.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(java.lang.String strName, JDFResourceLink.EnumUsage usage, java.lang.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(java.lang.String strName, JDFResourceLink.EnumUsage usage, java.lang.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(java.lang.String strName, JDFResourceLink.EnumUsage usage, java.lang.String processUsage, java.lang.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(java.lang.String strName, JDFResourceLink.EnumUsage usage, java.lang.String processUsage, java.lang.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
public java.util.List<JDFResource> getResourceLeaves(java.lang.String strName, JDFResourceLink.EnumUsage usage)
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 java.util.List<JDFResource> getResourceLeaves(java.lang.String strName, JDFResourceLink.EnumUsage usage, java.lang.String processUsage, java.lang.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
public JDFResource getCreateResource(java.lang.String strName, JDFResourceLink.EnumUsage usage, int i)
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
public JDFResource getCreateResource(java.lang.String strName, JDFResourceLink.EnumUsage usage)
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(java.lang.String strName, JDFResource.EnumResourceClass resClass, boolean bInput, JDFNode resRoot, boolean bLink, java.lang.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
public JDFResource addResource(java.lang.String strName, JDFResourceLink.EnumUsage usage)
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(java.lang.String strName, JDFResource.EnumResourceClass resClass, JDFResourceLink.EnumUsage usage, JDFNode.EnumProcessUsage processUsage, JDFNode resRoot, java.lang.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
protected void replaceUpdate(JDFResourceLink.EnumUsage usage, JDFResource toReplace, JDFResource r)
-
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, java.lang.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
public void ensureValidRefsPosition(JDFResource r)
ensure that the linked resource and all referenced resources are correctly positioned- Parameters:
r-
-
ensureValidResPosition
public void ensureValidResPosition(JDFResource res)
- Parameters:
res-
-
getResourceLinks
@Deprecated public VElement getResourceLinks()
Deprecated.use getResourceLinks(null)get the resourcelinks in the resourcepool of this node- Returns:
- VElement the vector of ResorceLinks:
-
getResourceLinks
public VElement getResourceLinks(JDFAttributeMap mLinkAtt)
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
public VElement getLinkedResources(JDFAttributeMap mResAtt, boolean bFollowRefs)
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 public VElement getUnlinkedResources(boolean bLocal)
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 public java.util.Vector getPredecessors(boolean bPre)
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
public VElement getPredecessors(boolean bPre, boolean bDirect)
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
protected void checkPredecessorResource(boolean bPre, boolean bDirect, java.util.HashSet<KElement> h, java.util.HashSet<org.cip4.jdflib.node.JDFNode.ResPart> done, KElement resElem)
-
isExecutable
public boolean isExecutable(JDFAttributeMap partMap, boolean bCheckChildren)
- Parameters:
partMap-bCheckChildren-- Returns:
-
getProcessStatus
@Deprecated public JDFElement.EnumNodeStatus getProcessStatus(JDFAttributeMap mattr)
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
public static boolean resourceTypeEqual(JDFResource res1, JDFResource res2)
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
public VElement getvJDFNode(java.lang.String task, JDFNode.EnumActivation active, boolean bDirect)
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 public java.util.Vector getvJDFNode(java.lang.String task, boolean active)Deprecated.use public Vector getvJDFNode(task, JDFNode.EnumActivation.Unknown, false)getvJDFNode- Parameters:
task-active-- Returns:
- Vector of JDFNodes
-
isActive
@Deprecated public boolean isActive()
Deprecated.use fitsActivationisActive- Returns:
- boolean
-
isActive
@Deprecated public boolean isActive(boolean bWalkThroughAnchestors)
Deprecated.use fitsActivation- Parameters:
bWalkThroughAnchestors-- Returns:
- boolean
-
fitsActivation
public boolean fitsActivation(JDFNode.EnumActivation active, boolean bWalkThroughAncestors)
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 public void removeNode(boolean bLeaveSubmit)
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 public JDFNode addTask(java.lang.String task, VString tasks)
Deprecated.use addJDFNodeaddTask- Parameters:
task-tasks-- Returns:
- JDFNode
-
addTask
@Deprecated public JDFNode addTask(java.lang.String task)
Deprecated.use addJDFNodeaddTask- Parameters:
task-- Returns:
- JDFNode
-
setType
public void setType(JDFNode.EnumType typ)
setType set the type attribute to the enumeration type also set xsi:type etc- Parameters:
typ- the new type to set this to
-
setType
public boolean setType(java.lang.String newType, boolean checkName)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
public java.lang.String getType()
getType - get node Type- Returns:
- String - the type
-
getTypesString
public java.lang.String getTypesString()
getType - get node Types or Type attribute- Returns:
- String - the type
-
fixNiCi
public boolean fixNiCi(JDFElement.EnumVersion version)
fix NodeInfo and CustomerInfo- Parameters:
version- target version- Returns:
-
isValid
public boolean isValid(JDFElement.EnumValidationLevel level)
typesafe validator, checks whether all resource links are ok- Overrides:
isValidin classJDFElement- Parameters:
level- validation level- Returns:
- true if this node is valid
-
hasInvalidLinks
public boolean hasInvalidLinks(JDFElement.EnumValidationLevel level)
true if invalid Links are in this element- Parameters:
level- validation level- Returns:
- boolean - true if unknown Links are in this element
-
getInvalidLinks
public VString getInvalidLinks(JDFElement.EnumValidationLevel level, int nMax)
typesafe validator utility- Parameters:
level- validation levelnMax- max. size of the returned vector- Returns:
- vector of invalid Link names
-
getStatusSynch
public JDFNode.StatusSynch 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 public void upDateStatus()
Deprecated.use updatePartStatus(VJDFAttributeMAP)UpDateStatus - update the status of a node depending on its resources and child nodes
-
getJobPart
public JDFNode getJobPart(NodeIdentifier nodeID)
getJobPart - get a child node with a given jobpartid- Parameters:
nodeID- the NodeIdentifier of the job part- Returns:
- JDFNode
-
getJDF
public JDFNode getJDF(int iSkip)
getJobPart - get a child node with a given jobpartid- Parameters:
nodeID- the NodeIdentifier of the job part- Returns:
- JDFNode
-
getJobPart
public JDFNode getJobPart(java.lang.String jobPartID, java.lang.String jobID)
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 java.util.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
public java.util.HashSet<JDFElement> getAllRefs(java.util.HashSet<JDFElement> vDoneRefs, boolean bRecurse)
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
public void setCombined(VString vCombiNodes)
setCombined - set the combined node types to the values in vCombiNodes- Parameters:
vCombiNodes-
-
getCombinedTypes
@Deprecated public java.util.Vector 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(java.lang.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
public void setSpawnID(java.lang.String value)
Set attribute SpawnID- Parameters:
value- the value to set the attribute to
-
spawn
@Deprecated public JDFNode spawn(java.lang.String parentURL, java.lang.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(java.lang.String parentURL, java.lang.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 public JDFNode unSpawn(java.lang.String spawnID)
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
public JDFNode mergeNode(JDFNode e, boolean bDelete)
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 public JDFResourceLink getLink(JDFResource r, boolean bInput)
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
public JDFResourceLink getLink(JDFResource r, JDFResourceLink.EnumUsage usage)
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, java.lang.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
public JDFNode getRoot()
getRoot - this function returns the root of the JDF document- Returns:
- JDFNode - the root node of the document
-
getAncestorIDs
public VString 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 public JDFNode getAncestorNode(int nSkip)
Deprecated.use getParentJDF()getAncestorNode - return the ancestor node- Parameters:
nSkip-- Returns:
- JDFNode - the ancestor node
-
getAncestorAttribute
public java.lang.String getAncestorAttribute(java.lang.String attrib, java.lang.String nameSpaceURI, java.lang.String def)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
public boolean hasAncestorAttribute(java.lang.String attrib, java.lang.String nameSpaceURI)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 public boolean hasJobID(boolean bInherit)
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
public KElement getAncestorElement(java.lang.String element, java.lang.String nameSpaceURI)
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 public boolean hasAncestorElement(java.lang.String element, java.lang.String nameSpaceURI)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(java.lang.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(java.lang.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(java.lang.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
public java.lang.String getIDPrefix()
getIDPrefix- Overrides:
getIDPrefixin classKElement- Returns:
- the ID prefix of JDFNode
-
getJobID
public java.lang.String getJobID(boolean bInherit)
get string attribute JobID- Parameters:
bInherit- recurse through ancestors when searching- Returns:
- String - attribute value
-
getJobPartID
@Deprecated public java.lang.String getJobPartID()
Deprecated.use getJobPartID(false);get string attribute JobID- Returns:
- attribute value
-
getJobPartID
public java.lang.String getJobPartID(boolean bInherit)
get string attribute JobID- Parameters:
bInherit- if true recurse through ancestors when searching- Returns:
- String - attribute value
-
setJobPartID
public void setJobPartID(java.lang.String jobPartID)
Set attribute JobPartID- Parameters:
jobPartID- the value to set the attribute to
-
setJobID
public void setJobID(java.lang.String value)
set attribute JobID- Parameters:
value- the value to set the attribute to
-
hasStatusPool
@Deprecated public boolean hasStatusPool()
Deprecated.test element StatusPool existence- Returns:
- boolean - true if a matching element exists
-
getSpawnID
@Deprecated public java.lang.String getSpawnID()
Deprecated.use getSpawnID(boolean)get string attribute SpawnID- Returns:
- String - attribute value
-
getSpawnID
public java.lang.String getSpawnID(boolean bInherit)
get string attribute SpawnID- Parameters:
bInherit- if true recurse through ancestors when searching- Returns:
- String - attribute value
-
removeSpawnID
@Deprecated public void removeSpawnID()
Deprecated.remove attribute SpawnID
-
removeAncestorPool
@Deprecated public void removeAncestorPool()
Deprecated.remove element AncestorPool
-
getParentJDFNode
@Deprecated public JDFNode 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
public JDFNode 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
public JDFNode 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 public boolean hasType()
Deprecated.use inline hasAttributeCheck existence of attribute Type- Returns:
- boolean - true if attribute Type exists
-
containsType
public boolean containsType(java.lang.String type)
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
public VString getInsertLinkVector(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:ProcessUsage- Parameters:
nMax- maximum size of the returned vector- Returns:
- vector of strings that contains insertable link names
-
getEnumProcessUsage
@Deprecated public JDFNode.EnumProcessUsage getEnumProcessUsage(java.lang.String info, int i)
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 public boolean hasAncestorPool()
Deprecated.use numChildElements(ElementName.ANCESTORPOOL, null) > 0;test element AncestorPool existance- Returns:
- bool true if a matching element exists
-
hasProjectID
@Deprecated public boolean hasProjectID(boolean bInherit)
Deprecated.Check existance of attribute ProjectID- Parameters:
bInherit- recurse through ancestors when searching- Returns:
- true if attribute ProjectID exists
-
hasProjectID
@Deprecated public boolean hasProjectID()
Deprecated.Check existence of attribute ProjectID- Returns:
- true if attribute ProjectID exists
-
setProjectID
public void setProjectID(java.lang.String strValue)
set attribute ProjectID- Parameters:
strValue- the value to set the attribute to
-
getProjectID
public java.lang.String getProjectID(boolean bInherit)
get string attribute ProjectID- Parameters:
bInherit- recurse through ancestors when searching- Returns:
- the value of the attribute
-
getProjectID
@Deprecated public java.lang.String getProjectID()
Deprecated.use getProjectID(boolean bInherit)get string attribute ProjectID- Returns:
- the value of the attribute
-
isValidLink
public boolean isValidLink(JDFElement.EnumValidationLevel level, JDFResourceLink rl)
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
public boolean isValidLink(java.lang.String resName, JDFResourceLink.EnumUsage usage, java.lang.String processUsage)isValidLink check whether an resLink is legal for this class- Parameters:
resName-usage-processUsage-- Returns:
- true if valis
-
getMissingLinks
@Deprecated public VString getMissingLinks(int nMax)
Deprecated.use getMissingLinkVector- Parameters:
nMax-- Returns:
- VString
-
getMatchingLinks
public VElement getMatchingLinks(java.lang.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
public VString getMissingLinkVector(int nMax)
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(java.lang.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(java.lang.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(java.lang.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
public JDFResource appendMatchingResource(java.lang.String resName, JDFResourceLink.EnumUsage usage)
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(java.lang.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(java.lang.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
public void removeLink(JDFResourceLink l, boolean bRemoveResource)
remove a resourceLink and potentially its linked resource- Parameters:
l-bRemoveResource-
-
removeMatchingLinks
public boolean removeMatchingLinks(java.lang.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
public int numMatchingLinks(java.lang.String resName, boolean bLink, JDFNode.EnumProcessUsage processUsage)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
public JDFAncestorPool getCreateAncestorPool()
- Returns:
-
appendAncestorPool
public JDFAncestorPool appendAncestorPool()
- Returns:
-
getAncestorPool
public JDFAncestorPool getAncestorPool()
- Returns:
-
getCreateAuditPool
public JDFAuditPool getCreateAuditPool()
- Returns:
-
appendAuditPool
public JDFAuditPool appendAuditPool()
- Returns:
-
getAuditPool
public JDFAuditPool getAuditPool()
- Returns:
-
getCreateCustomerInfo
public JDFCustomerInfo 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
public JDFCustomerInfo appendCustomerInfo()
appends a CustomerInfo to this- Returns:
- the appended CustomerInfo
-
getCustomerInfo
public JDFCustomerInfo getCustomerInfo()
gets the existing CustomerInfo- Returns:
- the existing CustomerInfo.
-
getIdentifier
public NodeIdentifier getIdentifier()
gets the NodeIdetifier that matches this- Specified by:
getIdentifierin interfaceINodeIdentifiable- Returns:
-
getCreateNodeInfo
public JDFNodeInfo 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
public JDFNodeInfo appendNodeInfo()
appends a NodeInfo to this- Returns:
- the appended NodeInfo
-
appendNodeInfo
public JDFNodeInfo appendNodeInfo(int combinedProcessIndex)
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
public JDFNodeInfo getNodeInfo(int combinedProcessIndex)
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
public JDFNodeInfo 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
public JDFNodeInfo getInheritedNodeInfo(java.lang.String xPath)
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 public JDFNodeInfo 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 public void removeNodeInfos()
Deprecated.removes only 1 NodeInfo. In Version 1.3 the cardinality of NodeInforemoves all NodeInfo elements
-
removeCustomerInfos
@Deprecated public void 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 public void removeFromTypes(java.lang.String type, int iSkip)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
public void removeFromTypes(java.lang.String type, int iSkip, boolean bRemoveEmptyLink)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
public JDFResource removeResource(java.lang.String nodeName, int iSkip)
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 public int numNodeInfos()
Deprecated.must never be more than one...Number of NodeInfo elements- Returns:
- int number of matching elements
-
numCustomerInfos
@Deprecated public int numCustomerInfos()
Deprecated.must never be more than one...Number of NodeInfo elements- Returns:
- int - number of matching elements
-
hasNodeInfo
@Deprecated public boolean 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 public boolean 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
public JDFResourceLinkPool getCreateResourceLinkPool()
Get element ResourceLinkPool, create if it doesn't exist- Returns:
- the found/created element
-
appendResourceLinkPool
public JDFResourceLinkPool appendResourceLinkPool()
Append a ResourceLinkPool element, return existing element if one already exist- Returns:
- the ResourceLinkPool element
-
getResourceLinkPool
public JDFResourceLinkPool getResourceLinkPool()
get the first ResourceLinkPool element- Returns:
- the element
-
getCreateResourcePool
public JDFResourcePool getCreateResourcePool()
Get element ResourcePool, create if it doesn't exist- Returns:
- the found/created element
-
appendResourcePool
public JDFResourcePool appendResourcePool()
append a ResourcePool element, return existing element if one already exist- Returns:
- the ResourcePool element
-
getResourcePool
public JDFResourcePool getResourcePool()
get the first ResourcePool element- Returns:
- the element
-
getCreateStatusPool
public JDFStatusPool getCreateStatusPool()
Get element StatusPool, create if it doesn't exist- Returns:
- the found/created element
-
appendStatusPool
public JDFStatusPool appendStatusPool()
append a StatusPool element, return existing element if one already exist- Returns:
- the StatusPool element
-
getStatusPool
public JDFStatusPool getStatusPool()
get the first StatusPool element- Returns:
- the element
-
getChildJDFNode
public JDFNode getChildJDFNode(java.lang.String id, boolean bDirect)
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 public void setVersion(java.lang.String value)
Deprecated.use JDFElement.setVersion(EnumVersion.getEnum(value))set attribute "version"- Parameters:
value- the value to set the attribute to
-
getVersion
public JDFElement.EnumVersion getVersion(boolean bInherit)
get enum attribute "version"- Overrides:
getVersionin classJDFElement- Parameters:
bInherit- recurse through ancestors when searching- Returns:
- EnumVersion - attribute value
-
cloneResourceToModify
public JDFResourceAudit cloneResourceToModify(JDFResourceLink resLink)
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
public JDFResourceAudit 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 finalize- Parameters:
resLink-- Returns:
- the ResourceAudit that was created
-
getTypes
public VString getTypes()
get the Types as a vector of strings- Returns:
- vector of Strings in Types, null if this may not contain multiple types
-
getEnumTypes
public java.util.Vector<JDFNode.EnumType> 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
public int getCombinedProcessIndex(JDFNode.EnumType typ, int start)
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
public int getCombinedProcessIndex(java.lang.String typ, int start)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
public void addTypes(JDFNode.EnumType typ)
add typ to the types list if this is a combined node or gray box- Parameters:
typ-
-
addTypes
public void addTypes(JDFNode.EnumType typ, JDFNode.EnumType combineType, boolean unique)
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
public void ensureCombined(JDFNode.EnumType combineType)
one of Combined or ProcessGroup- Parameters:
combineType-
-
getAllTypes
public VString 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
public void setTypes(VString vCombiNodes)
set node Types , also set Type to Combined- Parameters:
vCombiNodes- vector of types
-
setTypes
public void setTypes(VString vCombiNodes, boolean isProcessGroup)
set node Types , also set Type to Combined- Parameters:
vCombiNodes- vector of types
-
getLinksForCombinedProcessIndex
public VElement getLinksForCombinedProcessIndex(int combinedProcessIndex)
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
public VElement getLinksForType(JDFNode.EnumType type, int nType)
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
public JDFNode.EnumType getEnumType()
get the enumerated type value of @Type- Returns:
- the enumerated type
-
insertTypeInTypes
public void insertTypeInTypes(JDFNode.EnumType type, int beforePos)
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
public VString 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, java.lang.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
public boolean hasParent(JDFNode p)
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 public int 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
public int getMaxJobPartId(java.lang.String idPrefix)
gets the maximum job part id; note that this assumes integer job part ids return- Parameters:
idPrefix-- Returns:
- int
-
addJDFNode
public JDFNode addJDFNode(java.lang.String typ)
add a JDFNode remove @Types to avoid inconsistent JDF- Parameters:
typ- type of JDFNode to add- Returns:
- JDFNode the added JDFNode
-
addJDFNode
public JDFNode addJDFNode(JDFNode.EnumType typ)
add a JDFNode- Parameters:
typ- enum type of JDFNode to add- Returns:
- the added JDFNode
-
addProcess
@Deprecated public JDFNode addProcess(java.lang.String prodName)
Deprecated.use addJDFNode(EnumType typ) or addJDFNode(String typ)- Parameters:
prodName-- Returns:
-
addProcessGroup
public JDFNode addProcessGroup(VString tasks)
Add a process group node- Parameters:
tasks- types of the processgroup- Returns:
- the added JDFNode
-
addCombined
public JDFNode addCombined(VString tasks)
add a combined node- Parameters:
tasks- types of the node to add- Returns:
- the added node
-
addProduct
public JDFNode addProduct()
add a product node to this- Returns:
- Throws:
JDFException- ith this is not a Product itself
-
removeCompleted
@Deprecated public boolean removeCompleted()
Deprecated.remove all completed nodes- Returns:
-
getCompleted
public VElement getCompleted()
get a vector with all nodes- Returns:
- vector with all nodes
-
getTargetResource
public JDFResource getTargetResource(java.lang.String id)
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 java.lang.String getAncestorElementAttribute(java.lang.String element, java.lang.String attrib, java.lang.String nameSpaceURI, java.lang.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
public boolean hasAncestorElementAttribute(java.lang.String element, java.lang.String attrib, java.lang.String nameSpaceURI)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
public VElement 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
public VElement getUnknownLinkVector(VString vInNameSpace, int nMax)
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
public void setCategory(java.lang.String value)
set attribute Category- Parameters:
value- the value to set the attribute to
-
getCategory
public java.lang.String getCategory()
get string attribute Category- Returns:
- the attribute value
-
getCategory
@Deprecated public java.lang.String getCategory(boolean bInherit)
Deprecated.- use getCategory() instead- Parameters:
bInherit-- Returns:
-
setICSVersions
public void setICSVersions(VString value)
set attribute ICSVersions- Parameters:
value- the value to set the attribute to
-
setICSVersions
public VString setICSVersions(ICSVersion... versions)
set attribute ICSVersions- Parameters:
value- the value to set the attribute to
-
appendICSVersion
public java.lang.String appendICSVersion(ICSVersion v)
-
getICSVersions
public VString getICSVersions(boolean bInherit)
get NMTOKENS attribute ICSVersions- Parameters:
bInherit- if true recurse through ancestors when searching- Returns:
- VString - attribute value
-
setMaxVersion
public void setMaxVersion(JDFElement.EnumVersion enumVer)
set MaxVersion to enumVer- Parameters:
enumVer- the EnumVersion to set
-
setMaxVersion
@Deprecated public void setMaxVersion(java.lang.String value)
Deprecated.use setMaxVersion(EnumVersion)- Parameters:
value- the string version to set MaxVersion to
-
getMaxVersion
public JDFElement.EnumVersion getMaxVersion(boolean bInherit)
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
public void setNamedFeatures(VString value)
set attribute NamedFeatures- Parameters:
value- the value to set the attribute to
-
getNamedFeatures
public VString getNamedFeatures()
Get NMTOKENS attribute NamedFeatures- Returns:
- the attribute value
-
setRelatedJobID
public void setRelatedJobID(java.lang.String value)
set attribute ProjectID- Parameters:
value- the value to set the attribute to
-
getRelatedJobID
public java.lang.String getRelatedJobID(boolean bInherit)
get string attribute RelatedJobID- Parameters:
bInherit- recurse through ancestors when searching- Returns:
- the attribute value
-
setRelatedJobPartID
public void setRelatedJobPartID(java.lang.String value)
set attribute RelatedJobPartID- Parameters:
value- the value to set the attribute to
-
getRelatedJobPartID
public java.lang.String getRelatedJobPartID(boolean bInherit)
get string attribute RelatedJobPartID- Parameters:
bInherit- recurse through ancestors when searching- Returns:
- the attribute value
-
setStatusDetails
public void setStatusDetails(java.lang.String value)
set attribute StatusDetails- Parameters:
value- the value to set the attribute to
-
getStatusDetails
public java.lang.String getStatusDetails()
get string attribute StatusDetails- Returns:
- the attribute value
-
getStatusDetails
@Deprecated public java.lang.String getStatusDetails(boolean bInherit)
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
public void setTemplateID(java.lang.String value)
set attribute TemplateID- Parameters:
value- the value to set the attribute to
-
getTemplateID
public java.lang.String getTemplateID(boolean bInherit)
get string attribute TemplateID- Parameters:
bInherit- recurse through ancestors when searching- Returns:
- the attribute value
-
setTemplateVersion
public void setTemplateVersion(java.lang.String value)
set attribute TemplateVersion- Parameters:
value- the value to set the attribute to
-
getTemplateVersion
public java.lang.String getTemplateVersion(boolean bInherit)
get string attribute TemplateVersion- Parameters:
bInherit- recurse through ancestors when searching- Returns:
- the attribute value
-
getWorkStepID
public java.lang.String getWorkStepID(JDFAttributeMap map)
get the NodeInfo/@workstepid for a given partition if no workstepID exists, returns jobPartID- Parameters:
map-- Returns:
- the workstepid
-
getNodeInfoCleanupDuration
public JDFDuration getNodeInfoCleanupDuration()
- Returns:
- JDFDuration
-
getNodeInfoCostType
@Deprecated public JDFAutoMISDetails.EnumCostType getNodeInfoCostType()
Deprecated.06�221 use getInheritedNodeInfo(String attName)- Returns:
- JDFMISDetails.EnumCostType
-
getNodeInfoDueLevel
public JDFAutoNodeInfo.EnumDueLevel getNodeInfoDueLevel()
- Returns:
- #
-
getNodeInfoEnd
public JDFDate getNodeInfoEnd()
- Returns:
-
getNodeInfoFirstEnd
public JDFDate getNodeInfoFirstEnd()
- Returns:
-
getNodeInfoFirstStart
public JDFDate getNodeInfoFirstStart()
- Returns:
-
getNodeInfoIPPVersion
@Deprecated public JDFXYPair getNodeInfoIPPVersion()
Deprecated.06�221 use getInheritedNodeInfo(String attName)- Returns:
-
getNodeInfoJobPriority
@Deprecated public int getNodeInfoJobPriority()
Deprecated.06�221 use getInheritedNodeInfo(String attName)- Returns:
-
getNodeInfoLastEnd
public JDFDate getNodeInfoLastEnd()
- Returns:
-
getNodeInfoLastStart
public JDFDate getNodeInfoLastStart()
- Returns:
-
getNodeInfoNaturalLang
@Deprecated public java.lang.String getNodeInfoNaturalLang()
Deprecated.06�221 use getInheritedNodeInfo(String attName)- Returns:
-
getNodeInfoRoute
@Deprecated public java.lang.String getNodeInfoRoute()
Deprecated.06�221 use getInheritedNodeInfo(String attName)- Returns:
-
getNodeInfoSetupDuration
public JDFDuration getNodeInfoSetupDuration()
- Returns:
-
getNodeInfoStart
public JDFDate getNodeInfoStart()
- Returns:
-
getNodeInfoTargetRoute
@Deprecated public java.lang.String getNodeInfoTargetRoute()
Deprecated.06�221 use getInheritedNodeInfo(String attName)- Returns:
-
getNodeInfoTotalDuration
public JDFDuration getNodeInfoTotalDuration()
- Returns:
-
getNodeInfoWorkType
@Deprecated public JDFAutoMISDetails.EnumWorkType getNodeInfoWorkType()
Deprecated.06�221 use getInheritedNodeInfo(String attName)- Returns:
-
getNodeInfoWorkTypeDetails
@Deprecated public java.lang.String getNodeInfoWorkTypeDetails()
Deprecated.06�221 use getInheritedNodeInfo(String attName)- Returns:
-
getNodeInfoBusinessInfo
@Deprecated public JDFBusinessInfo getNodeInfoBusinessInfo()
Deprecated.06�221 use getInheritedNodeInfo(String attName)- Returns:
-
getNodeInfoEmployee
@Deprecated public JDFEmployee getNodeInfoEmployee()
Deprecated.06�221 use getInheritedNodeInfo(String attName)- Returns:
-
getNodeInfoJMF
@Deprecated public JDFJMF getNodeInfoJMF(int iSkip)
Deprecated.06�221 use getInheritedNodeInfo(String attName)- Parameters:
iSkip-- Returns:
-
getNodeInfoNotificationFilter
@Deprecated public JDFNotificationFilter getNodeInfoNotificationFilter(int iSkip)
Deprecated.06�221 use getInheritedNodeInfo(String attName)- Parameters:
iSkip-- Returns:
-
getInheritedCustomerInfo
public JDFCustomerInfo getInheritedCustomerInfo(java.lang.String xPath)
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 public JDFCustomerInfo 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 public java.lang.String getCustomerInfoBillingCode()
Deprecated.06�221 use getInheritedCustomerInfo(String attName)- Returns:
-
getCustomerInfoCustomerID
@Deprecated public java.lang.String getCustomerInfoCustomerID()
Deprecated.06�221 use getInheritedCustomerInfo(String attName)- Returns:
-
getCustomerInfoCustomerJobName
@Deprecated public java.lang.String getCustomerInfoCustomerJobName()
Deprecated.06�221 use getInheritedCustomerInfo(String attName)- Returns:
-
getCustomerInfoCustomerOrderID
@Deprecated public java.lang.String getCustomerInfoCustomerOrderID()
Deprecated.06�221 use getInheritedCustomerInfo(String attName)- Returns:
-
getCustomerInfoCustomerProjectID
@Deprecated public java.lang.String getCustomerInfoCustomerProjectID()
Deprecated.06�221 use getInheritedCustomerInfo(String attName)- Returns:
-
getCustomerInfoCompany
@Deprecated public JDFCompany getCustomerInfoCompany()
Deprecated.06�221 use getInheritedCustomerInfo(String attName)- Returns:
-
getCustomerInfoContact
@Deprecated public JDFContact getCustomerInfoContact(int iSkip)
Deprecated.06�221 use getInheritedCustomerInfo(String attName)- Parameters:
iSkip-- Returns:
-
getCustomerInfoCustomerMessage
@Deprecated public JDFCustomerMessage getCustomerInfoCustomerMessage(int iSkip)
Deprecated.06�221 use getInheritedCustomerInfo(String attName)- Parameters:
iSkip-- Returns:
-
isSuccessor
public boolean isSuccessor(JDFNode proc)
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
public VString getResourceIDs(boolean isInput)
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 public JDFNode[] 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
public JDFResource addInternalPipe(java.lang.String resourceName, int indexOutput, int indexInput)
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
public VString getPartIDKeys(JDFAttributeMap partMap)
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
public VElement prepareNodeInfo(VJDFAttributeMap vSpawnParts)
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 public VElement getLinks(java.lang.String linkName, JDFAttributeMap mLinkAtt, java.lang.String linkNS)
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
public VElement getResourceLinks(java.lang.String linkName, JDFAttributeMap mLinkAtt, java.lang.String linkNS)
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
public JDFResourceLink getLink(int index, java.lang.String linkName, JDFAttributeMap mLinkAtt, java.lang.String linkNS)
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 public VElement getLinks(java.lang.String linkName, java.lang.String nameSpaceURI)
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:
KElement.sortChildren()
-
getMatchingNodes
public VElement getMatchingNodes(NodeIdentifier ni)
returns all subnodes of this (including this) that match ni- Parameters:
ni- the Identifier to match- Returns:
-
linkOutputs
public void linkOutputs(JDFNode thePreviousNode)
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
public void setIdentifier(NodeIdentifier ni)
- Specified by:
setIdentifierin interfaceINodeIdentifiable- Parameters:
ni-- See Also:
INodeIdentifiable.setIdentifier(org.cip4.jdflib.node.NodeIdentifier)
-
setURL
public void setURL(java.lang.String url)
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:
IURLSetter.setURL(java.lang.String)
-
getURL
public java.lang.String 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:
IURLSetter.getURL()
-
getUserFileName
public java.lang.String getUserFileName()
- Specified by:
getUserFileNamein interfaceIURLSetter- Returns:
- the filename of this; null if not implemented
-
setVersion
public void setVersion(JDFElement.EnumVersion enumVer)
Description copied from class:JDFElementset Version to enumVer- Overrides:
setVersionin classJDFElement- Parameters:
enumVer- the EnumVersion to set- See Also:
JDFElement.setVersion(org.cip4.jdflib.core.JDFElement.EnumVersion)
-
parseFile
public static JDFNode parseFile(java.io.File file)
parse a JDF file- Parameters:
file-- Returns:
- the parsed JDFNode
-
parseFile
public static JDFNode parseFile(java.lang.String fileName)
parse a JDF file- Parameters:
fileName-- Returns:
- the parsed JDFNode
-
parseStream
public static JDFNode parseStream(java.io.InputStream is)
parse a JDF input stream- Parameters:
is-- Returns:
- the parsed JDFNode
-
createRoot
public static JDFNode createRoot()
- Returns:
-
getJobPart
public JDFNode getJobPart(java.lang.String jobPartID)
convenience deep getter- Parameters:
jobPartID-- Returns:
-
-