Package org.cip4.jdflib.resource
Class JDFResource
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.resource.JDFResource
- All Implemented Interfaces:
Serializable,Cloneable,IStreamWriter,Element,ElementTraversal,EventTarget,Node,NodeList,TypeInfo
- Direct Known Subclasses:
JDFArtDeliveryType,JDFAutoAddress,JDFAutoAdhesiveBindingParams,JDFAutoand,JDFAutoApprovalParams,JDFAutoApprovalSuccess,JDFAutoAssembly,JDFAutoAssetListCreationParams,JDFAutoBendingParams,JDFAutoBinderySignature,JDFAutoBlockPreparationParams,JDFAutoBooleanEvaluation,JDFAutoBooleanState,JDFAutoBoxFoldingParams,JDFAutoBoxPackingParams,JDFAutoBufferParams,JDFAutoBundle,JDFAutoBundlingParams,JDFAutoByteMap,JDFAutoCaseMakingParams,JDFAutoCasingInParams,JDFAutoChannelBindingParams,JDFAutoCIELABMeasuringField,JDFAutoCoilBindingParams,JDFAutoCollectingParams,JDFAutoColor,JDFAutoColorantAlias,JDFAutoColorantControl,JDFAutoColorControlStrip,JDFAutoColorCorrectionParams,JDFAutoColorMeasurementConditions,JDFAutoColorPool,JDFAutoColorSpaceConversionParams,JDFAutoComChannel,JDFAutoCompany,JDFAutoComponent,JDFAutoContact,JDFAutoContactCopyParams,JDFAutoContentList,JDFAutoConventionalPrintingParams,JDFAutoCoverApplicationParams,JDFAutoCreasingParams,JDFAutoCustomerInfo,JDFAutoCutBlock,JDFAutoCutMark,JDFAutoCuttingParams,JDFAutoCylinderLayout,JDFAutoCylinderLayoutPreparationParams,JDFAutoDateTimeEvaluation,JDFAutoDateTimeState,JDFAutoDBMergeParams,JDFAutoDBRules,JDFAutoDBSchema,JDFAutoDBSelection,JDFAutoDeliveryParams,JDFAutoDensityMeasuringField,JDFAutoDevelopingParams,JDFAutoDevice,JDFAutoDieLayout,JDFAutoDieLayoutProductionParams,JDFAutoDigitalDeliveryParams,JDFAutoDigitalMedia,JDFAutoDigitalPrintingParams,JDFAutoDividingParams,JDFAutoDurationEvaluation,JDFAutoDurationState,JDFAutoElementColorParams,JDFAutoEmbossingParams,JDFAutoEmployee,JDFAutoEndSheetGluingParams,JDFAutoEnumerationEvaluation,JDFAutoEnumerationState,JDFAutoExposedMedia,JDFAutoExternalImpositionTemplate,JDFAutoFeedingParams,JDFAutoFileSpec,JDFAutoFoldingParams,JDFAutoFontParams,JDFAutoFontPolicy,JDFAutoFormatConversionParams,JDFAutoGangPreparationParams,JDFAutoGatheringParams,JDFAutoGlueApplication,JDFAutoGluingParams,JDFAutoHeadBandApplicationParams,JDFAutoHoleList,JDFAutoHoleMakingParams,JDFAutoIdentificationField,JDFAutoIDPrintingParams,JDFAutoImageCompressionParams,JDFAutoImageEnhancementParams,JDFAutoImageReplacementParams,JDFAutoImageSetterParams,JDFAutoInk,JDFAutoInkZoneCalculationParams,JDFAutoInkZoneProfile,JDFAutoInsertingParams,JDFAutoInsertSheet,JDFAutoIntegerEvaluation,JDFAutoIntegerState,JDFAutoIntentResource,JDFAutoInterpretedPDLData,JDFAutoInterpretingParams,JDFAutoIsPresentEvaluation,JDFAutoJacketingParams,JDFAutoLabelingParams,JDFAutoLaminatingParams,JDFAutoLayout,JDFAutoLayoutElement,JDFAutoLayoutElementProductionParams,JDFAutoLayoutPreparationParams,JDFAutoLayoutShift,JDFAutoLongitudinalRibbonOperationParams,JDFAutoManualLaborParams,JDFAutoMatrixEvaluation,JDFAutoMatrixState,JDFAutoMedia,JDFAutoMediaSource,JDFAutoMiscConsumable,JDFAutoNameEvaluation,JDFAutoNameState,JDFAutoNodeInfo,JDFAutonot,JDFAutoNumberEvaluation,JDFAutoNumberingParams,JDFAutoNumberState,JDFAutoor,JDFAutoOrderingParams,JDFAutoPackingParams,JDFAutoPageAssignParams,JDFAutoPageList,JDFAutoPallet,JDFAutoPalletizingParams,JDFAutoPDFPathEvaluation,JDFAutoPDFPathState,JDFAutoPDFToPSConversionParams,JDFAutoPDLCreationParams,JDFAutoPDLResourceAlias,JDFAutoPerforatingParams,JDFAutoPerson,JDFAutoPlaceHolderResource,JDFAutoPlasticCombBindingParams,JDFAutoPlateCopyParams,JDFAutoPreflightAnalysis,JDFAutoPreflightInventory,JDFAutoPreflightParams,JDFAutoPreflightProfile,JDFAutoPreflightReport,JDFAutoPreflightReportRulePool,JDFAutoPreview,JDFAutoPreviewGenerationParams,JDFAutoPrintCondition,JDFAutoPrintRollingParams,JDFAutoProductionPath,JDFAutoProofingParams,JDFAutoPSToPDFConversionParams,JDFAutoQualityControlParams,JDFAutoQualityControlResult,JDFAutoRasterReadingParams,JDFAutoRectangleEvaluation,JDFAutoRectangleState,JDFAutoRegisterMark,JDFAutoRegisterRibbon,JDFAutoRenderingParams,JDFAutoResourceDefinitionParams,JDFAutoRingBindingParams,JDFAutoRollStand,JDFAutoRunList,JDFAutoSaddleStitchingParams,JDFAutoScanParams,JDFAutoScavengerArea,JDFAutoScreeningParams,JDFAutoSeparationControlParams,JDFAutoShapeCuttingParams,JDFAutoShapeDef,JDFAutoShapeDefProductionParams,JDFAutoShapeElement,JDFAutoShapeEvaluation,JDFAutoShapeState,JDFAutoSheetOptimizingParams,JDFAutoShrinkingParams,JDFAutoSideSewingParams,JDFAutoSpinePreparationParams,JDFAutoSpineTapingParams,JDFAutoStackingParams,JDFAutoStaticBlockingParams,JDFAutoStitchingParams,JDFAutoStrap,JDFAutoStrappingParams,JDFAutoStringEvaluation,JDFAutoStringState,JDFAutoStripBindingParams,JDFAutoStrippingParams,JDFAutoTestRef,JDFAutoThreadSealingParams,JDFAutoThreadSewingParams,JDFAutoTile,JDFAutoTool,JDFAutoTransferCurve,JDFAutoTransferCurvePool,JDFAutoTransferFunctionControl,JDFAutoTrappingDetails,JDFAutoTrappingParams,JDFAutoTrapRegion,JDFAutoTrigger,JDFAutoTrimmingParams,JDFAutoUsageCounter,JDFAutoVarnishingParams,JDFAutoVerificationParams,JDFAutoWebInlineFinishingParams,JDFAutoWindingParams,JDFAutoWireCombBindingParams,JDFAutoWrappingParams,JDFAutoxor,JDFAutoXYPairEvaluation,JDFAutoXYPairState,JDFColorsResultsPool,JDFColorsUsed,JDFConstraintValue,JDFCover,JDFCoverColor,JDFDimensions,JDFDocumentResultsPool,JDFFileTypeResultsPool,JDFFontsResultsPool,JDFImagesResultsPool,JDFIntentResource,JDFJobSheet,JDFPages,JDFPagesResultsPool,JDFSealing,JDFVeloBinding,JDFWeight
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic final classEnumeration for the policy of merging the amounts from ResourceLinksstatic final classEnumeration for attribute Statusstatic final classEnumeration for partition keysstatic final classEnumeration for attribute PartUsagestatic final classEnumeration for attribute Classstatic final classEnumeration for attribute Statusstatic final classEnumeration for attribute SpawnStatusstatic enumstatic enumstatic enumstatic enumclassDeprecated.- use the local file typeNested classes/interfaces inherited from class org.cip4.jdflib.core.JDFElement
JDFElement.ENodeStatus, JDFElement.EnumBoolean, JDFElement.EnumNamedColor, JDFElement.EnumNodeStatus, JDFElement.EnumOrientation, JDFElement.EnumPoolType, JDFElement.EnumSeparation, JDFElement.EnumSettingsPolicy, JDFElement.EnumSides, JDFElement.EnumValidationLevel, JDFElement.EnumVersion, JDFElement.EnumXYRelation, JDFElement.EOrientation, JDFElement.ESides, JDFElement.eUnit, JDFElement.EVersionNested classes/interfaces inherited from class org.cip4.jdflib.core.KElement
KElement.MultiAttributeComparator, KElement.SimpleElementNameComparator, KElement.SimpleNodeComparator, KElement.SingleAttributeComparator, KElement.SingleXPathComparator -
Field Summary
Fields inherited from class org.apache.xerces.dom.ElementNSImpl
localName, namespaceURIFields inherited from class org.apache.xerces.dom.ElementImpl
attributes, nameFields inherited from class org.apache.xerces.dom.ParentNode
firstChild, fNodeListCache, ownerDocumentFields inherited from class org.apache.xerces.dom.ChildNode
nextSibling, previousSiblingFields inherited from class org.apache.xerces.dom.NodeImpl
DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_IS_CONTAINED, DOCUMENT_POSITION_PRECEDING, ELEMENT_DEFINITION_NODE, FIRSTCHILD, flags, HASSTRING, ID, IGNORABLEWS, NORMALIZED, OWNED, ownerNode, READONLY, SPECIFIED, SYNCCHILDREN, SYNCDATA, TREE_POSITION_ANCESTOR, TREE_POSITION_DESCENDANT, TREE_POSITION_DISCONNECTED, TREE_POSITION_EQUIVALENT, TREE_POSITION_FOLLOWING, TREE_POSITION_PRECEDING, TREE_POSITION_SAME_NODEFields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODEFields inherited from interface org.w3c.dom.TypeInfo
DERIVATION_EXTENSION, DERIVATION_LIST, DERIVATION_RESTRICTION, DERIVATION_UNION -
Constructor Summary
ConstructorsConstructorDescriptionJDFResource(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String qualifiedName) Constructor for JDFResourceJDFResource(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String myNamespaceURI, String qualifiedName) Constructor for JDFResourceJDFResource(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String myNamespaceURI, String qualifiedName, String myLocalName) Constructor for JDFResource -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPartIDKey(JDFResource.EnumPartIDKey partType) Adds a new PartIDKey to the root first checks for existenceaddPartition(JDFResource.EnumPartIDKey partType, String value) Adds a new part to this node, also handles PartIDKeys in the root etc.addPartition(JDFResource.EnumPartIDKey partType, ValuedEnum enumPart) Adds a new part to this node, also handles PartIDKeys in the root etc.addPartitions(JDFResource.EnumPartIDKey partType, VString values) Creates parts of part type 'partType' with values as defined in 'values'; the number of values is defined by the number of elements in 'values'voidaddPipePartIDKey(JDFResource.EnumPartIDKey partType) Adds a new PipePartIDKey to the root, first checks for existenceAppends new Contact element to the end of 'this'appendElement(String elementName, String nameSpaceURI) append an identical element,Appends new child IdentificationField element to the end of 'this'Appends new child Location element to the end of 'this'Appends new child QualityControlResult element to the end of 'this'appends a new SourceResource elementvoidappendSpawnIDs(String value) Appends new SpawnID token ('value') to the list of values of SpawnIDs attribute, if it is not yet in the listappendUpdate(String updateID) Deprecated.updates never really took off in JDFbuildXPath(String relativeTo, int methCountSiblings) Gets the XPath full tree representation of 'this'voidremove any resource specific attribute when making this to an elementvoidmake sure we don't have any old crapvoidclonePartitions(JDFResource r, VString partIDKeys) applies the partitioning of r to this.voidcollapse(boolean bCollapseToNode) Deprecated.- use 2 parameter versionvoidcollapse(boolean bCollapseToNode, boolean bCollapseElements) collapse all redundant attributes and elementsvoidcollapse(boolean bCollapseToNode, boolean bCollapseElements, Collection<String> keepFilter) collapse all redundant attributes and elementsbooleanTests, if this leaf has a consistent PartIDKey as specified by keyprotected booleanconsistentPartIDKeys(JDFResource.EnumPartIDKey key, JDFResource root, VString partIDKeys) Tests, if this leaf has a consistent PartIDKey as specified by keybooleanTests, if this leaf has a consistent PartIDKey as specified by keybooleancopyElement(KElement src, KElement beforeChild) Copies src node (including all attributes and subelements) and inserts the copy into 'this' in front of beforeChild, if it exists.copies a node into this, ignoring identical node names i.e.createPartitions(VJDFAttributeMap vPartMap, VString vPartIDKeys) Recursively adds the partition leaves defined in vPartMapcreateSourceResource(JDFResource source) create a sourceresource element that pints to sourceDeletes itself from its parentbooleandeletes this if it is no longer linked by either resource refs or resource linksvoidexpand(boolean bDeleteFromNode) Expand so that each leaf is complete (except for ID)voidexpand a leaf to contain the data of all intermediate leavesvoidGets string attribute AgentNameGets string attribute AgentVersionGets string attribute AlternateBranddoubleGets double attribute AmountdoubleGets double attribute AmountProduceddoubleGets double attribute AmountRequiredgetAttribute(String attrib, String nameSpaceURI, String def) Gets an attribute value.Get the Attribute Map of the actual element also following inheritancegetAttributePart(String key) Gets the parent element that actually contains the attribute key in a partitioned resourceGets a unique vector of resource leaf elements that actually contain the attribute keyGets all local attribute names as an vector of strings.
Is called from KElement.getMissingAttributeVector() as a virtual methodGets all local attribute names as an vector of stringsGets string attribute Authorstatic booleanstatic booleanif true, subelements are initialized with a class attributeGets string attribute BatchIDGets string attribute BinderySignatureNameGets string attribute BlockNamegetBrand()Gets string attribute BrandGets range attribute BundleItemIndexGets string attribute CatalogDetailsGets string attribute CatalogIDGets range attribute CellIndexgetChildArrayByClass(Class<a> clazz, boolean bRecurse, int nMax) Get all children from the actual element matching the given conditions
does NOT get refElement targets although the attributes are checked in the target elements in case of refElements never nullgetChildElementVector(String element, String nameSpaceURI, JDFAttributeMap mAttrib, boolean bAnd, int maxSize, boolean bResolveTarget) Gets all children from the actual element matching the given conditions also get the non-overwritten elements in the parents for partitioned resourcesgetChildrenByClass(Class<a> clazz, boolean bRecurse, int nMax) Deprecated.use getChildArrayByClass<A extends KElement>
AgetChildWithAttribute(Class<A> clazz, String attName, String attVal) Gets string attribute ConditionGets of 'this' an existing child Contact elementGets of 'this' child Contact element, optionally creates it, if it doesn't exist.getCreateElement_JDFResource(String nodeName, String nameSpaceURI, int iSkip) Recursive GetElement that also checks parent nodes up to the part root this was added in order to implement the c++ JDFResource::GetCreateElementget or create the identical element,getCreateIdentificationField(int iSkip) Gets of 'this' the iSkip-th IdentificationField element, optionally creates it, if it doesn't exist.Gets of 'this' child Location element, optionally creates it, if it doesn't exist.getCreatePartition(JDFAttributeMap partMap, VString vPartKeys) Recursively adds the partition leaves defined in partMapgetCreatePartition(JDFResource.EnumPartIDKey key, String value, VString vPartIDKeys) Gets the first part that matches key-value if it does not exist, create itgetCreateQualityControlResult(int iSkip) Gets of 'this' the iSkip-th QualityControlResult element, optionally creates it, if it doesn't exist.getCreator(boolean bCreate) Gets the creators (bCreate=true) or consumers (bCreate=false) of this resourcegetDeepPart(JDFAttributeMap m, boolean bIncomplete) Deprecated.use the partUsage dependent version insteadgetDeepPart(JDFAttributeMap m, JDFResource.EnumPartUsage partUsage) Gets a matching part from somewhere down there,
returns the closest ancestor of all matching elements within the target vectorgetDeliveryUnit(int iUnit) Gets attribute DeliveryUnitgetDirectPartition(int i) Gets range attribute DocCopiesGets range attribute DocIndexGets range attribute DocRunIndexGets range attribute DocSheetIndexgetElement(String nodeName, String nameSpaceURI, int iSkip) same as KElement.getElement, but also follows references and searches parentsGets typesafe enumerated value of attribute PartUsage; defaults to PartUsage_Explicit unless setUnpartitiondImplicit(true) has been called and the resource is not partitioned, in which case PartUsage_Implicit is called.intGets integer attribute FountainNumberdoubleGets double attribute GrossWeightget the identical element,return the PartMap of ./Identical/Part, or null if it does not existget the target of the identical element, this if no identical existsgetIdentificationField(int iSkip) Gets of 'this' the iSkip-th child IdentificationField elementprotected Stringgets a prefix for ID creation for the elementGets a list of all partition keys that this resource may be implicitly partitioned by, e.g.getInvalidAttributes(JDFElement.EnumValidationLevel level, boolean bIgnorePrivate, int nMax) Typesafe validator.Gets string attribute ItemNamesGets range attribute LayerIDsgetLeaf(int i) get a leaf, null if index out of boundsgetLeafArray(boolean bAll) Gets a list of all direct leavesgetLeaves(boolean bAll) Gets a list of all direct leavesDeprecated.[BLD009] use getLinks(linkName, null)Gets all elements with name linkName, which contain id/idrefs that point to this resourceDeprecated.use getLinksAndRefs(true,true);getLinksAndRefs(boolean bLink, boolean bRef) Gets all resourcelinks and refelements that link to this
note that this method may be tim consuming in a large loop
- in case of massive cleanup, useLinkRefFinderand access the complete map of references from within the loop @seeLinkRefFinderGets nodename of a ResourceLink that links to 'this'get the local partition key of this leafGets string attribute LocationGets of 'this' an existing child Location elementbooleangetLock()Deprecated.[BLD009] use getLockedbooleanGets boolean attribute Locked; defaults to false.Gets typesafe enumerated value of attribute LotControl; defaults to LotControl_ExplicitGets string attribute ManufacturergetNodesWithSpawnID(String spawnID) Gets of 'this' all leaves and intermediate nodes that have an explicit spawnID setbooleangetNoOp()Gets boolean attribute NoOp; defaults to falseGets string attribute OptionGets range attribute PageNumberget the intermediate or root partition of this, null if we are the rootGets a list of all valid part keys for this resourceGets a list of all valid part keys for this resourcegetPartition(JDFAttributeMap m, boolean bIncomplete) Deprecated.use getPartition(JDFAttributeMap m, JDFResource.EnumPartUsage partUsage)getPartition(JDFAttributeMap m, JDFResource.EnumPartUsage partUsage) Gets the first part that matches mAttributegetPartition(JDFResource.EnumPartIDKey key, String value, boolean bIncomplete) Deprecated.use getPartition(JDFAttributeMap m, JDFResource.EnumPartUsage partUsage)getPartitionLeafVector(JDFAttributeMap m, JDFResource.EnumPartUsage partUsage) Gets the vector of parts (resource leaves or nodes) that match mAttributegetPartitionVector(JDFAttributeMap m, boolean bIncomplete) Deprecated.use getPartitionVector(JDFAttributeMap m, EnumPartUsage partUsage)getPartitionVector(JDFAttributeMap m, JDFResource.EnumPartUsage partUsage) Gets the vector of parts (resource leaves or nodes) that match mAttributegetPartitionVector(VJDFAttributeMap vm, JDFResource.EnumPartUsage partUsage) Gets the vector of parts (resource leaves or nodes) that match mAttributegetPartitionVector(JDFResource.EnumPartIDKey key, String value, boolean bIncomplete) Deprecated.use getPartitionVector(JDFAttributeMap m, EnumPartUsage partUsage)Gets a map of all partition key-value pairs for this leaf / node this includes a recursion to the part root; never nullgetPartMap(List<String> partIDKeys) Gets a map of all partition key-value pairs for this leaf / node.getPartMapVector(boolean bIntermediate) Gets a vector of maps of all partition attribute key-value pairs for this node and all its childrenGets typesafe enumerated value of attribute PartUsage; defaults to PartUsage_Explicit unless setUnpartitiondImplicit(true) has been called and the resource is not partitioned, in which case PartUsage_Implicit is called.getPartValues(JDFResource.EnumPartIDKey partType) Gets a list of the values for attribute part type within the leavesGets string attribute PartVersionGets string attribute PipeIDDeprecated.Gets a list of all valid pipe part key enums for this resourceGet string attribute PipeProtocolGets string attribute PipeURLgetPool()Deprecated.[BLD009] use GetResourcePool insteadGets string attribute PreflightRuleGets typesafe enumerated value of attribute PreviewTypeGets string attribute ProductIDgetQualityControlResult(int iSkip) Gets of 'this' the iSkip-th child QualityControlResult elementGets typesafe enumerated value of attribute Class corresponds to C++ JDFResource::GetClass(), getClass() already exists in JavaGets the resourcepool that 'this' lives inGets the root resource of 'this'static JDFResourcegetResourceRoot(KElement elem) Gets the root resource of 'this'doubleGets double attribute ResourceWeightgetResStatus(boolean bRecurseRefs) Gets typesafe enumerated value of attribute StatusGets string attribute RibbonNameget the list of attributes that are administrative onlygetRun()Gets string attribute RunGets range attribute RunIndexintGets integer attribute RunPageGets string attribute RunSetGets NMTOKENS attribute RunTagsGets range attribute SectionIndexGets string attribute SeparationGets range attribute SetDocIndexGets range attribute SetIndexGets range attribute SetRunIndexGets range attribute SetSheetIndexGets range attribute SheetIndexGets string attribute SheetNamegetSide()Gets typesafe enumerated value of attribute SideGets string attribute SignatureNamebooleanGets boolean attribute SortAmountGets range attribute SortinggetSourceResource(int i) gets an existing SourceResource elementgetSpawnIDs(boolean bInherit) Gets string attribute SpawnIDsGets typesafe enumerated value of attribute SpawnStatusGets string attribute StationNamegetStatus(boolean bRecurseRefs) Deprecated.use getResStatus(bRecurseRefs)getStatusFromLeaves(boolean bAll) Gets the minimum typesafe enumerated value of attribute Status from the value of all leavesprotected AttributeInfoprotected ElementInfoGets XYPair attribute TileIDgetUnit()Gets string attribute UnitgetUpdate(int iSkip) Deprecated.updates never really took off in JDFDeprecated.updates never really took off in JDFGets string attribute UpdateIDDeprecated.updates never really took off in JDFDeprecated.updates never really took off in JDFget the fixed class for this resource,Gets string attribute WebNameGets string attribute WebProductGets string attribute WebSetupbooleanhasAttribute(String attrib, String nameSpaceURI, boolean bInherit) Checks if the actual element has a specific attribute
this version checks within the resource and its partitioned parent xml elementsbooleanTests, if this leaf has a PipePartIDKey as specified by keybooleanDeprecated.updates never really took off in JDFbooleaninit()default initializationinsertBefore(Node src, Node arg1) booleanisAvailable(boolean bRecurseRefs) Deprecated.use getStatus default: IsAvailable(false)booleanisLeaf()Tests, whether 'this' is the end of a partition (i.e.booleanChecks, whether this resourse is a parameter resourcebooleanisPartitioningCompatible(VString vsPartitions) Tests if the resource is compatible with the given partition keys.booleanTests if the given resources are compatible regarding their partitioning.booleanChecks, whether the resource is one of the physical resource classesbooleanChecks, whether this resourse is a quantity resource.booleanTests, if the first ancestor with a name different from the node name is not one of DropItemIntent,CustomerInfo,NodeInfo,ResourcePool,PipeParams, ResourceInfo,ResourceCmdParams.booleanTests, whether the first ancestor of 'this' is in ValidParentNodeNames - must be one of: DropItemIntent,CustomerInfo,NodeInfo,ResourcePool,PipeParams ,ResourceInfo,ResourceCmdParamsbooleanTests, whether the first ancestor of 'this' is in validRootParentNodeNames()
must be one of: ResourcePool,PipeParams,ResourceInfo,ResourceCmdParamsbooleanTests, whether 'this' is root of partition (i.e.booleanTests if a spawn of the given partition of the resource is allowed (by means of the JDF specification).booleanValidator of 'this'voidlock(boolean bLock) Deprecated.[BLD009] use setLocked()makeRootResource(String alias, JDFElement parentPool, boolean bLinkHere) Makes from 'this' resource subelement a root resource element (direct child) of the specified parentPool or (in default case) of ResourcePool, where it lives.booleanmatchesString(String namedResLink) check whether this resource matches a named resource stringmergeCloneResource(JDFResource oldRes) Clone the resource element oldRes and merge it with this resourcemergeElement(KElement kElem, boolean bDelete) merge nodes in a way that no duplicate elements are created
attention !! this kills pools !! since elements in kElem overwrite those in *thisvoidmergePartition(JDFResource resToMerge, String spawnID, JDFResource.EnumAmountMerge amountPolicy, boolean bLocalResource) Deprecated.used only by merge - moved therevoidmergeSpawnIDs(JDFResource resToMerge, VString previousMergeIDs) Deprecated.use JDFMerge.mergeSpawnIDSmoveElement(KElement src, KElement beforeChild) Moves src node (including all attributes and subelements) from its parent node into 'this' and inserts it in front of beforeChild, if it exists.Generates the id of a modified resourceintnumChildElements(String nodeName, String nameSpaceURI) The same as JDFElement.numChildElements but also follows ReferencesintDeprecated.updates never really took off in JDFvoidreducePartitions(VJDFAttributeMap vValidParts) Reduces partition so that only the parts that overlap with vResources remainvoidreduceParts(Vector vParts) Deprecated.[BLD009] not in C++ anymore, not used internally herereducePartVector(VJDFAttributeMap vParts) Finds the canonical vector of parts that defines the vector of parts that fits to vParts.voidremoveAttribute(String attrib, String nameSpaceURI) Removes local attributesvoidremoveAttributeFromLeaves(String attrib, String nameSpaceURI) Removes attributes, also removes overwrites in any child partsintremoveFromSpawnIDs(String value) Removes SpawnID token ('value') from the list of values of SpawnIDs attribute, if it is in the listvoidremoveInheritedAttributes(String attrib, String nameSpaceURI) Removes all local and inherited attributes down to the resource rootvoidremoveUpdate(int iSkip) Deprecated.updates never really took off in JDFvoidremoveUpdate(String updateID) Deprecated.updates never really took off in JDFvoidreorderPartitions(List<String> newPartIDKeys) replaceElement(KElement src) Replaces 'this' with src.voidsetAgentName(String value) Sets attribute AgentNamevoidsetAgentVersion(String value) Sets attribute AgentVersionvoidsetAlternateBrand(String value) Sets attribute AlternateBrandvoidsetAmount(double amount) Sets attribute AmountvoidsetAmountProduced(double value) Sets attribute AmountProducedvoidsetAmountRequired(double value) Sets attribute AmountRequiredvoidsetAttribute(String key, String value, String nameSpaceURI) Mother of all Attribute setters
Sets a new attribute.voidSets attribute Authorstatic voidsetAutoAgent(boolean _autoAgent) static voidsetAutoSubElementClass(boolean autoSubElementClass) if true, subelements are initialized with a class attributevoidsetAvailable(boolean bAvailable) Deprecated.use SetStatus(EnumResStatus) default: setAvailable(true)voidsetBatchID(String value) Sets attribute BatchIDvoidsetBinderySignatureName(String value) Sets attribute BinderySignatureNamevoidsetBlockName(String value) Sets attribute BlockNamevoidSets attribute BrandvoidSets attribute BundleItemIndexvoidsetCatalogDetails(String value) Sets attribute CatalogDetailsvoidsetCatalogID(String value) Sets attribute CatalogIDvoidsetCellIndex(JDFIntegerRangeList value) Sets attribute CellIndexvoidsetCondition(String value) Sets attribute ConditionvoidsetDeliveryUnit(int iUnit, String value) Sets attribute DeliveryUnitvoidsetDocCopies(JDFIntegerRangeList value) Sets attribute DocCopiesvoidsetDocIndex(JDFIntegerRangeList value) Sets attribute DocIndexvoidSets attribute DocRunIndexvoidSets attribute DocSheetIndexvoidsetFountainNumber(int value) Sets attribute FountainNumbervoidsetGrossWeight(double value) Sets attribute GrossWeightvoidsetIdentical(VJDFAttributeMap vPartMap) Sets the 1st-nth element as identical to the 0th elemennt ov vPartMap i.e.voidsetIdentical(JDFResource target) Appends new child Identifical element that refers to target also removes all subelements and attributes If an identical already exists, the part element is overwrittenvoidsetItemNames(String value) Sets attribute ItemNamesvoidsetLayerIDs(JDFIntegerRangeList value) Sets attribute LayerIDsvoidsetLocation(String value) Sets attribute LocationvoidsetLocked(boolean value) Sets attribute LockedvoidSets attribute PartUsagevoidsetManufacturer(String value) Sets attribute ManufacturervoidsetNoOp(boolean value) Sets attribute NoOpvoidSets attribute OptionvoidsetPageNumber(JDFIntegerRangeList value) Sets attribute PageNumbervoidsetPartIDKey(JDFResource.EnumPartIDKey key, String value) voidsetPartIDKeyList(List<String> partIDKeys) voidsetPartIDKeys(VString partIDKeys) set the partIDKeys attribute of the root of thisvoidSets attribute PartUsagevoidSets attribute PartUsagevoidsetPartVersion(String value) Sets attribute PartVersionvoidSets attribute PipeIDvoidsetPipePartIDKey(JDFResource.EnumPartIDKey key, String value) Sets the value of attibute, specified by keyvoidsetPipeProtocol(String value) Set attribute PipeProtocolvoidsetPipeURL(String value) Sets attribute PipeURLvoidsetPreflightRule(String value) Sets attribute PreflightRulevoidSets attribute PreviewTypevoidsetProductID(String value) Sets attribute ProductIDvoidSets attribute Class corresponds to C++ JDFResource::SetClass()voidsetResourceWeight(double value) Sets attribute ResourceWeightvoidsetResStatus(JDFResource.EnumResStatus value, boolean bCleanLeaves) Sets attribute StatusvoidsetResStatus(JDFResource.EResStatus value, boolean bCleanLeaves) Sets attribute StatusvoidsetRibbonName(String value) Sets attribute RibbonNamevoidSets attribute RunvoidsetRunIndex(JDFIntegerRangeList value) Sets attribute RunIndexvoidsetRunPage(int value) Sets attribute RunPagevoidSets attribute RunSetvoidsetRunTags(VString value) Sets attribute RunTagsvoidSets attribute SectionIndexvoidsetSeparation(String value) Sets attribute SeparationvoidSets attribute SetDocIndexvoidsetSetIndex(JDFIntegerRangeList value) Sets attribute SetIndexvoidSets attribute SetRunIndexvoidSets attribute SetSheetIndexvoidsetSheetIndex(JDFIntegerRangeList value) Sets attribute SheetIndexvoidsetSheetName(String value) Sets attribute SheetNamevoidsetSide(JDFAutoPart.EnumSide value) Sets attribute SidevoidsetSignatureName(String value) Sets attribute SignatureNamevoidsetSortAmount(boolean value) Sets attribute SortAmountvoidsetSorting(JDFIntegerRangeList value) Sets attribute SortingvoidsetSpawnIDs(String spawndID) Sets attribute SpawnIDsvoidsetSpawnIDs(VString vStr) Sets attribute SpawnIDsvoidSets attribute SpawnStatusvoidsetStationName(String value) Sets attribute StationNamevoidDeprecated.use setResStatus(value, false)voidsetStatus(JDFResource.EnumResStatus value, boolean bCleanLeaves) Deprecated.use setResStatus(value, bCleanLeaves)voidSets attribute TileIDvoidSets attribute UnitvoidsetUnit(JDFElement.eUnit unit) static voidsetUnpartitiondImplicit(boolean bUnpartitiondImplicit) if set to true, the default @PartUsage of unpartitioned resources is Implicit.voidsetUpdateID(String value) Sets attribute UpdateIDvoidsetWebName(String value) Sets attribute WebNamevoidsetWebProduct(String value) Sets attribute WebProductvoidsetWebSetup(String value) Sets attribute WebSetupvoidspawnPart(String spawnID, JDFResource.EnumSpawnStatus spawnStatus, VJDFAttributeMap vParts, boolean bStayInMain) Deprecated.use JDFSpawn.spawnPartbooleanunpartition(boolean bForce) unpartition this resource by collapsing and removing any empty leavesvoidunSpawnPart(String spawnID, JDFResource.EnumSpawnStatus spawnStatus) Find the appropriate partition for a given SpawnID and undo the spawn procedurevoidupdateAmounts(boolean keepPrevious) update the amount of a resource based on the connected resource links Only Condition="Good" is counted if no explicit partioning by condition is specifiedupdateAttributeFromLeaves(String attName, String nsURI, boolean bDirect) update vattribute value to the value of the attribute in the leavesfinal booleanTypesafe attribute validation of Class corresponds to C++ JDFResource::ValidClass()booleanTypesafe attribute validation of Class corresponds to C++ JDFResource::ValidClass()Methods inherited from class org.cip4.jdflib.core.JDFElement
appendAnchor, appendBestEffortExceptions, appendComment, appendGeneralID, appendGeneralID, appendGeneralID, appendHRef, appendHRef, appendMustHonorExceptions, appendOperatorInterventionExceptions, appendPreview, appendrRefs, attributeType, clearTargets, cloneNewDoc, copyChildren, createRoot, createRoot, deprecatedAttributes, eraseDefaultAttributes, exclusiveOneOfAttribute, exclusiveOneOfElement, fixVersion, getAllRefs, getAtrType, getAttributeInfo, getBestEffortExceptions, getChildElement, getChildElements, getChildElementVector_JDFElement, getChildIds, getChildrenByTagName, getChildrenByTagName, getChildWithAttribute, getChildWithMatchingAttribute, getComment, getComment, getCommentText, getCommentURL, getCreateComment, getCreateComment, getCreateElement_JDFElement, getCreatePreview, getCreateRefElement, getDeepElementByID, getDefaultAttributeMap, getDefaultJDFVersion, getDeprecatedAttributes, getDeprecatedElements, getDescriptiveName, getElement_JDFElement, getElementIDPrefix, getElementInfo, getElementNameVector, getEnumAttribute, getEnumerationsAttribute, getEnumerationsAttribute, getEnumerationsAttribute, getEnumforAttribute, getEnumNodeName, getEnumString, getFirstVersion, getGeneralID, getGeneralID, getGeneralID, getGeneralIDListMap, getGeneralIDMap, getGeneralIDVectorMap, getHRef, getHRefs, getHRefs, getInsertElements, getInsertElementVector, getInvalidElements, getInvalidElements_JDFElement, getJDFRoot, getJMFRoot, getLastVersion, getLinkFromUserData, getLinkRoot, getMaxVersion, getMissingAttributes, getMissingAttributeVector, getMissingElements, getMissingElementVector, getMustHonorExceptions, getNamesVector, getOperatorInterventionExceptions, getOwnerDocument_JDFElement, getParentJDF, getParentJDF, getPartMapArray, getPartMapVector, 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, 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_JDFElement, optionalAttributes, optionalElements, parseFile, parseFile, parseStream, parseString, prereleaseAttributes, prereleaseElements, refElement, removeBestEffortExceptions, removeChild, removeChild, removeChildren, removeExtensions, removeFromBestEffortExceptions, removeFromMustHonorExceptions, removeFromOperatorInterventionExceptions, removeFromrRefs, removeGeneralID, removePartMap, removeRefElement, removeSettingsPolicy, replaceChild, requiredAttributes, requiredElements, requiredLevel, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeNameTimeStamp, setAttributes, setBestEffortExceptions, setCommentText, setCommentText, setCommentURL, setDefaultJDFVersion, setDescriptiveName, setDirty, setEnumerationsAttribute, setEnumsAttribute, setGeneralID, setLongID, setMustHonorExceptions, setOperatorInterventionExceptions, setPartMap, setPartMapVector, setSettingsPolicy, setStatus, setVersion, setvStringAttribute, stringToVersion, uniqueElements, upDaterRefs, validAttribute, validAttribute, validEnumAttribute, validEnumerationsAttribute, validResourcePosition, version, write2DirMethods inherited from class org.cip4.jdflib.core.KElement
addAttribute, addAttribute, addNameSpace, ancestorDistance, appendAttribute, appendAttribute, appendAttributes, appendCData, appendCData, appendChild, appendElement, appendElementN, appendElementRaw, appendEntityReference, appendText, appendTextElement, appendXMLComment, appendXMLComment, buildRelativeXPath, buildXPath, buildXPath, cleanup, clearNSMap, clone, copyAttribute, copyAttribute, copyAttribute, copyAttribute, copyElements, copyXPathValue, createRoot, ensureCase, eraseEmptyAttributes, eraseEmptyNodes, fillHashSet, fitsName, fitsName_KElement, flush, generateDotID, getAttribute, getAttribute, getAttribute_KElement, getAttribute_KElement, getAttributeArray_KElement, getAttributeIgnoreCase, getAttributeMap_KElement, getAttributeRaw, getAttributeVector_KElement, getBoolAttribute, getCData, getChildArray, getChildArray_KElement, getChildArrayByClass_KElement, getChildAttributeList, getChildByTagName, getChildElementArray, getChildElementVector, getChildElementVector, getChildElementVector_KElement, getChildFromList, getChildFromList, getChildList, getChildList, getChildNode, getChildNodes_KElement, getChildNodeVector, getChildrenByTagName, getChildrenByTagName_KElement, getChildrenFromList, getChildrenIgnoreList, getChildrenWithAttribute, 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_KElement, hasAttributes, hasChildElement, hasChildElements, hasChildNodes, hasChildText, hasNonEmpty, hasNonEmpty_KElement, hasXPathNode, includesAttribute, includesAttributes, insertAt, isAncestor, isEqual, isEqual, isWildCard, matchesPath, matchesPathName, moveArray, moveAttribute, moveAttribute, moveElements, moveMe, normalize, numChildElements_KElement, numChildNodes, numChildNodes, numChildrenByClass, numSiblingElements, pushUp, removeAllText, removeAttribute, removeAttribute_KElement, removeAttributeNode, removeAttributeNS, removeAttributes, removeCData, removeChildNode, removeChildren, removeChildrenByClass, removeChildText, removeExtensions, removeFromAttribute, removeIgnoreCase, removeIgnoreCase_KElement, removeXMLComment, removeXPathAttribute, removeXPathElement, renameAttribute, renameAttribute, renameElement, 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, sortChildren, toDisplayXML, toString, toValueString, toXML, toXML, uniqueID, uniqueID, write2File, write2File, write2Stream, writeStream, xmlNameSpace, xmlnsLocalName, xmlnsPrefixMethods inherited from class org.apache.xerces.dom.ElementNSImpl
getLocalName, getPrefix, getTypeName, getTypeNamespace, getXMLBaseAttribute, isDerivedFrom, setTypeMethods inherited from class org.apache.xerces.dom.ElementImpl
cloneNode, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getBaseURI, getChildElementCount, getDefaultAttributes, getElementsByTagName, getElementsByTagNameNS, getFirstElementChild, getLastElementChild, getNextElementSibling, getNodeName, getNodeType, getPreviousElementSibling, getSchemaTypeInfo, getTagName, getXercesAttribute, hasAttributeNS, isEqualNode, reconcileDefaultAttributes, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setOwnerDocument, setReadOnly, setupDefaultAttributes, setXercesAttributeNode, synchronizeDataMethods inherited from class org.apache.xerces.dom.ParentNode
getChildNodes, getChildNodesUnoptimized, getFirstChild, getLastChild, getLength, getOwnerDocument, getTextContent, hasChildNodes, item, setTextContent, synchronizeChildrenMethods inherited from class org.apache.xerces.dom.ChildNode
getNextSibling, getParentNode, getPreviousSiblingMethods inherited from class org.apache.xerces.dom.NodeImpl
addEventListener, changed, changes, compareDocumentPosition, compareTreePosition, dispatchEvent, getContainer, getFeature, getNodeNumber, getNodeValue, getReadOnly, getUserData, getUserData, getUserDataRecord, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, needsSyncChildren, removeEventListener, setUserData, setUserDataMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.w3c.dom.Element
getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNSMethods inherited from interface org.w3c.dom.Node
cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasChildNodes, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, setTextContent, setUserData
-
Constructor Details
-
JDFResource
Constructor for JDFResource- Parameters:
myOwnerDocument-qualifiedName-
-
JDFResource
public JDFResource(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String myNamespaceURI, String qualifiedName) Constructor for JDFResource- Parameters:
myOwnerDocument-myNamespaceURI-qualifiedName-
-
JDFResource
public JDFResource(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String myNamespaceURI, String qualifiedName, String myLocalName) Constructor for JDFResource- Parameters:
myOwnerDocument-myNamespaceURI-qualifiedName-myLocalName-
-
-
Method Details
-
getTheAttributeInfo
- Overrides:
getTheAttributeInfoin classJDFElement- Returns:
-
getTheElementInfo
- Overrides:
getTheElementInfoin classJDFElement- Returns:
- the elementinfo
-
setAvailable
Deprecated.use SetStatus(EnumResStatus) default: setAvailable(true)Status related shorthand for really lazy people Sets Status of resource as Available if bAvailable=true or as Unavailable if bAvailable=false- Parameters:
bAvailable-
-
isAvailable
Deprecated.use getStatus default: IsAvailable(false)Tests whether Status of resource is Available- Parameters:
bRecurseRefs- if bRecurseRefs is set to true, also recurses into all resources linked by rRefs and returns true if the minimum Status is Status_Available- Returns:
- boolean true, if Status is Available
-
isRootElement
public boolean isRootElement()Tests, whether 'this' is root of partition (i.e. there is no element with the same name over 'this')- Returns:
- boolean true, if 'this' is a root
-
isQuantity
public boolean isQuantity()Checks, whether this resourse is a quantity resource. For quantity resource the class of 'this' must be either Quantity or Consumable- Returns:
- boolean true, if 'this' is a quantity resource
-
isParameter
public boolean isParameter()Checks, whether this resourse is a parameter resource- Returns:
- boolean true, if 'this' is a parameter resource
-
getLock
Deprecated.[BLD009] use getLockedgetLock- Returns:
- boolean
-
lock
Deprecated.[BLD009] use setLocked()Lock- Parameters:
bLock-
-
isPhysical
public boolean isPhysical()Checks, whether the resource is one of the physical resource classes- Returns:
- boolean true, if the resource is one of the physical resource classes
-
getResourceRoot
Gets the root resource of 'this'- Returns:
- JDFResource - the root resource element
- Throws:
JDFException- if GetResourceRoot ran into the JDF node while searching
-
getResourceRoot
Gets the root resource of 'this'- Parameters:
elem- the element to get the root of- Returns:
- JDFResource - the root resource element
- Throws:
JDFException- if GetResourceRoot ran into the JDF node while searching
-
getPool
Deprecated.[BLD009] use GetResourcePool insteadGets the resourcepool that 'this' lives in- Returns:
- JDFResourcePool: the ResourcePool where 'this' lives
-
init
public boolean init()default initialization- Overrides:
initin classJDFElement- Returns:
- boolean true, if successful
- See Also:
-
makeRootResource
- Returns:
-
makeRootResource
Makes from 'this' resource subelement a root resource element (direct child) of the specified parentPool or (in default case) of ResourcePool, where it lives.
The Status and SpawnStatus attribute values of the new root resource are taken from the old root resource.- Parameters:
alias- id attribute of the newly created resourceparentPool- the pool where the newly created resource is stored
if null the local pool is used. Must use JDFElement for the pool because of recursive #definesbLinkHere- if true, creates a refelement (link) to the newly created resource at the position where 'this' originally resided.- Returns:
- JDFResource the moved resource
-
getCreator
Gets the creators (bCreate=true) or consumers (bCreate=false) of this resource- Parameters:
bCreate- switcher for getter: if true gets creators, otherwise gets consumers- Returns:
- VElement list of JDF nodes that create or consume this resource
-
mergePartition
@Deprecated public void mergePartition(JDFResource resToMerge, String spawnID, JDFResource.EnumAmountMerge amountPolicy, boolean bLocalResource) Deprecated.used only by merge - moved thereMerges partitioned resources into this resource uses PartIDKey to identify the correct resources- Parameters:
resToMerge- the resource leaf to merge into thisspawnID- the spawnID of the spawning that will now be mergedamountPolicy- how to clean up the Resource amounts after mergingbLocalResource- must be true for the local resources in a spawned node and its subnodes, which default to RW- Throws:
JDFException- if here is an attempt to merge incompatible resourcesJDFException- if here is an attempt to merge incompatible partitions
-
setPartIDKeys
set the partIDKeys attribute of the root of this- Parameters:
partIDKeys- the value to set key to
-
setPartIDKeyList
- Parameters:
partIDKeys-
-
mergeCloneResource
Clone the resource element oldRes and merge it with this resource- Parameters:
oldRes- the resource element to clone and to merge with this resource- Returns:
- JDFResource merged resource
-
getLinks
Deprecated.[BLD009] use getLinks(linkName, null)Gets all elements with name linkName, which contain resource links that point to this resource- Parameters:
linkName- defaults to any- Returns:
- VElement vector of all found elements
-
getLinks
Gets all elements with name linkName, which contain id/idrefs that point to this resource- Parameters:
linkName- defaults to anynameSpaceURI- attribute namespace you are searching in- Returns:
- VElement - vector of all found elements
-
getLinksAndRefs
Deprecated.use getLinksAndRefs(true,true);Gets all resourcelinks and refelements that link to this- Returns:
- VElement - vector of all found elements, null if none found
-
getLinksAndRefs
Gets all resourcelinks and refelements that link to this
note that this method may be tim consuming in a large loop
- in case of massive cleanup, useLinkRefFinderand access the complete map of references from within the loop @seeLinkRefFinder- Parameters:
bLink- if true, include resource linksbRef- if true include resource refs- Returns:
- VElement - vector of all found elements, null if none found
-
isResourceElement
public boolean isResourceElement()Tests, if the first ancestor with a name different from the node name is not one of DropItemIntent,CustomerInfo,NodeInfo,ResourcePool,PipeParams, ResourceInfo,ResourceCmdParams.
In other words: if this resource is a subelement, but not a resourceroot- Returns:
- boolean true, if this is a subelement but not a root
-
getPartition
Deprecated.use getPartition(JDFAttributeMap m, JDFResource.EnumPartUsage partUsage)Gets the first part that matches mAttribute- Parameters:
m- the map of key-value partitions (where key - PartIDKey, value - its value)bIncomplete- if true, also accept nodes that are are not completely specified in the partmap,
e.g. if partitioned by run, RunPage and only Run is specified- Returns:
- JDFResource - the first matching resource leaf or node
-
getPartition
Gets the first part that matches mAttribute- Parameters:
m- the map of key-value partitions (where key - PartIDKey, value - its value)partUsage- also accept nodes that are are not completely specified in the partmap, e.g. if partitioned by run, RunPage and only Run is specified- Returns:
- JDFResource: the first matching resource leaf or node
-
getPartitionMap
- Returns:
-
getPartition
@Deprecated public JDFResource getPartition(JDFResource.EnumPartIDKey key, String value, boolean bIncomplete) Deprecated.use getPartition(JDFAttributeMap m, JDFResource.EnumPartUsage partUsage)Gets the first part that matches key-value pair- Parameters:
key- the PartIDKey attribute namevalue- the string value of the partition keybIncomplete- if true, also accept nodes that are are not completely specified in the partmap, e.g. if partitioned by run, RunPage and only Run is specified- Returns:
- JDFResource the first matching resource leaf or node
-
clonePartitions
applies the partitioning of r to this.
Ideally called only for unpartitioned resources, but will work on consistently partitioned resources- Parameters:
r- the resource from which to clone the partitioningpartIDKeys- the partIDKeys to clone, if null use the existing list from r- Throws:
JDFException- if this is already inconsistently partitioned
-
reorderPartitions
- Parameters:
newPartIDKeys-
-
fillSparse
public void fillSparse() -
getCreatePartition
Recursively adds the partition leaves defined in partMap- Parameters:
partMap- the map of part keysvPartKeys- the vector of partIDKeys strings of the resource. If empty (the default), the Resource PartIDKeys attribute is used- Returns:
- JDFResource the last created partition leaf
- Throws:
JDFException- if there are in the partMap not matching partitionsJDFException- if there is an attempt to fill non-matching partIDKeysJDFException- if by adding of last partition key there is either non-continuous partmap or left more than one key
-
getCreatePartition
public JDFResource getCreatePartition(JDFResource.EnumPartIDKey key, String value, VString vPartIDKeys) Gets the first part that matches key-value if it does not exist, create it- Parameters:
key- the PartIDKey attribute namevalue- the string value of the partition keyvPartIDKeys- the vector of partIDKeys strings of the resource.- Returns:
- JDFResource the matching resource
-
consistentPartIDKeys
protected boolean consistentPartIDKeys(JDFResource.EnumPartIDKey key, JDFResource root, VString partIDKeys) Tests, if this leaf has a consistent PartIDKey as specified by key- Parameters:
key- the PartIDKey attribute nameroot-partIDKeys-- Returns:
- boolean true, if key exists in this leaf is in PartIDKeys
-
consistentPartIDKeys
Tests, if this leaf has a consistent PartIDKey as specified by key- Parameters:
key- the PartIDKey attribute name- Returns:
- boolean true, if key exists in this leaf is in PartIDKeys
-
getDeepPart
Deprecated.use the partUsage dependent version insteadGets a matching part from somewhere down there returns the closest ancestor of all matching elements within the target vector- Parameters:
m-bIncomplete-- Returns:
- JDFResource
-
getDeepPart
Gets a matching part from somewhere down there,
returns the closest ancestor of all matching elements within the target vector- Parameters:
m- map of attributes that should fitpartUsage- also accept nodes that are are not completely specified in the partmap, e.g. if partitioned by run, RunPage and only Run is specified- Returns:
- the first found matching resource node or leaf
-
getLeaves
Gets a list of all direct leaves- Parameters:
bAll- if true include all intermediate and leaf nodes including this
if false, include only the final leaves- Returns:
- VElement - the vector of all leaves - never null
-
getLeafArray
Gets a list of all direct leaves- Parameters:
bAll- if true include all intermediate and leaf nodes including this
if false, include only the final leaves- Returns:
- VElement - the vector of all leaves - never null
-
getDirectPartitionVector
- Returns:
-
getDirectPartitionArray
- Returns:
-
getDirectPartition
- Returns:
-
isLeaf
public boolean isLeaf()Tests, whether 'this' is the end of a partition (i.e. there is no element with the same name directly below)- Returns:
- boolean true, if 'this' is a leaf
-
getPartValues
Gets a list of the values for attribute part type within the leaves- Parameters:
partType- the PartIDKey attribute name- Returns:
- Vector - a list of values of the specified partition key
-
getAttribute
Gets an attribute value. Also follows partition parents to the resource root- Overrides:
getAttributein classKElement- Parameters:
attrib- attribute name to getnameSpaceURI- namespace to search fordef- attribute default that is returned if no attribute exists- Returns:
- WString - attribute value
-
getChildrenByClass
@Deprecated public <a extends KElement> Vector<a> getChildrenByClass(Class<a> clazz, boolean bRecurse, int nMax) Deprecated.use getChildArrayByClass- Overrides:
getChildrenByClassin classKElement- Parameters:
clazz-bRecurse-nMax-- Returns:
-
getChildArrayByClass
public <a extends KElement> List<a> getChildArrayByClass(Class<a> clazz, boolean bRecurse, int nMax) Description copied from class:KElementGet all children from the actual element matching the given conditions
does NOT get refElement targets although the attributes are checked in the target elements in case of refElements never null- Overrides:
getChildArrayByClassin classKElementbRecurse- if true recurse through all children, grandchildren etc.nMax- maximum number to search - if 0 or negative, search all- Returns:
- Vector vector with all found elements, never null
- See Also:
-
getChildWithAttribute
- Overrides:
getChildWithAttributein classKElement
-
getAttributeMap
Get the Attribute Map of the actual element also following inheritance- Overrides:
getAttributeMapin classKElement- Returns:
- JDFAttributeMap the attribute map of the actual element
-
hasAttribute
Checks if the actual element has a specific attribute
this version checks within the resource and its partitioned parent xml elements- Overrides:
hasAttributein classKElement- Parameters:
attrib- the name of the attribute to look fornameSpaceURI- the nameSpace to look inbInherit- if true also check recursively in parent elements, regardless of partitioning- Returns:
- boolean true, if the attribute is present
-
numChildElements
The same as JDFElement.numChildElements but also follows References- Overrides:
numChildElementsin classJDFElement- Parameters:
nodeName- the nodes to countnameSpaceURI- the nameSpace to look in- Returns:
- int - the number of child elements
-
getCreateElement_JDFResource
Recursive GetElement that also checks parent nodes up to the part root this was added in order to implement the c++ JDFResource::GetCreateElement- Parameters:
nodeName- name of the child node to getnameSpaceURI- namespace to search foriSkip- get the iSkipth element that fits- Returns:
- KElement - the matching element
-
getElement
same as KElement.getElement, but also follows references and searches parents- Overrides:
getElementin classJDFElement- Parameters:
nodeName- name of the child node to getnameSpaceURI- namespace to search foriSkip- get the iSkipth element that fits- Returns:
- KElement: the matching element default: getElement(nodeName, null, 0)
- See Also:
-
addPartitions
Creates parts of part type 'partType' with values as defined in 'values'; the number of values is defined by the number of elements in 'values'- Parameters:
partType- part type of a new partvalues- its value- Returns:
- VElement - vector of newly created parts
-
addPartition
Adds a new part to this node, also handles PartIDKeys in the root etc. convenience method to allow for partIDKey enums rather than strings- Parameters:
partType- part type of a new partenumPart- its value- Returns:
- JDFResource - the newly created part
-
addPartition
Adds a new part to this node, also handles PartIDKeys in the root etc.- Parameters:
partType- part type of a new partvalue- its value- Returns:
- JDFResource - the newly created part
-
getAttributeVector
Gets all local attribute names as an vector of strings.
Is called from KElement.getMissingAttributeVector() as a virtual method- Overrides:
getAttributeVectorin classKElement- Returns:
- VString - the vector of attribute names
-
getAttributeVector_JDFResource
Gets all local attribute names as an vector of strings- Returns:
- VString the vector of attribute names
-
getAttributePart
Gets the parent element that actually contains the attribute key in a partitioned resource- Parameters:
key- attribute key to look for- Returns:
- JDFResource - the parent element that actually contains the attribute key
-
getAttributePartVector
Gets a unique vector of resource leaf elements that actually contain the attribute key- Parameters:
key- attribute key to look for- Returns:
- VElement a vector of resource leaf elements that actually contain the attribute key
-
buildXPath
Gets the XPath full tree representation of 'this'- Overrides:
buildXPathin classKElement- Parameters:
relativeTo- relative path to which to create an xpathmethCountSiblings- , if 1 count siblings, i.e. add '[n]' if 0, only specify the path of parents- Returns:
- String the XPath representation of 'this' e.g.
/root/parent/element
nullif parent of this is null (e.g. called on rootnode)
-
getLocalPartitionKey
get the local partition key of this leaf- Returns:
- the key, if one exists, null otherwise
-
cleanResourceAttributes
public void cleanResourceAttributes()remove any resource specific attribute when making this to an element -
removeInheritedAttributes
Removes all local and inherited attributes down to the resource root- Parameters:
attrib- the attribute key to removenameSpaceURI- the attribute nameSpaceURI to remove
-
removeAttribute
Removes local attributes- Overrides:
removeAttributein classKElement- Parameters:
attrib- the attribute key to removenameSpaceURI- the attribute nameSpaceURI to remove
-
removeAttributeFromLeaves
Removes attributes, also removes overwrites in any child parts- Parameters:
attrib- the attribute key to removenameSpaceURI- the attribute nameSpaceURI to remove
-
reducePartitions
Reduces partition so that only the parts that overlap with vResources remain- Parameters:
vValidParts- vector of partmaps that define the individual valid parts.
The individual PartMaps are ored to define the final resource.
-
clearPartitions
public void clearPartitions()make sure we don't have any old crap -
reduceParts
Deprecated.[BLD009] not in C++ anymore, not used internally herereduceParts- Parameters:
vParts-
-
getPartMap
Gets a map of all partition key-value pairs for this leaf / node. This includes a recursion to the part root.- Parameters:
partIDKeys-- Returns:
- the part attribute map for 'this' leaf / node - reused for performance enhancement; never null
-
getPartMap
Gets a map of all partition key-value pairs for this leaf / node this includes a recursion to the part root; never null- Overrides:
getPartMapin classJDFElement- Returns:
- JDFAttributeMap - the part attribute map for 'this' leaf / node
-
getLinkString
Gets nodename of a ResourceLink that links to 'this'- Returns:
- String - name of a link to 'this'
-
mergeSpawnIDs
Deprecated.use JDFMerge.mergeSpawnIDSMerges the spawnIDs of the various partitions
also updates SpawnStatus, if necessary
this routine is needed to correctly handle nested spawning and merging- Parameters:
resToMerge- the resource with potentially new spawnIDspreviousMergeIDs- vector of already merged spawnIDs that may still be in a partition
-
expand
public void expand(boolean bDeleteFromNode) Expand so that each leaf is complete (except for ID)- Parameters:
bDeleteFromNode- if true, removes all intermediate elements and attributes
-
expandLeaf
public void expandLeaf()expand a leaf to contain the data of all intermediate leaves -
getRootPartAtts
get the list of attributes that are administrative only- Returns:
- the VString that lists all adminstrative and partition keys
-
collapse
Deprecated.- use 2 parameter versioncollapse all redundant attributes and elements- Parameters:
bCollapseToNode- only collapse redundant attriutes and elements that pre-exist in the nodes
-
collapse
public void collapse(boolean bCollapseToNode, boolean bCollapseElements) collapse all redundant attributes and elements- Parameters:
bCollapseToNode- only collapse redundant attributes and elements that pre-exist in the nodesbCollapseElements- if true, collapse elements, else only collapse attributes
-
collapse
public void collapse(boolean bCollapseToNode, boolean bCollapseElements, Collection<String> keepFilter) collapse all redundant attributes and elements- Parameters:
bCollapseToNode- only collapse redundant attributes and elements that pre-exist in the nodesbCollapseElements- if true, collapse elements, else only collapse attributes
-
unpartition
public boolean unpartition(boolean bForce) unpartition this resource by collapsing and removing any empty leaves- Parameters:
bForce- if true force collapse by removing non-identical elements- Returns:
- true if successfully unpartitioned
-
spawnPart
@Deprecated public void spawnPart(String spawnID, JDFResource.EnumSpawnStatus spawnStatus, VJDFAttributeMap vParts, boolean bStayInMain) Deprecated.use JDFSpawn.spawnPartSpawns a given partition for a given SpawnID- Parameters:
spawnID- the SpawnID that it was spawned withspawnStatus- SpawnStatus to spawn this resource withvParts- vector of partitions that it was spawned withbStayInMain- if true, the function is applied to the main JDF, else to the spawned JDF
-
unSpawnPart
Find the appropriate partition for a given SpawnID and undo the spawn procedure- Parameters:
spawnID- the SpawnID that it was spawned withspawnStatus- SpawnStatus this resource was spawned with
-
getNodesWithSpawnID
Gets of 'this' all leaves and intermediate nodes that have an explicit spawnID set- Parameters:
spawnID- the spawnID to look for- Returns:
- VElement - the vector of nodes or leaves of 'this' that contain spawnID
-
getPartitionVector
Deprecated.use getPartitionVector(JDFAttributeMap m, EnumPartUsage partUsage)Gets the vector of parts (resource leaves or nodes) that match mAttribute- Parameters:
m- the map of key-value partitions (where key - PartIDKey, value - its value)bIncomplete- if true, also accept nodes that are are not completely specified in the partmap,
e.g. if partitioned by run, RunPage and only Run is specified- Returns:
- VElement - the vector of matching resource leaves or nodes
-
getPartitionVector
Gets the vector of parts (resource leaves or nodes) that match mAttribute- Parameters:
vm- the map of key-value partitions (where key - PartIDKey, value - its value)partUsage- also accept nodes that are are not completely specified in the partmap, e.g. if partitioned by run, RunPage and only Run is specified- Returns:
- VElement - the vector of matching resource leaves or nodes
-
getPartitionLeafVector
Gets the vector of parts (resource leaves or nodes) that match mAttribute- Parameters:
m- the map of key-value partitions (where key - PartIDKey, value - its value)partUsage- also accept nodes that are are not completely specified in the partmap, e.g. if partitioned by run, RunPage and only Run is specified- Returns:
- VElement - the vector of matching resource leaves or nodes
-
getPartitionVector
Gets the vector of parts (resource leaves or nodes) that match mAttribute- Parameters:
m- the map of key-value partitions (where key - PartIDKey, value - its value)partUsage- also accept nodes that are are not completely specified in the partmap, e.g. if partitioned by run, RunPage and only Run is specified- Returns:
- VElement - the vector of matching resource leaves or nodes
-
getPartitionVector
@Deprecated public VElement getPartitionVector(JDFResource.EnumPartIDKey key, String value, boolean bIncomplete) Deprecated.use getPartitionVector(JDFAttributeMap m, EnumPartUsage partUsage)Gets the vector of parts that matches specified key-value pair- Parameters:
key- the PartIDKey attribute namevalue- the string value of the partition keybIncomplete-- Returns:
- VElement - the vector matching resource leaves or nodes
-
getIDPrefix
gets a prefix for ID creation for the element- Overrides:
getIDPrefixin classKElement- Returns:
- String - a prefix for ID creation
-
getPartMapVector
Gets a vector of maps of all partition attribute key-value pairs for this node and all its children- Parameters:
bIntermediate- if true also includes intermediate nodes including this- Returns:
- VJDFAttributeMap - the vector of partition attribute maps for this leaf / node and all its children
-
reducePartVector
Finds the canonical vector of parts that defines the vector of parts that fits to vParts. If all children of a parent node are in vParts, they are replaced by their parent.
for example the canonical vector of all leaves is the root- Parameters:
vParts- the vector of parts to check against 'this'- Returns:
- VJDFAttributeMap the canonical vector
-
newModifiedID
Generates the id of a modified resource- Returns:
- String the new id
- Throws:
JDFException- if there are too many equivalent modified resources
-
getResourcePool
Gets the resourcepool that 'this' lives in- Returns:
- JDFResourcePool the ResourcePool where 'this' lives
-
isResourceRoot
public boolean isResourceRoot()Tests, whether the first ancestor of 'this' is in ValidParentNodeNames - must be one of: DropItemIntent,CustomerInfo,NodeInfo,ResourcePool,PipeParams ,ResourceInfo,ResourceCmdParams- Returns:
- boolean true, if 'this' is a root resource
-
isResourceRootRoot
public boolean isResourceRootRoot()Tests, whether the first ancestor of 'this' is in validRootParentNodeNames()
must be one of: ResourcePool,PipeParams,ResourceInfo,ResourceCmdParams- Returns:
- boolean - true if this lives as a root resource in the ResourcePool
-
updateAttributeFromLeaves
update vattribute value to the value of the attribute in the leaves- Parameters:
attName-nsURI-bDirect-- Returns:
- the updated value, null in case they were not identical
-
updateAmounts
public void updateAmounts(boolean keepPrevious) update the amount of a resource based on the connected resource links Only Condition="Good" is counted if no explicit partioning by condition is specified- Parameters:
keepPrevious- if true, the previous amounts etc. are retained, if false they are completely recalculated from the linkx- Since:
- 2011.1.15 note the change of interface. The prior usage of previousamount was inheritently flawed. Update note: if you used a previousAmount!=0, you probably want to use keepPrevious=false whereas a 0 value retains the orignal value (leepPrevious=true)
-
getChildElementVector
public VElement getChildElementVector(String element, String nameSpaceURI, JDFAttributeMap mAttrib, boolean bAnd, int maxSize, boolean bResolveTarget) Gets all children from the actual element matching the given conditions also get the non-overwritten elements in the parents for partitioned resources- Overrides:
getChildElementVectorin classJDFElement- Parameters:
element- elementname you are searching fornameSpaceURI- nameSpace you are searching formAttrib- attributes you are lokking forbAnd- if true, a child is only added if it has all attributes specified in Attributes mAttribmaxSize- maximum size of the element vectorbResolveTarget- if true, IDRef elements are followed, dummy at this level but needed in JDFElement- Returns:
- VElement - vector with all found elements
- See Also:
-
getImplicitPartitions
Gets a list of all partition keys that this resource may be implicitly partitioned by, e.g. RunIndex for RunList...
gets overridden in subclasses- Returns:
- Vector of EnumPartIDKey
-
isPartitioningCompatible
Tests if the given resources are compatible regarding their partitioning. The resources are compatible if the PartIDKeys for the common start sequence of the PartIDKeys vectors are the same. The resources are not compatible if one has PartIDKeys and the other not.- Parameters:
other- the other resource to check.- Returns:
- boolean -
trueif partitioning of the other resource is compatible with this resource.
-
isPartitioningCompatible
Tests if the resource is compatible with the given partition keys. The resource is compatible if all PartIDKeys in vsPartitions are contained in this, regardless of sequence The resource is not compatible if one has PartIDKeys and the other not.- Parameters:
vsPartitions- the given partition keys to compare- Returns:
- boolean -
trueif partitioning is compatible with this resource.
-
isSpawnAllowed
public boolean isSpawnAllowed()Tests if a spawn of the given partition of the resource is allowed (by means of the JDF specification).- Returns:
- boolean - true if spawn is allowed.
-
getCreateContact
Gets of 'this' child Contact element, optionally creates it, if it doesn't exist.- Returns:
- JDFContact - the matching Contact element
-
getContact
Gets of 'this' an existing child Contact element- Returns:
- JDFContact the matching Contact element
-
appendContact
Appends new Contact element to the end of 'this'- Returns:
- JDFContact - newly created child Contact element
-
getCreateLocationElement
Gets of 'this' child Location element, optionally creates it, if it doesn't exist.- Returns:
- JDFLocation - the matching Location element
-
getLocationElement
Gets of 'this' an existing child Location element- Returns:
- JDFLocation - element Location
-
appendLocationElement
Appends new child Location element to the end of 'this'- Returns:
- JDFLocation - newly created child Location element
-
createSourceResource
create a sourceresource element that pints to source- Parameters:
source- the resource to reference- Returns:
- JDFSourceResource - the element
-
appendSourceResource
appends a new SourceResource element- Returns:
- JDFSourceResource - the new sourceresource
-
getSourceResource
gets an existing SourceResource element- Parameters:
i- the i'th sourceResource to get, 0=first etc.- Returns:
- JDFSourceResource - the sourceresource
-
getCreateIdentificationField
Gets of 'this' the iSkip-th IdentificationField element, optionally creates it, if it doesn't exist. If iSkip is more than one larger than the number of elements, only one will be created and appended.- Parameters:
iSkip- number of child IdentificationField elements to skip- Returns:
- JDFIdentificationField - the matching IdentificationField element default: getIdentificationField(0)
-
getIdentificationField
Gets of 'this' the iSkip-th child IdentificationField element- Parameters:
iSkip- number of child IdentificationField elements to skip, default=0- Returns:
- JDFIdentificationField - the matching IdentificationField element
-
appendIdentificationField
Appends new child IdentificationField element to the end of 'this'- Returns:
- JDFIdentificationField - newly created child IdentificationField element
-
getIdenticalMap
return the PartMap of ./Identical/Part, or null if it does not exist- Returns:
- JDFAttributeMapthe - map of the part in the identical element
-
getIdentical
get the identical element,- Returns:
- JDFIdentical - the identical element, null if noen exists
-
getIdenticalTarget
get the target of the identical element, this if no identical exists- Returns:
- JDFResource - the resource referenced by the identical element, this resource if no identical exists
-
getCreateIdentical
get or create the identical element,- Returns:
- JDFIdentical - the identical element
-
appendIdentical
append an identical element,- Returns:
- JDFIdentical - the identical element
- Throws:
JDFException- if an Identical already exists
-
setIdentical
Sets the 1st-nth element as identical to the 0th elemennt ov vPartMap i.e. the partition leaves that match vPartMap[1]...vPartMap[size-1] are set identical to vPartMap[0]- Parameters:
vPartMap- VJDFAttributeMap to correspond to
-
setIdentical
Appends new child Identifical element that refers to target also removes all subelements and attributes If an identical already exists, the part element is overwritten- Parameters:
target- the resource leaf that this leaf should reference as identical
-
getCreateQualityControlResult
Gets of 'this' the iSkip-th QualityControlResult element, optionally creates it, if it doesn't exist. If iSkip is more than one larger that the number of elements, only one will be created and appended.- Parameters:
iSkip- number of child QualityControlResult elements to skip- Returns:
- JDFQualityControlResult - the matching QualityControlResult element
-
getQualityControlResult
Gets of 'this' the iSkip-th child QualityControlResult element- Parameters:
iSkip- number of child QualityControlResult elements to skip, default=0- Returns:
- JDFQualityControlResult the matching QualityControlResult element
-
appendQualityControlResult
Appends new child QualityControlResult element to the end of 'this'- Returns:
- JDFQualityControlResult - newly created child QualityControlResult element
-
getUpdate
Deprecated.updates never really took off in JDFGets of 'this' the iSkip-th child Update element- Parameters:
iSkip- number of child Update elements to skip- Returns:
- JDFResource the matching Resource Update element
-
getUpdate
Deprecated.updates never really took off in JDFGets of 'this' child Update element with an appropriate UpdateID- Parameters:
updateID- UpdateID of the element to get- Returns:
- JDFResource the matching Update element
-
getUpdateVector
Deprecated.updates never really took off in JDFGets of 'this' a vector of all Update elements- Returns:
- VElement vector of all Resource Update elements in 'this'
-
removeUpdate
Deprecated.updates never really took off in JDFRemoves of 'this' child Update element with an appropriate UpdateID- Parameters:
updateID- UpdateID of the element to remove
-
removeUpdate
Deprecated.updates never really took off in JDFRemoves of 'this' the iSkip-th child Update element- Parameters:
iSkip- number of child Update elements to skip
-
appendUpdate
Deprecated.updates never really took off in JDFAppends to 'this' a resource Update element with an appropriate UpdateID- Parameters:
updateID- updateID of the new Update element- Returns:
- JDFResource newly created Resource Update element
- Throws:
JDFException- if Update element with such ID already exists
-
numUpdates
Deprecated.updates never really took off in JDFGets of 'this' the number of child Update elements- Returns:
- int - number of Update elements in 'this'
-
hasUpdate
Deprecated.updates never really took off in JDFTests, whether in 'this' any child Update elements already exist- Returns:
- boolean - true, if 'this' has already one or more Update elements
-
getUpdateName
Deprecated.updates never really took off in JDFGets the qualified node name of resource Update based on 'this'- Returns:
- String - the mangled node name
-
setAgentName
Sets attribute AgentName- Parameters:
value- the value to set the attribute to
-
getAgentName
Gets string attribute AgentName- Returns:
- String - the attribute value
-
setAgentVersion
Sets attribute AgentVersion- Parameters:
value- the value to set the attribute to
-
getAgentVersion
Gets string attribute AgentVersion- Returns:
- String the - attribute value
-
setAlternateBrand
Sets attribute AlternateBrand- Parameters:
value- value to set the attribute to
-
getAlternateBrand
Gets string attribute AlternateBrand- Returns:
- String - the attribute value
-
setAmount
public void setAmount(double amount) Sets attribute Amount- Parameters:
amount- value to set the attribute to
-
getAmount
public double getAmount()Gets double attribute Amount- Returns:
- double - the attribute value
-
setAmountProduced
public void setAmountProduced(double value) Sets attribute AmountProduced- Parameters:
value- value to set the attribute to
-
getAmountProduced
public double getAmountProduced()Gets double attribute AmountProduced- Returns:
- double - the attribute value
-
setAmountRequired
public void setAmountRequired(double value) Sets attribute AmountRequired- Parameters:
value- value to set the attribute to
-
getAmountRequired
public double getAmountRequired()Gets double attribute AmountRequired- Returns:
- double - the attribute value
-
setAuthor
Sets attribute Author- Parameters:
value- the value to set the attribute to
-
getAuthor
Gets string attribute Author- Returns:
- String - the attribute value
-
setBatchID
Sets attribute BatchID- Parameters:
value- value to set the attribute to
-
getBatchID
Gets string attribute BatchID- Returns:
- String - the attribute value
-
setBinderySignatureName
Sets attribute BinderySignatureName- Parameters:
value- the value to set the attribute to
-
getBinderySignatureName
Gets string attribute BinderySignatureName- Returns:
- String - the attribute value
-
setBlockName
Sets attribute BlockName- Parameters:
value- the value to set the attribute to
-
getBlockName
Gets string attribute BlockName- Returns:
- String - the attribute value
-
setBrand
Sets attribute Brand- Parameters:
value- value to set the attribute to
-
getBrand
Gets string attribute Brand- Returns:
- String - the attribute value
-
setUnit
-
getUnitEnum
- Returns:
-
setBundleItemIndex
Sets attribute BundleItemIndex- Parameters:
value- the value to set the attribute to
-
getBundleItemIndex
Gets range attribute BundleItemIndex- Returns:
- JDFIntegerRangeList - the attribute value
-
setCatalogDetails
Sets attribute CatalogDetails- Parameters:
value- the value to set the attribute to
-
getCatalogDetails
Gets string attribute CatalogDetails- Returns:
- String - the attribute value
-
setCatalogID
Sets attribute CatalogID- Parameters:
value- the value to set the attribute to
-
getCatalogID
Gets string attribute CatalogID- Returns:
- String - the attribute value
-
setCellIndex
Sets attribute CellIndex- Parameters:
value- the value to set the attribute to
-
getCellIndex
Gets range attribute CellIndex- Returns:
- JDFIntegerRangeList - the attribute value
-
setCondition
Sets attribute Condition- Parameters:
value- the value to set the attribute to
-
getCondition
Gets string attribute Condition- Returns:
- String - the attribute value
-
setDocCopies
Sets attribute DocCopies- Parameters:
value- the value to set the attribute to
-
getDocCopies
Gets range attribute DocCopies- Returns:
- JDFIntegerRangeList the attribute value
-
setDocIndex
Sets attribute DocIndex- Parameters:
value- the value to set the attribute to
-
getDocIndex
Gets range attribute DocIndex- Returns:
- JDFIntegerRangeList - the attribute value
-
setDeliveryUnit
Sets attribute DeliveryUnit- Parameters:
iUnit- a value between 0 and 9 to set DeliveryUnitvalue- the value to set the attribute to
-
getDeliveryUnit
Gets attribute DeliveryUnit- Parameters:
iUnit- a value between 0 and 9 to set DeliveryUnit- Returns:
- String - the attribute value
-
setDocRunIndex
Sets attribute DocRunIndex- Parameters:
value- the value to set the attribute to
-
getDocRunIndex
Gets range attribute DocRunIndex- Returns:
- JDFIntegerRangeList the attribute value
-
setDocSheetIndex
Sets attribute DocSheetIndex- Parameters:
value- the value to set the attribute to
-
getDocSheetIndex
Gets range attribute DocSheetIndex- Returns:
- JDFIntegerRangeList - the attribute value
-
setFountainNumber
public void setFountainNumber(int value) Sets attribute FountainNumber- Parameters:
value- the value to set the attribute to
-
getFountainNumber
public int getFountainNumber()Gets integer attribute FountainNumber- Returns:
- int - the attribute value
-
setItemNames
Sets attribute ItemNames- Parameters:
value- the value to set the attribute to
-
getItemNames
Gets string attribute ItemNames- Returns:
- String - the attribute value
-
setLayerIDs
Sets attribute LayerIDs- Parameters:
value- the value to set the attribute to
-
getLayerIDs
Gets range attribute LayerIDs- Returns:
- JDFIntegerRangeList - the attribute value
-
setLocation
Sets attribute Location- Parameters:
value- the value to set the attribute to
-
getLocation
Gets string attribute Location- Returns:
- - String the attribute value
-
setLocked
public void setLocked(boolean value) Sets attribute Locked- Parameters:
value- the value to set the attribute to
-
getLocked
public boolean getLocked()Gets boolean attribute Locked; defaults to false.- Returns:
- boolean the attribute value
-
setNoOp
public void setNoOp(boolean value) Sets attribute NoOp- Parameters:
value- the value to set the attribute to
-
getNoOp
public boolean getNoOp()Gets boolean attribute NoOp; defaults to false- Returns:
- boolean - the attribute value
-
setOption
Sets attribute Option- Parameters:
value- the value to set the attribute to
-
getOption
Gets string attribute Option- Returns:
- String - the attribute value
-
setPageNumber
Sets attribute PageNumber- Parameters:
value- the value to set the attribute to
-
getPageNumber
Gets range attribute PageNumber- Returns:
- JDFIntegerRangeList - the attribute value
-
addPartIDKey
Adds a new PartIDKey to the root first checks for existence- Parameters:
partType- new PartIDKey to add- Throws:
JDFException- if here is an attempt to add implicit partition
-
setPartIDKey
-
getParentPartition
get the intermediate or root partition of this, null if we are the root- Returns:
-
getPartIDKeys
Gets a list of all valid part keys for this resource- Returns:
- VString - list of all PartIDKeys
-
getPartIDKeyList
Gets a list of all valid part keys for this resource- Returns:
- VString - list of all PartIDKeys
-
setPartUsage
Sets attribute PartUsage- Parameters:
value- enumeration value of the attribute PartUsage to be set
-
setPartUsage
Sets attribute PartUsage- Parameters:
value- enumeration value of the attribute PartUsage to be set
-
setUnpartitiondImplicit
public static void setUnpartitiondImplicit(boolean bUnpartitiondImplicit) if set to true, the default @PartUsage of unpartitioned resources is Implicit. Note: this is NOT according to the specification since the Specification defaults PartUsage to Explicit for all Resources.- Parameters:
bUnpartitiondImplicit- the bUnpartitiondImplicit to set
-
getPartUsage
Gets typesafe enumerated value of attribute PartUsage; defaults to PartUsage_Explicit unless setUnpartitiondImplicit(true) has been called and the resource is not partitioned, in which case PartUsage_Implicit is called. Achtung - mieser Balkon!- Returns:
- EnumPartUsage - attribute enumeration value
-
getEPartUsage
Gets typesafe enumerated value of attribute PartUsage; defaults to PartUsage_Explicit unless setUnpartitiondImplicit(true) has been called and the resource is not partitioned, in which case PartUsage_Implicit is called. Achtung - mieser Balkon!- Returns:
- EnumPartUsage - attribute enumeration value
-
setLotControl
Sets attribute PartUsage- Parameters:
value- enumeration value of the attribute PartUsage to be set
-
getLotControl
Gets typesafe enumerated value of attribute LotControl; defaults to LotControl_Explicit- Returns:
- EnumLotControl - attribute enumeration value
-
setPartVersion
Sets attribute PartVersion- Parameters:
value- the value to set the attribute to
-
getPartVersion
Gets string attribute PartVersion- Returns:
- String - the attribute value
-
setPipeID
Sets attribute PipeID- Parameters:
value- the value to set the attribute to
-
getPipeID
Gets string attribute PipeID- Returns:
- String - the attribute value
-
hasPipePartIDKey
Tests, if this leaf has a PipePartIDKey as specified by key- Parameters:
key- the PipePartIDKey attribute name- Returns:
- boolean - true, if key exists in this leaf or below
- Throws:
JDFException- if the specified key is illegal
-
consistentPipePartIDKeys
Tests, if this leaf has a consistent PartIDKey as specified by key- Parameters:
key- the PipePartIDKey attribute name- Returns:
- boolean - true, if key exists in this leaf is in PipePartIDKeys
-
containsData
public boolean containsData()- Returns:
- true if anything but id, class etc are specified.
-
addPipePartIDKey
Adds a new PipePartIDKey to the root, first checks for existence- Parameters:
partType- new PipePartIDKey to add- Throws:
JDFException- if here is an attempt to add implicit partition
-
setPipePartIDKey
Sets the value of attibute, specified by key- Parameters:
key- the PipePartIDKey attribute namevalue- the value to set key to
-
getPipePartIDKeysEnum
Gets a list of all valid pipe part key enums for this resource- Returns:
- Vector - list of all PipePartIDKey enums
-
getPipePartIDKeys
Deprecated.Gets a list of all valid pipe part keys for this resource- Returns:
- VString list of all PipePartIDKeys
-
setPipeProtocol
Set attribute PipeProtocol- Parameters:
value- the value to set the attribute to
-
getPipeProtocol
Get string attribute PipeProtocol- Returns:
- String - the attribute value
-
setPipeURL
Sets attribute PipeURL- Parameters:
value- the value to set the attribute to
-
getPipeURL
Gets string attribute PipeURL- Returns:
- String - the attribute value
-
setPreflightRule
Sets attribute PreflightRule- Parameters:
value- the value to set the attribute to
-
getPreflightRule
Gets string attribute PreflightRule- Returns:
- String the attribute value
-
setPreviewType
Sets attribute PreviewType- Parameters:
value- enumeration value of attribute PreviewType to be set
-
getPreviewType
Gets typesafe enumerated value of attribute PreviewType- Returns:
- JDFPart.EnumPreviewType - the enumeration value of attribute
-
setProductID
Sets attribute ProductID- Parameters:
value- value to set the attribute to
-
getProductID
Gets string attribute ProductID- Returns:
- String - the attribute value
-
setResourceClass
Sets attribute Class corresponds to C++ JDFResource::SetClass()- Parameters:
value- enumeration value of the attribute Class to be set- Throws:
JDFException- if here is attempt to set value as Class_Unknown or invalid class value
-
getResourceClass
Gets typesafe enumerated value of attribute Class corresponds to C++ JDFResource::GetClass(), getClass() already exists in Java- Returns:
- EnumResourceClass - attribute enumeration value
-
validResourceClass
Typesafe attribute validation of Class corresponds to C++ JDFResource::ValidClass()- Parameters:
level- level of attribute validation- Returns:
- boolean - true, if valid
-
validClass
public final boolean validClass()Typesafe attribute validation of Class corresponds to C++ JDFResource::ValidClass()- Returns:
- boolean true, if valid
-
getValidClass
get the fixed class for this resource,- Returns:
- EnumResourceClass - the class of this resource, null if no fixed class is known
-
setGrossWeight
public void setGrossWeight(double value) Sets attribute GrossWeight- Parameters:
value- value to set the attribute to
-
getGrossWeight
public double getGrossWeight()Gets double attribute GrossWeight- Returns:
- double - the attribute value
-
setResourceWeight
public void setResourceWeight(double value) Sets attribute ResourceWeight- Parameters:
value- value to set the attribute to
-
getResourceWeight
public double getResourceWeight()Gets double attribute ResourceWeight- Returns:
- double - the attribute value
-
setRibbonName
Sets attribute RibbonName- Parameters:
value- the value to set the attribute to
-
getManufacturer
Gets string attribute Manufacturer- Returns:
- String the - attribute value
-
setManufacturer
Sets attribute Manufacturer- Parameters:
value- the value to set the attribute to
-
getRibbonName
Gets string attribute RibbonName- Returns:
- String the - attribute value
-
setRun
Sets attribute Run- Parameters:
value- the value to set the attribute to
-
getRunSet
Gets string attribute RunSet- Returns:
- String - the attribute value
-
setRunSet
Sets attribute RunSet- Parameters:
value- the value to set the attribute to
-
getRun
Gets string attribute Run- Returns:
- String - the attribute value
-
setRunIndex
Sets attribute RunIndex- Parameters:
value- the value to set the attribute to
-
getRunIndex
Gets range attribute RunIndex- Returns:
- JDFIntegerRangeList the attribute value
-
setRunPage
public void setRunPage(int value) Sets attribute RunPage- Parameters:
value- the value to set the attribute to
-
getRunPage
public int getRunPage()Gets integer attribute RunPage- Returns:
- int - the attribute value
-
setRunTags
Sets attribute RunTags- Parameters:
value- the value to set the attribute to
-
getRunTags
Gets NMTOKENS attribute RunTags- Returns:
- VString - the value of the attribute
-
setSectionIndex
Sets attribute SectionIndex- Parameters:
value- the value to set the attribute to
-
getSectionIndex
Gets range attribute SectionIndex- Returns:
- JDFIntegerRangeList - the attribute value
-
setSeparation
Sets attribute Separation- Parameters:
value- the value to set the attribute to
-
getSeparation
Gets string attribute Separation- Returns:
- String - the attribute value
-
setSetDocIndex
Sets attribute SetDocIndex- Parameters:
value- the value to set the attribute to
-
getSetDocIndex
Gets range attribute SetDocIndex- Returns:
- JDFIntegerRangeList - the attribute value
-
setSetIndex
Sets attribute SetIndex- Parameters:
value- the value to set the attribute to
-
getSetIndex
Gets range attribute SetIndex- Returns:
- JDFIntegerRangeList - the attribute value
-
setSetRunIndex
Sets attribute SetRunIndex- Parameters:
value- the value to set the attribute to
-
getSetRunIndex
Gets range attribute SetRunIndex- Returns:
- JDFIntegerRangeList - the attribute value
-
setSetSheetIndex
Sets attribute SetSheetIndex- Parameters:
value- the value to set the attribute to
-
getSetSheetIndex
Gets range attribute SetSheetIndex- Returns:
- JDFIntegerRangeList - the attribute value
-
setSheetIndex
Sets attribute SheetIndex- Parameters:
value- the value to set the attribute to
-
getSheetIndex
Gets range attribute SheetIndex- Returns:
- JDFIntegerRangeList - the attribute value
-
setSheetName
Sets attribute SheetName- Parameters:
value- the value to set the attribute to
-
getSheetName
Gets string attribute SheetName- Returns:
- String - the attribute value
-
setSide
Sets attribute Side- Parameters:
value- enumeration value of attribute Side to be set
-
getSide
Gets typesafe enumerated value of attribute Side- Returns:
- JDFPart.EnumSide - the enumeration value of the attribute
-
setSignatureName
Sets attribute SignatureName- Parameters:
value- the value to set the attribute to
-
getSignatureName
Gets string attribute SignatureName- Returns:
- String - the attribute value
-
getStationName
Gets string attribute StationName- Returns:
- String - the attribute value
-
setStationName
Sets attribute StationName- Parameters:
value- the value to set the attribute to
-
setSortAmount
public void setSortAmount(boolean value) Sets attribute SortAmount- Parameters:
value- value to set the attribute to
-
getSortAmount
public boolean getSortAmount()Gets boolean attribute SortAmount- Returns:
- boolean - the attribute value
-
setSorting
Sets attribute Sorting- Parameters:
value- the value to set the attribute to
-
getSorting
Gets range attribute Sorting- Returns:
- JDFIntegerRangeList - the attribute value
-
appendSpawnIDs
Appends new SpawnID token ('value') to the list of values of SpawnIDs attribute, if it is not yet in the list- Parameters:
value- the SpawnID token to append
-
removeFromSpawnIDs
Removes SpawnID token ('value') from the list of values of SpawnIDs attribute, if it is in the list- Parameters:
value- the SpawnID token to remove from the NMTOKENS list- Returns:
- int - the number of removed tokens
-
getSpawnIDs
Gets string attribute SpawnIDs- Parameters:
bInherit- if true, searches through all leaves, else searches only this leaf/node- Returns:
- VString the vector of SpawnIDs
-
setSpawnIDs
Sets attribute SpawnIDs- Parameters:
vStr- the value to set the attribute to
-
setSpawnIDs
Sets attribute SpawnIDs- Parameters:
spawndID- the value to set the attribute to
-
setSpawnStatus
Sets attribute SpawnStatus- Parameters:
s- enumeration value of the attribute SpawnStatus to be set
-
getSpawnStatus
Gets typesafe enumerated value of attribute SpawnStatus- Returns:
- EnumSpawnStatus - attribute enumeration value
-
setStatus
Deprecated.use setResStatus(value, false)Sets attribute Status- Parameters:
value- enumeration value of the attribute Status to be set
-
setStatus
Deprecated.use setResStatus(value, bCleanLeaves)Sets attribute Status- Parameters:
value- enumeration value of the attribute Status to be setbCleanLeaves- if true, remove Status attribute from any child leaves below this
-
getStatus
Deprecated.use getResStatus(bRecurseRefs)Gets typesafe enumerated value of attribute Status- Parameters:
bRecurseRefs- if bRecurseRefs is set, also recurse into all resources linked by rRefs and return the minimum status- Returns:
- EnumResStatus attribute enumeration value
-
setResStatus
Sets attribute Status- Parameters:
value- enumeration value of the attribute Status to be setbCleanLeaves- if true, remove Status attribute from any child leaves below this
-
setResStatus
Sets attribute Status- Parameters:
value- enumeration value of the attribute Status to be setbCleanLeaves- if true, remove Status attribute from any child leaves below this
-
getResStatus
Gets typesafe enumerated value of attribute Status- Parameters:
bRecurseRefs- if bRecurseRefs is set, also recurse into all resources linked by rRefs and return the minimum status- Returns:
- EnumResStatus - attribute enumeration value
-
getStatusFromLeaves
Gets the minimum typesafe enumerated value of attribute Status from the value of all leaves- Parameters:
bAll- if true, also evaluate intermediate partitions, else leaves only- Returns:
- EnumResStatus - the minimum Status enumeration value
-
setTileID
Sets attribute TileID- Parameters:
value- the value to set the attribute to
-
getTileID
Gets XYPair attribute TileID- Returns:
- JDFXYPair - the attribute value
-
setUnit
Sets attribute Unit- Parameters:
value- value to set the attribute to
-
getUnit
Gets string attribute Unit- Returns:
- String - the attribute value
-
setUpdateID
Sets attribute UpdateID- Parameters:
value- value to set the attribute to
-
getUpdateID
Gets string attribute UpdateID- Returns:
- String - the attribute value
-
setWebName
Sets attribute WebName- Parameters:
value- the value to set the attribute to
-
getWebName
Gets string attribute WebName- Returns:
- String - the attribute value
-
setWebProduct
Sets attribute WebProduct- Parameters:
value- the value to set the attribute to
-
getWebProduct
Gets string attribute WebProduct- Returns:
- String the attribute value
-
setWebSetup
Sets attribute WebSetup- Parameters:
value- the value to set the attribute to
-
getWebSetup
Gets string attribute WebSetup- Returns:
- String the attribute value
-
createPartitions
Recursively adds the partition leaves defined in vPartMap- Parameters:
vPartMap- the vector of maps of part keysvPartIDKeys- the vector of partIDKeys strings of the resource. If empty (the default) the Resource PartIDKeys attribute is used- Returns:
- VElement - vector of newly created partitions
- Throws:
JDFException- if there are in the partMap not matching partitionsJDFException- if there is an attempt to fill non-matching partIDKeysJDFException- if by adding of last partition key there is either non-continuous partmap or left more than one key
-
isValid
Validator of 'this'- Overrides:
isValidin classJDFElement- Parameters:
level- the valdation level- Returns:
- boolean - true, if 'this' is valid
-
getInvalidAttributes
public VString getInvalidAttributes(JDFElement.EnumValidationLevel level, boolean bIgnorePrivate, int nMax) Typesafe validator. Gets a vector of invalid attributes- Overrides:
getInvalidAttributesin classJDFElement- Parameters:
level- flag whether incomplete elements are validbIgnorePrivate- if true, do not validate attributes in private name spacesnMax- maximum size of the returned vector. Stop validation after nMax invalid attributes- Returns:
- vWString a vector of invalid attributes
-
deleteUnLinked
public boolean deleteUnLinked()deletes this if it is no longer linked by either resource refs or resource links- Returns:
- true if this has been deleted
-
getAutoAgent
public static boolean getAutoAgent()- Returns:
- the autoAgent
-
setAutoAgent
public static void setAutoAgent(boolean _autoAgent) - Parameters:
_autoAgent- the autoAgent to set
-
matchesString
check whether this resource matches a named resource string- Parameters:
namedResLink-- Returns:
-
getAutoSubElementClass
public static boolean getAutoSubElementClass()if true, subelements are initialized with a class attribute- Returns:
-
setAutoSubElementClass
public static void setAutoSubElementClass(boolean autoSubElementClass) if true, subelements are initialized with a class attribute- Parameters:
autoSubElementClass-
-
getLeaf
get a leaf, null if index out of bounds- Parameters:
i-- Returns:
-
moveElement
Description copied from class:KElementMoves src node (including all attributes and subelements) from its parent node into 'this' and inserts it in front of beforeChild, if it exists. Otherwise appends src to 'this'.
If src isnull, an empty KElement is returned.
src is removed from its parent node. if the actual document owner is the same as the document owner of src, src is appended to 'this' If the documents are different, then src is appended to 'this' in the actual document.default: moveElement(src, null)
- Overrides:
moveElementin classKElement- Parameters:
src- node to move.beforeChild- child of 'this' to insert src before. If beforeChild is null, src is appended to 'this'- Returns:
- KElement src element after moving, null if src is null
-
copyElement
Description copied from class:KElementCopies src node (including all attributes and subelements) and inserts the copy into 'this' in front of beforeChild, if it exists. Otherwise appends src node to 'this'.default: copyElement(src, null)
- Overrides:
copyElementin classKElement- Parameters:
src- node to copy.beforeChild- child of 'this' to insert src before. If null, src is appended- Returns:
- KElement the copied element,
nullif src isnull.
-
replaceElement
Description copied from class:KElementReplaces 'this' with src.
If the actual document is the same as the src document, 'this' is replaced by src.
If the actual document and the src document are different, src is positioned at the position of 'this' in the current document and removed from the old parent document.- Overrides:
replaceElementin classKElement- Parameters:
src- node, that 'this' will be replaced with- Returns:
- KElement the replaced element. If src is null or equal 'this', src is returned.
-
deleteNode
Description copied from class:KElementDeletes itself from its parent- Overrides:
deleteNodein classKElement- Returns:
- KElement - the deleted element, null if this has no parent node
- See Also:
-
mergeElement
Description copied from class:KElementmerge nodes in a way that no duplicate elements are created
attention !! this kills pools !! since elements in kElem overwrite those in *this- Overrides:
mergeElementin classKElement- Parameters:
kElem- the node element to merge with the current nodebDelete- if true KElement kElem will be deleted- Returns:
- KElement the merged node element
-
insertBefore
- Specified by:
insertBeforein interfaceNode- Overrides:
insertBeforein classKElement- Throws:
DOMException- See Also:
-
copyInto
Description copied from class:JDFElementcopies a node into this, ignoring identical node names i.e. duplicating elements- Overrides:
copyIntoin classJDFElementbRemove- if true, remove existing information, else retain and overwrite / merge- Returns:
- this
- See Also:
-
appendElement
- Overrides:
appendElementin classJDFElement- Parameters:
elementName- the elementname with namespace prefix "xyz:abc"nameSpaceURI- the namespace of the element "null" is valid if the namespace was specified already above. The method will lookup the namespace for you. Performance wise its better to add it nevertheless.- Returns:
- KElement the appended element or null
- See Also:
-
setAttribute
Description copied from class:KElementMother of all Attribute setters
Sets a new attribute. If an attribute with that name is already present in the element, its value is changed to be that of the value parameter. This value is a simple string; it is not parsed as it is being set. So any markup (such as syntax to be recognized as an entity reference) is treated as literal text, and needs to be appropriately escaped by the implementation when it is written out. In order to assign an attribute value that contains entity references, the user must create an Attr node plus any Text and EntityReference nodes, build the appropriate subtree, and use setAttributeNode to assign it as the value of an attribute. To set an attribute with a qualified name and namespace URI, use the setAttributeNS method.- Overrides:
setAttributein classKElement- Parameters:
key- the qualified name of the attribute to create or alter.value- the value to set in string form. If null, the attribute is removednameSpaceURI- the namespace the element is in- See Also:
-