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:
java.io.Serializable,java.lang.Cloneable,IStreamWriter,org.w3c.dom.Element,org.w3c.dom.ElementTraversal,org.w3c.dom.events.EventTarget,org.w3c.dom.Node,org.w3c.dom.NodeList,org.w3c.dom.TypeInfo
- Direct Known Subclasses:
JDFArtDeliveryType,JDFAutoAddress,JDFAutoAdhesiveBindingParams,JDFAutoand,JDFAutoApprovalParams,JDFAutoApprovalSuccess,JDFAutoAssembly,JDFAutoAssetListCreationParams,JDFAutoAutomatedOverPrintParams,JDFAutoBarcodeCompParams,JDFAutoBarcodeReproParams,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,JDFAutoDeviceMark,JDFAutoDeviceNSpace,JDFAutoDieLayout,JDFAutoDieLayoutProductionParams,JDFAutoDigitalDeliveryParams,JDFAutoDigitalMedia,JDFAutoDigitalPrintingParams,JDFAutoDividingParams,JDFAutoDurationEvaluation,JDFAutoDurationState,JDFAutoElementColorParams,JDFAutoEmbossingParams,JDFAutoEmployee,JDFAutoEndSheetGluingParams,JDFAutoEnumerationEvaluation,JDFAutoEnumerationState,JDFAutoExposedMedia,JDFAutoExternalImpositionTemplate,JDFAutoFeedingParams,JDFAutoFileSpec,JDFAutoFitPolicy,JDFAutoFold,JDFAutoFoldingParams,JDFAutoFontParams,JDFAutoFontPolicy,JDFAutoFormatConversionParams,JDFAutoGangPreparationParams,JDFAutoGatheringParams,JDFAutoGlueApplication,JDFAutoGlueLine,JDFAutoGluingParams,JDFAutoHeadBandApplicationParams,JDFAutoHole,JDFAutoHoleLine,JDFAutoHoleList,JDFAutoHoleMakingParams,JDFAutoIdentificationField,JDFAutoIDPrintingParams,JDFAutoImageCompressionParams,JDFAutoImageEnhancementParams,JDFAutoImageReplacementParams,JDFAutoImageSetterParams,JDFAutoInk,JDFAutoInkZoneCalculationParams,JDFAutoInkZoneProfile,JDFAutoInsertingParams,JDFAutoInsertSheet,JDFAutoIntegerEvaluation,JDFAutoIntegerState,JDFAutoIntentResource,JDFAutoInterpretedPDLData,JDFAutoInterpretingParams,JDFAutoIsPresentEvaluation,JDFAutoJacketingParams,JDFAutoJobField,JDFAutoLabelingParams,JDFAutoLaminatingParams,JDFAutoLayout,JDFAutoLayoutElement,JDFAutoLayoutElementProductionParams,JDFAutoLayoutPreparationParams,JDFAutoLayoutShift,JDFAutoLongitudinalRibbonOperationParams,JDFAutoManualLaborParams,JDFAutoMatrixEvaluation,JDFAutoMatrixState,JDFAutoMedia,JDFAutoMediaSource,JDFAutoMiscConsumable,JDFAutoNameEvaluation,JDFAutoNameState,JDFAutoNodeInfo,JDFAutonot,JDFAutoNumberEvaluation,JDFAutoNumberingParams,JDFAutoNumberState,JDFAutoObjectResolution,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
public class JDFResource extends JDFElement
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJDFResource.EnumAmountMergeEnumeration for the policy of merging the amounts from ResourceLinksstatic classJDFResource.EnumLotControlEnumeration for attribute Statusstatic classJDFResource.EnumPartIDKeyEnumeration for partition keysstatic classJDFResource.EnumPartUsageEnumeration for attribute PartUsagestatic classJDFResource.EnumResourceClassEnumeration for attribute Classstatic classJDFResource.EnumResStatusEnumeration for attribute Statusstatic classJDFResource.EnumSpawnStatusEnumeration for attribute SpawnStatusclassJDFResource.PartitionGetterDeprecated.- use the local file type-
Nested classes/interfaces inherited from class org.cip4.jdflib.core.JDFElement
JDFElement.EnumBoolean, JDFElement.EnumNamedColor, JDFElement.EnumNodeStatus, JDFElement.EnumOrientation, JDFElement.EnumPoolType, JDFElement.EnumSeparation, JDFElement.EnumSettingsPolicy, JDFElement.EnumValidationLevel, JDFElement.EnumVersion, JDFElement.EnumXYRelation, JDFElement.eUnit
-
Nested classes/interfaces inherited from class org.cip4.jdflib.core.KElement
KElement.SimpleElementNameComparator, KElement.SimpleNodeComparator, KElement.SingleAttributeComparator, KElement.SingleXPathComparator
-
-
Field Summary
-
Fields inherited from class org.apache.xerces.dom.ParentNode
firstChild, fNodeListCache, ownerDocument
-
Fields inherited from class org.apache.xerces.dom.NodeImpl
DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_IS_CONTAINED, DOCUMENT_POSITION_PRECEDING, ELEMENT_DEFINITION_NODE, FIRSTCHILD, flags, HASSTRING, ID, IGNORABLEWS, NORMALIZED, OWNED, ownerNode, READONLY, SPECIFIED, SYNCCHILDREN, SYNCDATA, TREE_POSITION_ANCESTOR, TREE_POSITION_DESCENDANT, TREE_POSITION_DISCONNECTED, TREE_POSITION_EQUIVALENT, TREE_POSITION_FOLLOWING, TREE_POSITION_PRECEDING, TREE_POSITION_SAME_NODE
-
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
-
-
Constructor Summary
Constructors Constructor Description JDFResource(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, java.lang.String qualifiedName)Constructor for JDFResourceJDFResource(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, java.lang.String myNamespaceURI, java.lang.String qualifiedName)Constructor for JDFResourceJDFResource(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, java.lang.String myNamespaceURI, java.lang.String qualifiedName, java.lang.String myLocalName)Constructor for JDFResource
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddPartIDKey(JDFResource.EnumPartIDKey partType)Adds a new PartIDKey to the root first checks for existenceJDFResourceaddPartition(JDFResource.EnumPartIDKey partType, java.lang.String value)Adds a new part to this node, also handles PartIDKeys in the root etc.JDFResourceaddPartition(JDFResource.EnumPartIDKey partType, org.apache.commons.lang.enums.ValuedEnum enumPart)Adds a new part to this node, also handles PartIDKeys in the root etc.VElementaddPartitions(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 existenceJDFContactappendContact()Appends new Contact element to the end of 'this'KElementappendElement(java.lang.String elementName, java.lang.String nameSpaceURI)JDFIdenticalappendIdentical()append an identical element,JDFIdentificationFieldappendIdentificationField()Appends new child IdentificationField element to the end of 'this'JDFLocationappendLocationElement()Appends new child Location element to the end of 'this'JDFQualityControlResultappendQualityControlResult()Appends new child QualityControlResult element to the end of 'this'JDFSourceResourceappendSourceResource()appends a new SourceResource elementvoidappendSpawnIDs(java.lang.String value)Appends new SpawnID token ('value') to the list of values of SpawnIDs attribute, if it is not yet in the listJDFResourceappendUpdate(java.lang.String updateID)Deprecated.updates never really took off in JDFjava.lang.StringbuildXPath(java.lang.String relativeTo, int methCountSiblings)Gets the XPath full tree representation of 'this'voidcleanResourceAttributes()remove any resource specific attribute when making this to an elementvoidclearPartitions()make 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 elementsbooleanconsistentPartIDKeys(JDFResource.EnumPartIDKey key)Tests, 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 keybooleanconsistentPipePartIDKeys(JDFResource.EnumPartIDKey key)Tests, if this leaf has a consistent PartIDKey as specified by keybooleancontainsData()KElementcopyElement(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.KElementcopyInto(KElement src, boolean bRemove)copies a node into this, ignoring identical node names i.e.VElementcreatePartitions(VJDFAttributeMap vPartMap, VString vPartIDKeys)Recursively adds the partition leaves defined in vPartMapJDFSourceResourcecreateSourceResource(JDFResource source)create a sourceresource element that pints to sourceKElementdeleteNode()Deletes itself from its parentbooleandeleteUnLinked()deletes 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)voidexpandLeaf()expand a leaf to contain the data of all intermediate leavesvoidfillSparse()java.lang.StringgetAgentName()Gets string attribute AgentNamejava.lang.StringgetAgentVersion()Gets string attribute AgentVersionjava.lang.StringgetAlternateBrand()Gets string attribute AlternateBranddoublegetAmount()Gets double attribute AmountdoublegetAmountProduced()Gets double attribute AmountProduceddoublegetAmountRequired()Gets double attribute AmountRequiredjava.lang.StringgetAttribute(java.lang.String attrib, java.lang.String nameSpaceURI, java.lang.String def)Gets an attribute value.JDFAttributeMapgetAttributeMap()Get the Attribute Map of the actual element also following inheritanceJDFResourcegetAttributePart(java.lang.String key)Gets the parent element that actually contains the attribute key in a partitioned resourceVElementgetAttributePartVector(java.lang.String key)Gets a unique vector of resource leaf elements that actually contain the attribute keyVStringgetAttributeVector()Gets all local attribute names as an vector of strings.
Is called from KElement.getMissingAttributeVector() as a virtual methodVStringgetAttributeVector_JDFResource()Gets all local attribute names as an vector of stringsjava.lang.StringgetAuthor()Gets string attribute Authorstatic booleangetAutoAgent()static booleangetAutoSubElementClass()if true, subelements are initialized with a class attributejava.lang.StringgetBatchID()Gets string attribute BatchIDjava.lang.StringgetBinderySignatureName()Gets string attribute BinderySignatureNamejava.lang.StringgetBlockName()Gets string attribute BlockNamejava.lang.StringgetBrand()Gets string attribute BrandJDFIntegerRangeListgetBundleItemIndex()Gets range attribute BundleItemIndexjava.lang.StringgetCatalogDetails()Gets string attribute CatalogDetailsjava.lang.StringgetCatalogID()Gets string attribute CatalogIDJDFIntegerRangeListgetCellIndex()Gets range attribute CellIndex<a extends KElement>
java.util.List<a>getChildArrayByClass(java.lang.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 nullVElementgetChildElementVector(java.lang.String element, java.lang.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<a extends KElement>
java.util.Vector<a>getChildrenByClass(java.lang.Class<a> clazz, boolean bRecurse, int nMax)Deprecated.use getChildArrayByClass<A extends KElement>
AgetChildWithAttribute(java.lang.Class<A> clazz, java.lang.String attName, java.lang.String attVal)java.lang.StringgetCondition()Gets string attribute ConditionJDFContactgetContact()Gets of 'this' an existing child Contact elementJDFContactgetCreateContact()Gets of 'this' child Contact element, optionally creates it, if it doesn't exist.KElementgetCreateElement_JDFResource(java.lang.String nodeName, java.lang.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::GetCreateElementJDFIdenticalgetCreateIdentical()get or create the identical element,JDFIdentificationFieldgetCreateIdentificationField(int iSkip)Gets of 'this' the iSkip-th IdentificationField element, optionally creates it, if it doesn't exist.JDFLocationgetCreateLocationElement()Gets of 'this' child Location element, optionally creates it, if it doesn't exist.JDFResourcegetCreatePartition(JDFAttributeMap partMap, VString vPartKeys)Recursively adds the partition leaves defined in partMapJDFResourcegetCreatePartition(JDFResource.EnumPartIDKey key, java.lang.String value, VString vPartIDKeys)Gets the first part that matches key-value if it does not exist, create itJDFQualityControlResultgetCreateQualityControlResult(int iSkip)Gets of 'this' the iSkip-th QualityControlResult element, optionally creates it, if it doesn't exist.VElementgetCreator(boolean bCreate)Gets the creators (bCreate=true) or consumers (bCreate=false) of this resourceJDFResourcegetDeepPart(JDFAttributeMap m, boolean bIncomplete)Deprecated.use the partUsage dependent version insteadJDFResourcegetDeepPart(JDFAttributeMap m, JDFResource.EnumPartUsage partUsage)Gets a matching part from somewhere down there,
returns the closest ancestor of all matching elements within the target vectorjava.lang.StringgetDeliveryUnit(int iUnit)Gets attribute DeliveryUnitJDFResourcegetDirectPartition(int i)java.util.List<? extends KElement>getDirectPartitionArray()java.util.Vector<? extends KElement>getDirectPartitionVector()JDFIntegerRangeListgetDocCopies()Gets range attribute DocCopiesJDFIntegerRangeListgetDocIndex()Gets range attribute DocIndexJDFIntegerRangeListgetDocRunIndex()Gets range attribute DocRunIndexJDFIntegerRangeListgetDocSheetIndex()Gets range attribute DocSheetIndexKElementgetElement(java.lang.String nodeName, java.lang.String nameSpaceURI, int iSkip)same as KElement.getElement, but also follows references and searches parentsintgetFountainNumber()Gets integer attribute FountainNumberdoublegetGrossWeight()Gets double attribute GrossWeightJDFIdenticalgetIdentical()get the identical element,JDFAttributeMapgetIdenticalMap()return the PartMap of ./Identical/Part, or null if it does not existJDFResourcegetIdenticalTarget()get the target of the identical element, this if no identical existsJDFIdentificationFieldgetIdentificationField(int iSkip)Gets of 'this' the iSkip-th child IdentificationField elementprotected java.lang.StringgetIDPrefix()gets a prefix for ID creation for the elementjava.util.Vector<JDFResource.EnumPartIDKey>getImplicitPartitions()Gets a list of all partition keys that this resource may be implicitly partitioned by, e.g.VStringgetInvalidAttributes(JDFElement.EnumValidationLevel level, boolean bIgnorePrivate, int nMax)Typesafe validator.java.lang.StringgetItemNames()Gets string attribute ItemNamesJDFIntegerRangeListgetLayerIDs()Gets range attribute LayerIDsJDFResourcegetLeaf(int i)get a leaf, null if index out of boundsjava.util.List<JDFResource>getLeafArray(boolean bAll)Gets a list of all direct leavesVElementgetLeaves(boolean bAll)Gets a list of all direct leavesVElementgetLinks(java.lang.String linkName)Deprecated.[BLD009] use getLinks(linkName, null)VElementgetLinks(java.lang.String linkName, java.lang.String nameSpaceURI)Gets all elements with name linkName, which contain id/idrefs that point to this resourceVElementgetLinksAndRefs()Deprecated.use getLinksAndRefs(true,true);VElementgetLinksAndRefs(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 @seeLinkRefFinderjava.lang.StringgetLinkString()Gets nodename of a ResourceLink that links to 'this'java.lang.StringgetLocalPartitionKey()get the local partition key of this leafjava.lang.StringgetLocation()Gets string attribute LocationJDFLocationgetLocationElement()Gets of 'this' an existing child Location elementbooleangetLock()Deprecated.[BLD009] use getLockedbooleangetLocked()Gets boolean attribute Locked; defaults to false.JDFResource.EnumLotControlgetLotControl()Gets typesafe enumerated value of attribute LotControl; defaults to LotControl_Explicitjava.lang.StringgetManufacturer()Gets string attribute Manufacturerjava.util.List<JDFResource>getNodesWithSpawnID(java.lang.String spawnID)Gets of 'this' all leaves and intermediate nodes that have an explicit spawnID setbooleangetNoOp()Gets boolean attribute NoOp; defaults to falsejava.lang.StringgetOption()Gets string attribute OptionJDFIntegerRangeListgetPageNumber()Gets range attribute PageNumberJDFResourcegetParentPartition()get the intermediate or root partition of this, null if we are the rootStringArraygetPartIDKeyList()Gets a list of all valid part keys for this resourceVStringgetPartIDKeys()Gets a list of all valid part keys for this resourceJDFResourcegetPartition(JDFAttributeMap m, boolean bIncomplete)Deprecated.use getPartition(JDFAttributeMap m, JDFResource.EnumPartUsage partUsage)JDFResourcegetPartition(JDFAttributeMap m, JDFResource.EnumPartUsage partUsage)Gets the first part that matches mAttributeJDFResourcegetPartition(JDFResource.EnumPartIDKey key, java.lang.String value, boolean bIncomplete)Deprecated.use getPartition(JDFAttributeMap m, JDFResource.EnumPartUsage partUsage)VElementgetPartitionLeafVector(JDFAttributeMap m, JDFResource.EnumPartUsage partUsage)Gets the vector of parts (resource leaves or nodes) that match mAttributejava.util.HashMap<JDFAttributeMap,JDFResource>getPartitionMap()VElementgetPartitionVector(JDFAttributeMap m, boolean bIncomplete)Deprecated.use getPartitionVector(JDFAttributeMap m, EnumPartUsage partUsage)VElementgetPartitionVector(JDFAttributeMap m, JDFResource.EnumPartUsage partUsage)Gets the vector of parts (resource leaves or nodes) that match mAttributeVElementgetPartitionVector(VJDFAttributeMap vm, JDFResource.EnumPartUsage partUsage)Gets the vector of parts (resource leaves or nodes) that match mAttributeVElementgetPartitionVector(JDFResource.EnumPartIDKey key, java.lang.String value, boolean bIncomplete)Deprecated.use getPartitionVector(JDFAttributeMap m, EnumPartUsage partUsage)JDFAttributeMapgetPartMap()Gets a map of all partition key-value pairs for this leaf / node this includes a recursion to the part root; never nullJDFAttributeMapgetPartMap(java.util.List<java.lang.String> partIDKeys)Gets a map of all partition key-value pairs for this leaf / node.VJDFAttributeMapgetPartMapVector(boolean bIntermediate)Gets a vector of maps of all partition attribute key-value pairs for this node and all its childrenJDFResource.EnumPartUsagegetPartUsage()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.VStringgetPartValues(JDFResource.EnumPartIDKey partType)Gets a list of the values for attribute part type within the leavesjava.lang.StringgetPartVersion()Gets string attribute PartVersionjava.lang.StringgetPipeID()Gets string attribute PipeIDVStringgetPipePartIDKeys()Deprecated.java.util.Vector<JDFResource.EnumPartIDKey>getPipePartIDKeysEnum()Gets a list of all valid pipe part key enums for this resourcejava.lang.StringgetPipeProtocol()Get string attribute PipeProtocoljava.lang.StringgetPipeURL()Gets string attribute PipeURLJDFResourcePoolgetPool()Deprecated.[BLD009] use GetResourcePool insteadjava.lang.StringgetPreflightRule()Gets string attribute PreflightRuleJDFAutoPart.EnumPreviewTypegetPreviewType()Gets typesafe enumerated value of attribute PreviewTypejava.lang.StringgetProductID()Gets string attribute ProductIDJDFQualityControlResultgetQualityControlResult(int iSkip)Gets of 'this' the iSkip-th child QualityControlResult elementJDFResource.EnumResourceClassgetResourceClass()Gets typesafe enumerated value of attribute Class corresponds to C++ JDFResource::GetClass(), getClass() already exists in JavaJDFResourcePoolgetResourcePool()Gets the resourcepool that 'this' lives inJDFResourcegetResourceRoot()Gets the root resource of 'this'static JDFResourcegetResourceRoot(KElement elem)Gets the root resource of 'this'doublegetResourceWeight()Gets double attribute ResourceWeightJDFResource.EnumResStatusgetResStatus(boolean bRecurseRefs)Gets typesafe enumerated value of attribute Statusjava.lang.StringgetRibbonName()Gets string attribute RibbonNameVStringgetRootPartAtts()get the list of attributes that are administrative onlyjava.lang.StringgetRun()Gets string attribute RunJDFIntegerRangeListgetRunIndex()Gets range attribute RunIndexintgetRunPage()Gets integer attribute RunPagejava.lang.StringgetRunSet()Gets string attribute RunSetVStringgetRunTags()Gets NMTOKENS attribute RunTagsJDFIntegerRangeListgetSectionIndex()Gets range attribute SectionIndexjava.lang.StringgetSeparation()Gets string attribute SeparationJDFIntegerRangeListgetSetDocIndex()Gets range attribute SetDocIndexJDFIntegerRangeListgetSetIndex()Gets range attribute SetIndexJDFIntegerRangeListgetSetRunIndex()Gets range attribute SetRunIndexJDFIntegerRangeListgetSetSheetIndex()Gets range attribute SetSheetIndexJDFIntegerRangeListgetSheetIndex()Gets range attribute SheetIndexjava.lang.StringgetSheetName()Gets string attribute SheetNameJDFAutoPart.EnumSidegetSide()Gets typesafe enumerated value of attribute Sidejava.lang.StringgetSignatureName()Gets string attribute SignatureNamebooleangetSortAmount()Gets boolean attribute SortAmountJDFIntegerRangeListgetSorting()Gets range attribute SortingJDFSourceResourcegetSourceResource(int i)gets an existing SourceResource elementVStringgetSpawnIDs(boolean bInherit)Gets string attribute SpawnIDsJDFResource.EnumSpawnStatusgetSpawnStatus()Gets typesafe enumerated value of attribute SpawnStatusjava.lang.StringgetStationName()Gets string attribute StationNameJDFResource.EnumResStatusgetStatus(boolean bRecurseRefs)Deprecated.use getResStatus(bRecurseRefs)JDFResource.EnumResStatusgetStatusFromLeaves(boolean bAll)Gets the minimum typesafe enumerated value of attribute Status from the value of all leavesprotected AttributeInfogetTheAttributeInfo()protected ElementInfogetTheElementInfo()JDFXYPairgetTileID()Gets XYPair attribute TileIDjava.lang.StringgetUnit()Gets string attribute UnitJDFElement.eUnitgetUnitEnum()JDFResourcegetUpdate(int iSkip)Deprecated.updates never really took off in JDFJDFResourcegetUpdate(java.lang.String updateID)Deprecated.updates never really took off in JDFjava.lang.StringgetUpdateID()Gets string attribute UpdateIDjava.lang.StringgetUpdateName()Deprecated.updates never really took off in JDFVElementgetUpdateVector()Deprecated.updates never really took off in JDFJDFResource.EnumResourceClassgetValidClass()get the fixed class for this resource,java.lang.StringgetWebName()Gets string attribute WebNamejava.lang.StringgetWebProduct()Gets string attribute WebProductjava.lang.StringgetWebSetup()Gets string attribute WebSetupbooleanhasAttribute(java.lang.String attrib, java.lang.String nameSpaceURI, boolean bInherit)Checks if the actual element has a specific attribute
this version checks within the resource and its partitioned parent xml elementsbooleanhasPipePartIDKey(JDFResource.EnumPartIDKey key)Tests, if this leaf has a PipePartIDKey as specified by keybooleanhasUpdate()Deprecated.updates never really took off in JDFbooleaninit()default initializationorg.w3c.dom.NodeinsertBefore(org.w3c.dom.Node src, org.w3c.dom.Node arg1)booleanisAvailable(boolean bRecurseRefs)Deprecated.use getStatus default: IsAvailable(false)booleanisLeaf()Tests, whether 'this' is the end of a partition (i.e.booleanisParameter()Checks, whether this resourse is a parameter resourcebooleanisPartitioningCompatible(VString vsPartitions)Tests if the resource is compatible with the given partition keys.booleanisPartitioningCompatible(JDFResource other)Tests if the given resources are compatible regarding their partitioning.booleanisPhysical()Checks, whether the resource is one of the physical resource classesbooleanisQuantity()Checks, whether this resourse is a quantity resource.booleanisResourceElement()Tests, if the first ancestor with a name different from the node name is not one of DropItemIntent,CustomerInfo,NodeInfo,ResourcePool,PipeParams, ResourceInfo,ResourceCmdParams.booleanisResourceRoot()Tests, whether the first ancestor of 'this' is in ValidParentNodeNames - must be one of: DropItemIntent,CustomerInfo,NodeInfo,ResourcePool,PipeParams ,ResourceInfo,ResourceCmdParamsbooleanisResourceRootRoot()Tests, whether the first ancestor of 'this' is in validRootParentNodeNames()
must be one of: ResourcePool,PipeParams,ResourceInfo,ResourceCmdParamsbooleanisRootElement()Tests, whether 'this' is root of partition (i.e.booleanisSpawnAllowed()Tests if a spawn of the given partition of the resource is allowed (by means of the JDF specification).booleanisValid(JDFElement.EnumValidationLevel level)Validator of 'this'voidlock(boolean bLock)Deprecated.[BLD009] use setLocked()JDFResourcemakeRootResource(java.lang.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(java.lang.String namedResLink)check whether this resource matches a named resource stringJDFResourcemergeCloneResource(JDFResource oldRes)Clone the resource element oldRes and merge it with this resourceKElementmergeElement(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, java.lang.String spawnID, JDFResource.EnumAmountMerge amountPolicy, boolean bLocalResource)Deprecated.used only by merge - moved therevoidmergeSpawnIDs(JDFResource resToMerge, VString previousMergeIDs)Deprecated.use JDFMerge.mergeSpawnIDSKElementmoveElement(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.java.lang.StringnewModifiedID()Generates the id of a modified resourceintnumChildElements(java.lang.String nodeName, java.lang.String nameSpaceURI)The same as JDFElement.numChildElements but also follows ReferencesintnumUpdates()Deprecated.updates never really took off in JDFvoidreducePartitions(VJDFAttributeMap vValidParts)Reduces partition so that only the parts that overlap with vResources remainvoidreduceParts(java.util.Vector vParts)Deprecated.[BLD009] not in C++ anymore, not used internally hereVJDFAttributeMapreducePartVector(VJDFAttributeMap vParts)Finds the canonical vector of parts that defines the vector of parts that fits to vParts.voidremoveAttribute(java.lang.String attrib, java.lang.String nameSpaceURI)Removes local attributesvoidremoveAttributeFromLeaves(java.lang.String attrib, java.lang.String nameSpaceURI)Removes attributes, also removes overwrites in any child partsintremoveFromSpawnIDs(java.lang.String value)Removes SpawnID token ('value') from the list of values of SpawnIDs attribute, if it is in the listvoidremoveInheritedAttributes(java.lang.String attrib, java.lang.String nameSpaceURI)Removes all local and inherited attributes down to the resource rootvoidremoveUpdate(int iSkip)Deprecated.updates never really took off in JDFvoidremoveUpdate(java.lang.String updateID)Deprecated.updates never really took off in JDFvoidreorderPartitions(java.util.List<java.lang.String> newPartIDKeys)KElementreplaceElement(KElement src)Replaces 'this' with src.voidsetAgentName(java.lang.String value)Sets attribute AgentNamevoidsetAgentVersion(java.lang.String value)Sets attribute AgentVersionvoidsetAlternateBrand(java.lang.String value)Sets attribute AlternateBrandvoidsetAmount(double amount)Sets attribute AmountvoidsetAmountProduced(double value)Sets attribute AmountProducedvoidsetAmountRequired(double value)Sets attribute AmountRequiredvoidsetAttribute(java.lang.String key, java.lang.String value, java.lang.String nameSpaceURI)Mother of all Attribute setters
Sets a new attribute.voidsetAuthor(java.lang.String value)Sets 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(java.lang.String value)Sets attribute BatchIDvoidsetBinderySignatureName(java.lang.String value)Sets attribute BinderySignatureNamevoidsetBlockName(java.lang.String value)Sets attribute BlockNamevoidsetBrand(java.lang.String value)Sets attribute BrandvoidsetBundleItemIndex(JDFIntegerRangeList value)Sets attribute BundleItemIndexvoidsetCatalogDetails(java.lang.String value)Sets attribute CatalogDetailsvoidsetCatalogID(java.lang.String value)Sets attribute CatalogIDvoidsetCellIndex(JDFIntegerRangeList value)Sets attribute CellIndexvoidsetCondition(java.lang.String value)Sets attribute ConditionvoidsetDeliveryUnit(int iUnit, java.lang.String value)Sets attribute DeliveryUnitvoidsetDocCopies(JDFIntegerRangeList value)Sets attribute DocCopiesvoidsetDocIndex(JDFIntegerRangeList value)Sets attribute DocIndexvoidsetDocRunIndex(JDFIntegerRangeList value)Sets attribute DocRunIndexvoidsetDocSheetIndex(JDFIntegerRangeList value)Sets 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(java.lang.String value)Sets attribute ItemNamesvoidsetLayerIDs(JDFIntegerRangeList value)Sets attribute LayerIDsvoidsetLocation(java.lang.String value)Sets attribute LocationvoidsetLocked(boolean value)Sets attribute LockedvoidsetLotControl(JDFResource.EnumLotControl value)Sets attribute PartUsagevoidsetManufacturer(java.lang.String value)Sets attribute ManufacturervoidsetNoOp(boolean value)Sets attribute NoOpvoidsetOption(java.lang.String value)Sets attribute OptionvoidsetPageNumber(JDFIntegerRangeList value)Sets attribute PageNumbervoidsetPartIDKey(JDFResource.EnumPartIDKey key, java.lang.String value)voidsetPartIDKeyList(java.util.List<java.lang.String> partIDKeys)voidsetPartIDKeys(VString partIDKeys)set the partIDKeys attribute of the root of thisvoidsetPartUsage(JDFResource.EnumPartUsage value)Sets attribute PartUsagevoidsetPartVersion(java.lang.String value)Sets attribute PartVersionvoidsetPipeID(java.lang.String value)Sets attribute PipeIDvoidsetPipePartIDKey(JDFResource.EnumPartIDKey key, java.lang.String value)Sets the value of attibute, specified by keyvoidsetPipeProtocol(java.lang.String value)Set attribute PipeProtocolvoidsetPipeURL(java.lang.String value)Sets attribute PipeURLvoidsetPreflightRule(java.lang.String value)Sets attribute PreflightRulevoidsetPreviewType(JDFAutoPart.EnumPreviewType value)Sets attribute PreviewTypevoidsetProductID(java.lang.String value)Sets attribute ProductIDvoidsetResourceClass(JDFResource.EnumResourceClass value)Sets attribute Class corresponds to C++ JDFResource::SetClass()voidsetResourceWeight(double value)Sets attribute ResourceWeightvoidsetResStatus(JDFResource.EnumResStatus value, boolean bCleanLeaves)Sets attribute StatusvoidsetRibbonName(java.lang.String value)Sets attribute RibbonNamevoidsetRun(java.lang.String value)Sets attribute RunvoidsetRunIndex(JDFIntegerRangeList value)Sets attribute RunIndexvoidsetRunPage(int value)Sets attribute RunPagevoidsetRunSet(java.lang.String value)Sets attribute RunSetvoidsetRunTags(VString value)Sets attribute RunTagsvoidsetSectionIndex(JDFIntegerRangeList value)Sets attribute SectionIndexvoidsetSeparation(java.lang.String value)Sets attribute SeparationvoidsetSetDocIndex(JDFIntegerRangeList value)Sets attribute SetDocIndexvoidsetSetIndex(JDFIntegerRangeList value)Sets attribute SetIndexvoidsetSetRunIndex(JDFIntegerRangeList value)Sets attribute SetRunIndexvoidsetSetSheetIndex(JDFIntegerRangeList value)Sets attribute SetSheetIndexvoidsetSheetIndex(JDFIntegerRangeList value)Sets attribute SheetIndexvoidsetSheetName(java.lang.String value)Sets attribute SheetNamevoidsetSide(JDFAutoPart.EnumSide value)Sets attribute SidevoidsetSignatureName(java.lang.String value)Sets attribute SignatureNamevoidsetSortAmount(boolean value)Sets attribute SortAmountvoidsetSorting(JDFIntegerRangeList value)Sets attribute SortingvoidsetSpawnIDs(java.lang.String spawndID)Sets attribute SpawnIDsvoidsetSpawnIDs(VString vStr)Sets attribute SpawnIDsvoidsetSpawnStatus(JDFResource.EnumSpawnStatus s)Sets attribute SpawnStatusvoidsetStationName(java.lang.String value)Sets attribute StationNamevoidsetStatus(JDFResource.EnumResStatus value)Deprecated.use setResStatus(value, false)voidsetStatus(JDFResource.EnumResStatus value, boolean bCleanLeaves)Deprecated.use setResStatus(value, bCleanLeaves)voidsetTileID(JDFXYPair value)Sets attribute TileIDvoidsetUnit(java.lang.String value)Sets attribute UnitvoidsetUnit(JDFElement.eUnit unit)static voidsetUnpartitiondImplicit(boolean bUnpartitiondImplicit)if set to true, the default @PartUsage of unpartitioned resources is Implicit.voidsetUpdateID(java.lang.String value)Sets attribute UpdateIDvoidsetWebName(java.lang.String value)Sets attribute WebNamevoidsetWebProduct(java.lang.String value)Sets attribute WebProductvoidsetWebSetup(java.lang.String value)Sets attribute WebSetupvoidspawnPart(java.lang.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(java.lang.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 specifiedjava.lang.StringupdateAttributeFromLeaves(java.lang.String attName, java.lang.String nsURI, boolean bDirect)update vattribute value to the value of the attribute in the leavesbooleanvalidClass()Typesafe attribute validation of Class corresponds to C++ JDFResource::ValidClass()booleanvalidResourceClass(JDFElement.EnumValidationLevel level)Typesafe 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, 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, prereleaseAttributes, prereleaseElements, refElement, removeBestEffortExceptions, removeChild, removeChild, removeChildren, removeExtensions, removeFromBestEffortExceptions, removeFromMustHonorExceptions, removeFromOperatorInterventionExceptions, removeFromrRefs, removeGeneralID, removePartMap, removeRefElement, removeSettingsPolicy, replaceChild, requiredAttributes, requiredElements, requiredLevel, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeNameTimeStamp, setAttributes, setBestEffortExceptions, setCommentText, setCommentText, setCommentURL, setDefaultJDFVersion, setDescriptiveName, setDirty, setEnumerationsAttribute, setGeneralID, setLongID, setMustHonorExceptions, setOperatorInterventionExceptions, setPartMap, setPartMapVector, setSettingsPolicy, setStatus, setVersion, setvStringAttribute, stringToVersion, uniqueElements, upDaterRefs, validAttribute, validAttribute, validEnumAttribute, validEnumerationsAttribute, validResourcePosition, version, write2Dir
-
Methods inherited from class org.cip4.jdflib.core.KElement
addAttribute, addAttribute, addNameSpace, ancestorDistance, appendAttribute, appendAttribute, appendAttributes, appendCData, appendCData, appendChild, appendElement, appendElementN, appendElementRaw, appendEntityReference, appendText, appendTextElement, appendXMLComment, appendXMLComment, buildRelativeXPath, buildXPath, buildXPath, cleanup, clearNSMap, clone, copyAttribute, copyAttribute, copyAttribute, copyAttribute, copyElements, copyXPathValue, createRoot, ensureCase, eraseEmptyAttributes, eraseEmptyNodes, fillHashSet, fitsName, fitsName_KElement, flush, generateDotID, 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, parseFile, parseStream, parseString, 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, 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, xmlnsPrefix
-
Methods inherited from class org.apache.xerces.dom.ElementNSImpl
getLocalName, getPrefix, getTypeName, getTypeNamespace, getXMLBaseAttribute, isDerivedFrom, setType
-
Methods inherited from class org.apache.xerces.dom.ElementImpl
cloneNode, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getBaseURI, getChildElementCount, getDefaultAttributes, getElementsByTagName, getElementsByTagNameNS, getFirstElementChild, getLastElementChild, getNextElementSibling, getNodeName, getNodeType, getPreviousElementSibling, getSchemaTypeInfo, getTagName, getXercesAttribute, hasAttributeNS, isEqualNode, reconcileDefaultAttributes, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setOwnerDocument, setReadOnly, setupDefaultAttributes, setXercesAttributeNode, synchronizeData
-
Methods inherited from class org.apache.xerces.dom.ParentNode
getChildNodes, getChildNodesUnoptimized, getFirstChild, getLastChild, getLength, getOwnerDocument, getTextContent, hasChildNodes, item, setTextContent, synchronizeChildren
-
Methods inherited from class org.apache.xerces.dom.ChildNode
getNextSibling, getParentNode, getPreviousSibling
-
Methods inherited from class org.apache.xerces.dom.NodeImpl
addEventListener, changed, changes, compareDocumentPosition, compareTreePosition, dispatchEvent, getContainer, getFeature, getNodeNumber, getNodeValue, getReadOnly, getUserData, getUserData, getUserDataRecord, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, needsSyncChildren, removeEventListener, setUserData, setUserData
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.w3c.dom.Element
getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS
-
Methods inherited from interface org.w3c.dom.Node
cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasChildNodes, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, setTextContent, setUserData
-
-
-
-
Constructor Detail
-
JDFResource
public JDFResource(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, java.lang.String qualifiedName)Constructor for JDFResource- Parameters:
myOwnerDocument-qualifiedName-
-
JDFResource
public JDFResource(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, java.lang.String myNamespaceURI, java.lang.String qualifiedName)Constructor for JDFResource- Parameters:
myOwnerDocument-myNamespaceURI-qualifiedName-
-
JDFResource
public JDFResource(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, java.lang.String myNamespaceURI, java.lang.String qualifiedName, java.lang.String myLocalName)Constructor for JDFResource- Parameters:
myOwnerDocument-myNamespaceURI-qualifiedName-myLocalName-
-
-
Method Detail
-
getTheAttributeInfo
protected AttributeInfo getTheAttributeInfo()
- Overrides:
getTheAttributeInfoin classJDFElement- Returns:
-
getTheElementInfo
protected ElementInfo getTheElementInfo()
- Overrides:
getTheElementInfoin classJDFElement- Returns:
- the elementinfo
-
setAvailable
@Deprecated public void setAvailable(boolean bAvailable)
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 public boolean isAvailable(boolean bRecurseRefs)
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 public boolean getLock()
Deprecated.[BLD009] use getLockedgetLock- Returns:
- boolean
-
lock
@Deprecated public void lock(boolean bLock)
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
public JDFResource 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
public static JDFResource getResourceRoot(KElement elem)
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 public JDFResourcePool 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:
KElement.init()
-
makeRootResource
public JDFResource makeRootResource(java.lang.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.
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
public VElement getCreator(boolean bCreate)
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, java.lang.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
public void setPartIDKeys(VString partIDKeys)
set the partIDKeys attribute of the root of this- Parameters:
partIDKeys- the value to set key to
-
setPartIDKeyList
public void setPartIDKeyList(java.util.List<java.lang.String> partIDKeys)
- Parameters:
partIDKeys-
-
mergeCloneResource
public JDFResource mergeCloneResource(JDFResource oldRes)
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 public VElement getLinks(java.lang.String linkName)
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
public VElement getLinks(java.lang.String linkName, java.lang.String nameSpaceURI)
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 public VElement 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
public VElement 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 @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 public JDFResource getPartition(JDFAttributeMap m, boolean bIncomplete)
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
public JDFResource 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)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
public java.util.HashMap<JDFAttributeMap,JDFResource> getPartitionMap()
- Returns:
-
getPartition
@Deprecated public JDFResource getPartition(JDFResource.EnumPartIDKey key, java.lang.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
public void clonePartitions(JDFResource r, VString partIDKeys)
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
public void reorderPartitions(java.util.List<java.lang.String> newPartIDKeys)
- Parameters:
newPartIDKeys-
-
fillSparse
public void fillSparse()
-
getCreatePartition
public JDFResource getCreatePartition(JDFAttributeMap partMap, VString vPartKeys)
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, java.lang.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
public boolean consistentPartIDKeys(JDFResource.EnumPartIDKey key)
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 public JDFResource getDeepPart(JDFAttributeMap m, boolean bIncomplete)
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
public JDFResource getDeepPart(JDFAttributeMap m, JDFResource.EnumPartUsage partUsage)
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
public VElement getLeaves(boolean bAll)
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
public java.util.List<JDFResource> getLeafArray(boolean bAll)
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
public java.util.Vector<? extends KElement> getDirectPartitionVector()
- Returns:
-
getDirectPartitionArray
public java.util.List<? extends KElement> getDirectPartitionArray()
- Returns:
-
getDirectPartition
public JDFResource getDirectPartition(int i)
- 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
public VString getPartValues(JDFResource.EnumPartIDKey partType)
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
public java.lang.String getAttribute(java.lang.String attrib, java.lang.String nameSpaceURI, java.lang.String def)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> java.util.Vector<a> getChildrenByClass(java.lang.Class<a> clazz, boolean bRecurse, int nMax)
Deprecated.use getChildArrayByClass- Overrides:
getChildrenByClassin classKElement- Parameters:
clazz-bRecurse-nMax-- Returns:
-
getChildArrayByClass
public <a extends KElement> java.util.List<a> getChildArrayByClass(java.lang.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:
KElement.getChildrenByClass(java.lang.Class, boolean, int)
-
getChildWithAttribute
public <A extends KElement> A getChildWithAttribute(java.lang.Class<A> clazz, java.lang.String attName, java.lang.String attVal)
- Overrides:
getChildWithAttributein classKElement
-
getAttributeMap
public JDFAttributeMap 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
public boolean hasAttribute(java.lang.String attrib, java.lang.String nameSpaceURI, boolean bInherit)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
public int numChildElements(java.lang.String nodeName, java.lang.String nameSpaceURI)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
public KElement getCreateElement_JDFResource(java.lang.String nodeName, java.lang.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::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
public KElement getElement(java.lang.String nodeName, java.lang.String nameSpaceURI, int iSkip)
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:
KElement.getElement(java.lang.String, java.lang.String, int)
-
addPartitions
public VElement 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'- Parameters:
partType- part type of a new partvalues- its value- Returns:
- VElement - vector of newly created parts
-
addPartition
public JDFResource addPartition(JDFResource.EnumPartIDKey partType, org.apache.commons.lang.enums.ValuedEnum enumPart)
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
public JDFResource addPartition(JDFResource.EnumPartIDKey partType, java.lang.String value)
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
public VString 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
public VString getAttributeVector_JDFResource()
Gets all local attribute names as an vector of strings- Returns:
- VString the vector of attribute names
-
getAttributePart
public JDFResource getAttributePart(java.lang.String key)
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
public VElement getAttributePartVector(java.lang.String key)
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
public java.lang.String buildXPath(java.lang.String relativeTo, int methCountSiblings)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
public java.lang.String 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
public void removeInheritedAttributes(java.lang.String attrib, java.lang.String nameSpaceURI)Removes all local and inherited attributes down to the resource root- Parameters:
attrib- the attribute key to removenameSpaceURI- the attribute nameSpaceURI to remove
-
removeAttribute
public void removeAttribute(java.lang.String attrib, java.lang.String nameSpaceURI)Removes local attributes- Overrides:
removeAttributein classKElement- Parameters:
attrib- the attribute key to removenameSpaceURI- the attribute nameSpaceURI to remove
-
removeAttributeFromLeaves
public void removeAttributeFromLeaves(java.lang.String attrib, java.lang.String nameSpaceURI)Removes attributes, also removes overwrites in any child parts- Parameters:
attrib- the attribute key to removenameSpaceURI- the attribute nameSpaceURI to remove
-
reducePartitions
public void reducePartitions(VJDFAttributeMap vValidParts)
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 public void reduceParts(java.util.Vector vParts)
Deprecated.[BLD009] not in C++ anymore, not used internally herereduceParts- Parameters:
vParts-
-
getPartMap
public JDFAttributeMap getPartMap(java.util.List<java.lang.String> partIDKeys)
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
public JDFAttributeMap 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
public java.lang.String getLinkString()
Gets nodename of a ResourceLink that links to 'this'- Returns:
- String - name of a link to 'this'
-
mergeSpawnIDs
@Deprecated public void mergeSpawnIDs(JDFResource resToMerge, VString previousMergeIDs)
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
public VString getRootPartAtts()
get the list of attributes that are administrative only- Returns:
- the VString that lists all adminstrative and partition keys
-
collapse
@Deprecated public void collapse(boolean bCollapseToNode)
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
-
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(java.lang.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
public void unSpawnPart(java.lang.String spawnID, JDFResource.EnumSpawnStatus spawnStatus)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
public java.util.List<JDFResource> getNodesWithSpawnID(java.lang.String spawnID)
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 public VElement getPartitionVector(JDFAttributeMap m, boolean bIncomplete)
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
public VElement getPartitionVector(VJDFAttributeMap vm, JDFResource.EnumPartUsage partUsage)
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
public VElement getPartitionLeafVector(JDFAttributeMap m, JDFResource.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)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
public VElement getPartitionVector(JDFAttributeMap m, JDFResource.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)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, java.lang.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
protected java.lang.String getIDPrefix()
gets a prefix for ID creation for the element- Overrides:
getIDPrefixin classKElement- Returns:
- String - a prefix for ID creation
-
getPartMapVector
public VJDFAttributeMap getPartMapVector(boolean bIntermediate)
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
public VJDFAttributeMap reducePartVector(VJDFAttributeMap vParts)
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
public java.lang.String newModifiedID()
Generates the id of a modified resource- Returns:
- String the new id
- Throws:
JDFException- if there are too many equivalent modified resources
-
getResourcePool
public JDFResourcePool 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
public java.lang.String updateAttributeFromLeaves(java.lang.String attName, java.lang.String nsURI, boolean bDirect)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(java.lang.String element, java.lang.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:
default: getChildElementVector(null, null,null, true, 0, false)
-
getImplicitPartitions
public java.util.Vector<JDFResource.EnumPartIDKey> 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
public boolean isPartitioningCompatible(JDFResource other)
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
public boolean isPartitioningCompatible(VString vsPartitions)
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
public JDFContact getCreateContact()
Gets of 'this' child Contact element, optionally creates it, if it doesn't exist.- Returns:
- JDFContact - the matching Contact element
-
getContact
public JDFContact getContact()
Gets of 'this' an existing child Contact element- Returns:
- JDFContact the matching Contact element
-
appendContact
public JDFContact appendContact()
Appends new Contact element to the end of 'this'- Returns:
- JDFContact - newly created child Contact element
-
getCreateLocationElement
public JDFLocation getCreateLocationElement()
Gets of 'this' child Location element, optionally creates it, if it doesn't exist.- Returns:
- JDFLocation - the matching Location element
-
getLocationElement
public JDFLocation getLocationElement()
Gets of 'this' an existing child Location element- Returns:
- JDFLocation - element Location
-
appendLocationElement
public JDFLocation appendLocationElement()
Appends new child Location element to the end of 'this'- Returns:
- JDFLocation - newly created child Location element
-
createSourceResource
public JDFSourceResource createSourceResource(JDFResource source)
create a sourceresource element that pints to source- Parameters:
source- the resource to reference- Returns:
- JDFSourceResource - the element
-
appendSourceResource
public JDFSourceResource appendSourceResource()
appends a new SourceResource element- Returns:
- JDFSourceResource - the new sourceresource
-
getSourceResource
public JDFSourceResource getSourceResource(int i)
gets an existing SourceResource element- Parameters:
i- the i'th sourceResource to get, 0=first etc.- Returns:
- JDFSourceResource - the sourceresource
-
getCreateIdentificationField
public JDFIdentificationField getCreateIdentificationField(int iSkip)
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
public JDFIdentificationField getIdentificationField(int iSkip)
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
public JDFIdentificationField appendIdentificationField()
Appends new child IdentificationField element to the end of 'this'- Returns:
- JDFIdentificationField - newly created child IdentificationField element
-
getIdenticalMap
public JDFAttributeMap 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
public JDFIdentical getIdentical()
get the identical element,- Returns:
- JDFIdentical - the identical element, null if noen exists
-
getIdenticalTarget
public JDFResource 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
public JDFIdentical getCreateIdentical()
get or create the identical element,- Returns:
- JDFIdentical - the identical element
-
appendIdentical
public JDFIdentical appendIdentical()
append an identical element,- Returns:
- JDFIdentical - the identical element
- Throws:
JDFException- if an Identical already exists
-
setIdentical
public void setIdentical(VJDFAttributeMap vPartMap)
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
public void setIdentical(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 overwritten- Parameters:
target- the resource leaf that this leaf should reference as identical
-
getCreateQualityControlResult
public JDFQualityControlResult getCreateQualityControlResult(int iSkip)
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
public JDFQualityControlResult getQualityControlResult(int iSkip)
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
public JDFQualityControlResult appendQualityControlResult()
Appends new child QualityControlResult element to the end of 'this'- Returns:
- JDFQualityControlResult - newly created child QualityControlResult element
-
getUpdate
@Deprecated public JDFResource getUpdate(int iSkip)
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 public JDFResource getUpdate(java.lang.String updateID)
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 public VElement 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 public void removeUpdate(java.lang.String updateID)
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 public void removeUpdate(int iSkip)
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 public JDFResource appendUpdate(java.lang.String updateID)
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 public int 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 public boolean 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 public java.lang.String 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
public void setAgentName(java.lang.String value)
Sets attribute AgentName- Parameters:
value- the value to set the attribute to
-
getAgentName
public java.lang.String getAgentName()
Gets string attribute AgentName- Returns:
- String - the attribute value
-
setAgentVersion
public void setAgentVersion(java.lang.String value)
Sets attribute AgentVersion- Parameters:
value- the value to set the attribute to
-
getAgentVersion
public java.lang.String getAgentVersion()
Gets string attribute AgentVersion- Returns:
- String the - attribute value
-
setAlternateBrand
public void setAlternateBrand(java.lang.String value)
Sets attribute AlternateBrand- Parameters:
value- value to set the attribute to
-
getAlternateBrand
public java.lang.String 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
public void setAuthor(java.lang.String value)
Sets attribute Author- Parameters:
value- the value to set the attribute to
-
getAuthor
public java.lang.String getAuthor()
Gets string attribute Author- Returns:
- String - the attribute value
-
setBatchID
public void setBatchID(java.lang.String value)
Sets attribute BatchID- Parameters:
value- value to set the attribute to
-
getBatchID
public java.lang.String getBatchID()
Gets string attribute BatchID- Returns:
- String - the attribute value
-
setBinderySignatureName
public void setBinderySignatureName(java.lang.String value)
Sets attribute BinderySignatureName- Parameters:
value- the value to set the attribute to
-
getBinderySignatureName
public java.lang.String getBinderySignatureName()
Gets string attribute BinderySignatureName- Returns:
- String - the attribute value
-
setBlockName
public void setBlockName(java.lang.String value)
Sets attribute BlockName- Parameters:
value- the value to set the attribute to
-
getBlockName
public java.lang.String getBlockName()
Gets string attribute BlockName- Returns:
- String - the attribute value
-
setBrand
public void setBrand(java.lang.String value)
Sets attribute Brand- Parameters:
value- value to set the attribute to
-
getBrand
public java.lang.String getBrand()
Gets string attribute Brand- Returns:
- String - the attribute value
-
setUnit
public void setUnit(JDFElement.eUnit unit)
-
getUnitEnum
public JDFElement.eUnit getUnitEnum()
- Returns:
-
setBundleItemIndex
public void setBundleItemIndex(JDFIntegerRangeList value)
Sets attribute BundleItemIndex- Parameters:
value- the value to set the attribute to
-
getBundleItemIndex
public JDFIntegerRangeList getBundleItemIndex()
Gets range attribute BundleItemIndex- Returns:
- JDFIntegerRangeList - the attribute value
-
setCatalogDetails
public void setCatalogDetails(java.lang.String value)
Sets attribute CatalogDetails- Parameters:
value- the value to set the attribute to
-
getCatalogDetails
public java.lang.String getCatalogDetails()
Gets string attribute CatalogDetails- Returns:
- String - the attribute value
-
setCatalogID
public void setCatalogID(java.lang.String value)
Sets attribute CatalogID- Parameters:
value- the value to set the attribute to
-
getCatalogID
public java.lang.String getCatalogID()
Gets string attribute CatalogID- Returns:
- String - the attribute value
-
setCellIndex
public void setCellIndex(JDFIntegerRangeList value)
Sets attribute CellIndex- Parameters:
value- the value to set the attribute to
-
getCellIndex
public JDFIntegerRangeList getCellIndex()
Gets range attribute CellIndex- Returns:
- JDFIntegerRangeList - the attribute value
-
setCondition
public void setCondition(java.lang.String value)
Sets attribute Condition- Parameters:
value- the value to set the attribute to
-
getCondition
public java.lang.String getCondition()
Gets string attribute Condition- Returns:
- String - the attribute value
-
setDocCopies
public void setDocCopies(JDFIntegerRangeList value)
Sets attribute DocCopies- Parameters:
value- the value to set the attribute to
-
getDocCopies
public JDFIntegerRangeList getDocCopies()
Gets range attribute DocCopies- Returns:
- JDFIntegerRangeList the attribute value
-
setDocIndex
public void setDocIndex(JDFIntegerRangeList value)
Sets attribute DocIndex- Parameters:
value- the value to set the attribute to
-
getDocIndex
public JDFIntegerRangeList getDocIndex()
Gets range attribute DocIndex- Returns:
- JDFIntegerRangeList - the attribute value
-
setDeliveryUnit
public void setDeliveryUnit(int iUnit, java.lang.String value)Sets attribute DeliveryUnit- Parameters:
iUnit- a value between 0 and 9 to set DeliveryUnitvalue- the value to set the attribute to
-
getDeliveryUnit
public java.lang.String getDeliveryUnit(int iUnit)
Gets attribute DeliveryUnit- Parameters:
iUnit- a value between 0 and 9 to set DeliveryUnit- Returns:
- String - the attribute value
-
setDocRunIndex
public void setDocRunIndex(JDFIntegerRangeList value)
Sets attribute DocRunIndex- Parameters:
value- the value to set the attribute to
-
getDocRunIndex
public JDFIntegerRangeList getDocRunIndex()
Gets range attribute DocRunIndex- Returns:
- JDFIntegerRangeList the attribute value
-
setDocSheetIndex
public void setDocSheetIndex(JDFIntegerRangeList value)
Sets attribute DocSheetIndex- Parameters:
value- the value to set the attribute to
-
getDocSheetIndex
public JDFIntegerRangeList 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
public void setItemNames(java.lang.String value)
Sets attribute ItemNames- Parameters:
value- the value to set the attribute to
-
getItemNames
public java.lang.String getItemNames()
Gets string attribute ItemNames- Returns:
- String - the attribute value
-
setLayerIDs
public void setLayerIDs(JDFIntegerRangeList value)
Sets attribute LayerIDs- Parameters:
value- the value to set the attribute to
-
getLayerIDs
public JDFIntegerRangeList getLayerIDs()
Gets range attribute LayerIDs- Returns:
- JDFIntegerRangeList - the attribute value
-
setLocation
public void setLocation(java.lang.String value)
Sets attribute Location- Parameters:
value- the value to set the attribute to
-
getLocation
public java.lang.String 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
public void setOption(java.lang.String value)
Sets attribute Option- Parameters:
value- the value to set the attribute to
-
getOption
public java.lang.String getOption()
Gets string attribute Option- Returns:
- String - the attribute value
-
setPageNumber
public void setPageNumber(JDFIntegerRangeList value)
Sets attribute PageNumber- Parameters:
value- the value to set the attribute to
-
getPageNumber
public JDFIntegerRangeList getPageNumber()
Gets range attribute PageNumber- Returns:
- JDFIntegerRangeList - the attribute value
-
addPartIDKey
public void addPartIDKey(JDFResource.EnumPartIDKey partType)
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
public void setPartIDKey(JDFResource.EnumPartIDKey key, java.lang.String value)
-
getParentPartition
public JDFResource getParentPartition()
get the intermediate or root partition of this, null if we are the root- Returns:
-
getPartIDKeys
public VString getPartIDKeys()
Gets a list of all valid part keys for this resource- Returns:
- VString - list of all PartIDKeys
-
getPartIDKeyList
public StringArray getPartIDKeyList()
Gets a list of all valid part keys for this resource- Returns:
- VString - list of all PartIDKeys
-
setPartUsage
public void setPartUsage(JDFResource.EnumPartUsage value)
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
public JDFResource.EnumPartUsage 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
-
setLotControl
public void setLotControl(JDFResource.EnumLotControl value)
Sets attribute PartUsage- Parameters:
value- enumeration value of the attribute PartUsage to be set
-
getLotControl
public JDFResource.EnumLotControl getLotControl()
Gets typesafe enumerated value of attribute LotControl; defaults to LotControl_Explicit- Returns:
- EnumLotControl - attribute enumeration value
-
setPartVersion
public void setPartVersion(java.lang.String value)
Sets attribute PartVersion- Parameters:
value- the value to set the attribute to
-
getPartVersion
public java.lang.String getPartVersion()
Gets string attribute PartVersion- Returns:
- String - the attribute value
-
setPipeID
public void setPipeID(java.lang.String value)
Sets attribute PipeID- Parameters:
value- the value to set the attribute to
-
getPipeID
public java.lang.String getPipeID()
Gets string attribute PipeID- Returns:
- String - the attribute value
-
hasPipePartIDKey
public boolean hasPipePartIDKey(JDFResource.EnumPartIDKey key)
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
public boolean consistentPipePartIDKeys(JDFResource.EnumPartIDKey key)
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
public void addPipePartIDKey(JDFResource.EnumPartIDKey partType)
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
public void setPipePartIDKey(JDFResource.EnumPartIDKey key, java.lang.String value)
Sets the value of attibute, specified by key- Parameters:
key- the PipePartIDKey attribute namevalue- the value to set key to
-
getPipePartIDKeysEnum
public java.util.Vector<JDFResource.EnumPartIDKey> getPipePartIDKeysEnum()
Gets a list of all valid pipe part key enums for this resource- Returns:
- Vector - list of all PipePartIDKey enums
-
getPipePartIDKeys
@Deprecated public VString getPipePartIDKeys()
Deprecated.Gets a list of all valid pipe part keys for this resource- Returns:
- VString list of all PipePartIDKeys
-
setPipeProtocol
public void setPipeProtocol(java.lang.String value)
Set attribute PipeProtocol- Parameters:
value- the value to set the attribute to
-
getPipeProtocol
public java.lang.String getPipeProtocol()
Get string attribute PipeProtocol- Returns:
- String - the attribute value
-
setPipeURL
public void setPipeURL(java.lang.String value)
Sets attribute PipeURL- Parameters:
value- the value to set the attribute to
-
getPipeURL
public java.lang.String getPipeURL()
Gets string attribute PipeURL- Returns:
- String - the attribute value
-
setPreflightRule
public void setPreflightRule(java.lang.String value)
Sets attribute PreflightRule- Parameters:
value- the value to set the attribute to
-
getPreflightRule
public java.lang.String getPreflightRule()
Gets string attribute PreflightRule- Returns:
- String the attribute value
-
setPreviewType
public void setPreviewType(JDFAutoPart.EnumPreviewType value)
Sets attribute PreviewType- Parameters:
value- enumeration value of attribute PreviewType to be set
-
getPreviewType
public JDFAutoPart.EnumPreviewType getPreviewType()
Gets typesafe enumerated value of attribute PreviewType- Returns:
- JDFPart.EnumPreviewType - the enumeration value of attribute
-
setProductID
public void setProductID(java.lang.String value)
Sets attribute ProductID- Parameters:
value- value to set the attribute to
-
getProductID
public java.lang.String getProductID()
Gets string attribute ProductID- Returns:
- String - the attribute value
-
setResourceClass
public void setResourceClass(JDFResource.EnumResourceClass value)
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
public JDFResource.EnumResourceClass getResourceClass()
Gets typesafe enumerated value of attribute Class corresponds to C++ JDFResource::GetClass(), getClass() already exists in Java- Returns:
- EnumResourceClass - attribute enumeration value
-
validResourceClass
public boolean validResourceClass(JDFElement.EnumValidationLevel level)
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
public JDFResource.EnumResourceClass 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
public void setRibbonName(java.lang.String value)
Sets attribute RibbonName- Parameters:
value- the value to set the attribute to
-
getManufacturer
public java.lang.String getManufacturer()
Gets string attribute Manufacturer- Returns:
- String the - attribute value
-
setManufacturer
public void setManufacturer(java.lang.String value)
Sets attribute Manufacturer- Parameters:
value- the value to set the attribute to
-
getRibbonName
public java.lang.String getRibbonName()
Gets string attribute RibbonName- Returns:
- String the - attribute value
-
setRun
public void setRun(java.lang.String value)
Sets attribute Run- Parameters:
value- the value to set the attribute to
-
getRunSet
public java.lang.String getRunSet()
Gets string attribute RunSet- Returns:
- String - the attribute value
-
setRunSet
public void setRunSet(java.lang.String value)
Sets attribute RunSet- Parameters:
value- the value to set the attribute to
-
getRun
public java.lang.String getRun()
Gets string attribute Run- Returns:
- String - the attribute value
-
setRunIndex
public void setRunIndex(JDFIntegerRangeList value)
Sets attribute RunIndex- Parameters:
value- the value to set the attribute to
-
getRunIndex
public JDFIntegerRangeList 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
public void setRunTags(VString value)
Sets attribute RunTags- Parameters:
value- the value to set the attribute to
-
getRunTags
public VString getRunTags()
Gets NMTOKENS attribute RunTags- Returns:
- VString - the value of the attribute
-
setSectionIndex
public void setSectionIndex(JDFIntegerRangeList value)
Sets attribute SectionIndex- Parameters:
value- the value to set the attribute to
-
getSectionIndex
public JDFIntegerRangeList getSectionIndex()
Gets range attribute SectionIndex- Returns:
- JDFIntegerRangeList - the attribute value
-
setSeparation
public void setSeparation(java.lang.String value)
Sets attribute Separation- Parameters:
value- the value to set the attribute to
-
getSeparation
public java.lang.String getSeparation()
Gets string attribute Separation- Returns:
- String - the attribute value
-
setSetDocIndex
public void setSetDocIndex(JDFIntegerRangeList value)
Sets attribute SetDocIndex- Parameters:
value- the value to set the attribute to
-
getSetDocIndex
public JDFIntegerRangeList getSetDocIndex()
Gets range attribute SetDocIndex- Returns:
- JDFIntegerRangeList - the attribute value
-
setSetIndex
public void setSetIndex(JDFIntegerRangeList value)
Sets attribute SetIndex- Parameters:
value- the value to set the attribute to
-
getSetIndex
public JDFIntegerRangeList getSetIndex()
Gets range attribute SetIndex- Returns:
- JDFIntegerRangeList - the attribute value
-
setSetRunIndex
public void setSetRunIndex(JDFIntegerRangeList value)
Sets attribute SetRunIndex- Parameters:
value- the value to set the attribute to
-
getSetRunIndex
public JDFIntegerRangeList getSetRunIndex()
Gets range attribute SetRunIndex- Returns:
- JDFIntegerRangeList - the attribute value
-
setSetSheetIndex
public void setSetSheetIndex(JDFIntegerRangeList value)
Sets attribute SetSheetIndex- Parameters:
value- the value to set the attribute to
-
getSetSheetIndex
public JDFIntegerRangeList getSetSheetIndex()
Gets range attribute SetSheetIndex- Returns:
- JDFIntegerRangeList - the attribute value
-
setSheetIndex
public void setSheetIndex(JDFIntegerRangeList value)
Sets attribute SheetIndex- Parameters:
value- the value to set the attribute to
-
getSheetIndex
public JDFIntegerRangeList getSheetIndex()
Gets range attribute SheetIndex- Returns:
- JDFIntegerRangeList - the attribute value
-
setSheetName
public void setSheetName(java.lang.String value)
Sets attribute SheetName- Parameters:
value- the value to set the attribute to
-
getSheetName
public java.lang.String getSheetName()
Gets string attribute SheetName- Returns:
- String - the attribute value
-
setSide
public void setSide(JDFAutoPart.EnumSide value)
Sets attribute Side- Parameters:
value- enumeration value of attribute Side to be set
-
getSide
public JDFAutoPart.EnumSide getSide()
Gets typesafe enumerated value of attribute Side- Returns:
- JDFPart.EnumSide - the enumeration value of the attribute
-
setSignatureName
public void setSignatureName(java.lang.String value)
Sets attribute SignatureName- Parameters:
value- the value to set the attribute to
-
getSignatureName
public java.lang.String getSignatureName()
Gets string attribute SignatureName- Returns:
- String - the attribute value
-
getStationName
public java.lang.String getStationName()
Gets string attribute StationName- Returns:
- String - the attribute value
-
setStationName
public void setStationName(java.lang.String value)
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
public void setSorting(JDFIntegerRangeList value)
Sets attribute Sorting- Parameters:
value- the value to set the attribute to
-
getSorting
public JDFIntegerRangeList getSorting()
Gets range attribute Sorting- Returns:
- JDFIntegerRangeList - the attribute value
-
appendSpawnIDs
public void appendSpawnIDs(java.lang.String value)
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
public int removeFromSpawnIDs(java.lang.String value)
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
public VString getSpawnIDs(boolean bInherit)
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
public void setSpawnIDs(VString vStr)
Sets attribute SpawnIDs- Parameters:
vStr- the value to set the attribute to
-
setSpawnIDs
public void setSpawnIDs(java.lang.String spawndID)
Sets attribute SpawnIDs- Parameters:
spawndID- the value to set the attribute to
-
setSpawnStatus
public void setSpawnStatus(JDFResource.EnumSpawnStatus s)
Sets attribute SpawnStatus- Parameters:
s- enumeration value of the attribute SpawnStatus to be set
-
getSpawnStatus
public JDFResource.EnumSpawnStatus getSpawnStatus()
Gets typesafe enumerated value of attribute SpawnStatus- Returns:
- EnumSpawnStatus - attribute enumeration value
-
setStatus
@Deprecated public void setStatus(JDFResource.EnumResStatus value)
Deprecated.use setResStatus(value, false)Sets attribute Status- Parameters:
value- enumeration value of the attribute Status to be set
-
setStatus
@Deprecated public void setStatus(JDFResource.EnumResStatus value, boolean bCleanLeaves)
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 public JDFResource.EnumResStatus getStatus(boolean bRecurseRefs)
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
public void setResStatus(JDFResource.EnumResStatus value, boolean 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
-
getResStatus
public JDFResource.EnumResStatus getResStatus(boolean 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
-
getStatusFromLeaves
public JDFResource.EnumResStatus getStatusFromLeaves(boolean bAll)
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
public void setTileID(JDFXYPair value)
Sets attribute TileID- Parameters:
value- the value to set the attribute to
-
getTileID
public JDFXYPair getTileID()
Gets XYPair attribute TileID- Returns:
- JDFXYPair - the attribute value
-
setUnit
public void setUnit(java.lang.String value)
Sets attribute Unit- Parameters:
value- value to set the attribute to
-
getUnit
public java.lang.String getUnit()
Gets string attribute Unit- Returns:
- String - the attribute value
-
setUpdateID
public void setUpdateID(java.lang.String value)
Sets attribute UpdateID- Parameters:
value- value to set the attribute to
-
getUpdateID
public java.lang.String getUpdateID()
Gets string attribute UpdateID- Returns:
- String - the attribute value
-
setWebName
public void setWebName(java.lang.String value)
Sets attribute WebName- Parameters:
value- the value to set the attribute to
-
getWebName
public java.lang.String getWebName()
Gets string attribute WebName- Returns:
- String - the attribute value
-
setWebProduct
public void setWebProduct(java.lang.String value)
Sets attribute WebProduct- Parameters:
value- the value to set the attribute to
-
getWebProduct
public java.lang.String getWebProduct()
Gets string attribute WebProduct- Returns:
- String the attribute value
-
setWebSetup
public void setWebSetup(java.lang.String value)
Sets attribute WebSetup- Parameters:
value- the value to set the attribute to
-
getWebSetup
public java.lang.String getWebSetup()
Gets string attribute WebSetup- Returns:
- String the attribute value
-
createPartitions
public VElement createPartitions(VJDFAttributeMap vPartMap, VString vPartIDKeys)
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
public boolean isValid(JDFElement.EnumValidationLevel level)
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
public boolean matchesString(java.lang.String namedResLink)
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
public JDFResource getLeaf(int i)
get a leaf, null if index out of bounds- Parameters:
i-- Returns:
-
moveElement
public KElement moveElement(KElement src, KElement beforeChild)
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
public KElement copyElement(KElement src, KElement beforeChild)
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
public KElement replaceElement(KElement src)
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
public KElement 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:
KElement.deleteNode()
-
mergeElement
public KElement mergeElement(KElement kElem, boolean bDelete)
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
public org.w3c.dom.Node insertBefore(org.w3c.dom.Node src, org.w3c.dom.Node arg1) throws org.w3c.dom.DOMException- Specified by:
insertBeforein interfaceorg.w3c.dom.Node- Overrides:
insertBeforein classKElement- Throws:
org.w3c.dom.DOMException- See Also:
KElement.insertBefore(org.w3c.dom.Node, org.w3c.dom.Node)
-
copyInto
public KElement copyInto(KElement src, boolean bRemove)
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:
JDFElement.copyInto(org.cip4.jdflib.core.KElement, boolean)
-
appendElement
public KElement appendElement(java.lang.String elementName, java.lang.String nameSpaceURI)
- 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:
JDFElement.appendElement(java.lang.String, java.lang.String)
-
setAttribute
public void setAttribute(java.lang.String key, java.lang.String value, java.lang.String nameSpaceURI)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:
KElement.setAttribute(java.lang.String, java.lang.String, java.lang.String)
-
-