public class JDFResource extends JDFElement
Modifier and Type | Class and Description |
---|---|
static class |
JDFResource.EnumAmountMerge
Enumeration for the policy of merging the amounts from ResourceLinks
AmountMerge_none - does not recalculate amounts
AmountMerge_LinkOnly - calculates the Resource Amount based on the Amount values in the ResourceLinks only.
|
static class |
JDFResource.EnumLotControl
Enumeration for attribute Status
|
static class |
JDFResource.EnumPartIDKey
Enumeration for partition keys
|
static class |
JDFResource.EnumPartUsage
Enumeration for attribute PartUsage
|
static class |
JDFResource.EnumResourceClass
Enumeration for attribute Class
|
static class |
JDFResource.EnumResStatus
Enumeration for attribute Status
|
static class |
JDFResource.EnumSpawnStatus
Enumeration for attribute SpawnStatus
|
class |
JDFResource.PartionGetter
Deprecated.
- use the local file type
|
JDFElement.EnumBoolean, JDFElement.EnumNamedColor, JDFElement.EnumNodeStatus, JDFElement.EnumOrientation, JDFElement.EnumPoolType, JDFElement.EnumSeparation, JDFElement.EnumSettingsPolicy, JDFElement.EnumValidationLevel, JDFElement.EnumVersion, JDFElement.EnumXYRelation
KElement.SimpleElementNameComparator, KElement.SimpleNodeComparator, KElement.SingleAttributeComparator, KElement.SingleXPathComparator
firstChild, fNodeListCache, ownerDocument
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
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
DERIVATION_EXTENSION, DERIVATION_LIST, DERIVATION_RESTRICTION, DERIVATION_UNION
Constructor and Description |
---|
JDFResource(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
String qualifiedName)
Constructor for JDFResource
|
JDFResource(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
String myNamespaceURI,
String qualifiedName)
Constructor for JDFResource
|
JDFResource(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
String myNamespaceURI,
String qualifiedName,
String myLocalName)
Constructor for JDFResource
|
Modifier and Type | Method and Description |
---|---|
protected void |
addPartIDKey(JDFResource.EnumPartIDKey partType)
Adds a new PartIDKey to the root first checks for existence
|
JDFResource |
addPartition(JDFResource.EnumPartIDKey partType,
String value)
Adds a new part to this node, also handles PartIDKeys in the root etc.
|
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
|
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'
|
void |
addPipePartIDKey(JDFResource.EnumPartIDKey partType)
Adds a new PipePartIDKey to the root, first checks for existence
|
JDFContact |
appendContact()
Appends new Contact element to the end of 'this'
|
JDFIdentical |
appendIdentical()
append an identical element,
|
JDFIdentificationField |
appendIdentificationField()
Appends new child IdentificationField element to the end of 'this'
|
JDFLocation |
appendLocationElement()
Appends new child Location element to the end of 'this'
|
JDFQualityControlResult |
appendQualityControlResult()
Appends new child QualityControlResult element to the end of 'this'
|
JDFSourceResource |
appendSourceResource()
appends a new SourceResource element
|
void |
appendSpawnIDs(String value)
Appends new SpawnID token ('value') to the list of values of SpawnIDs attribute, if it is not yet in the list
|
JDFResource |
appendUpdate(String updateID)
Deprecated.
updates never really took off in JDF
|
String |
buildXPath(String relativeTo,
int methCountSiblings)
Gets the XPath full tree representation of 'this'
|
void |
cleanResourceAttributes()
remove any resource specific attribute when making this to an element
|
void |
clearPartitions()
make sure we don't have any old crap
|
void |
clonePartitions(JDFResource r,
VString partIDKeys)
applies the partitioning of r to this.
|
void |
collapse(boolean bCollapseToNode)
Deprecated.
- use 2 parameter version
|
void |
collapse(boolean bCollapseToNode,
boolean bCollapseElements)
collapse all redundant attributes and elements
|
boolean |
consistentPartIDKeys(JDFResource.EnumPartIDKey key)
Tests, if this leaf has a consistent PartIDKey as specified by key
|
protected boolean |
consistentPartIDKeys(JDFResource.EnumPartIDKey key,
JDFResource root,
VString partIDKeys)
Tests, if this leaf has a consistent PartIDKey as specified by key
|
boolean |
consistentPipePartIDKeys(JDFResource.EnumPartIDKey key)
Tests, if this leaf has a consistent PartIDKey as specified by key
|
boolean |
containsData() |
KElement |
copyElement(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.
|
VElement |
createPartitions(VJDFAttributeMap vPartMap,
VString vPartIDKeys)
Recursively adds the partition leaves defined in vPartMap
|
JDFSourceResource |
createSourceResource(JDFResource source)
create a sourceresource element that pints to source
|
KElement |
deleteNode()
Deletes itself from its parent
|
boolean |
deleteUnLinked()
deletes this if it is no longer linked by either resource refs or resource links
|
void |
expand(boolean bDeleteFromNode)
Expand so that each leaf is complete (except for ID)
|
void |
expandLeaf()
expand a leaf to contain the data of all intermediate leaves
|
String |
getAgentName()
Gets string attribute AgentName
|
String |
getAgentVersion()
Gets string attribute AgentVersion
|
String |
getAlternateBrand()
Gets string attribute AlternateBrand
|
double |
getAmount()
Gets double attribute Amount
|
double |
getAmountProduced()
Gets double attribute AmountProduced
|
double |
getAmountRequired()
Gets double attribute AmountRequired
|
String |
getAttribute(String attrib,
String nameSpaceURI,
String def)
Gets an attribute value.
|
JDFAttributeMap |
getAttributeMap()
Get the Attribute Map of the actual element also following inheritance
|
JDFResource |
getAttributePart(String key)
Gets the parent element that actually contains the attribute key in a partitioned resource
|
VElement |
getAttributePartVector(String key)
Gets a unique vector of resource leaf elements that actually contain the attribute key
|
VString |
getAttributeVector_JDFResource()
Gets all local attribute names as an vector of strings
|
VString |
getAttributeVector()
Gets all local attribute names as an vector of strings.
|
String |
getAuthor()
Gets string attribute Author
|
static boolean |
getAutoAgent() |
static boolean |
getAutoSubElementClass()
if true, subelements are initialized with a class attribute
|
String |
getBatchID()
Gets string attribute BatchID
|
String |
getBinderySignatureName()
Gets string attribute BinderySignatureName
|
String |
getBlockName()
Gets string attribute BlockName
|
String |
getBrand()
Gets string attribute Brand
|
JDFIntegerRangeList |
getBundleItemIndex()
Gets range attribute BundleItemIndex
|
String |
getCatalogDetails()
Gets string attribute CatalogDetails
|
String |
getCatalogID()
Gets string attribute CatalogID
|
JDFIntegerRangeList |
getCellIndex()
Gets range attribute CellIndex
|
VElement |
getChildElementVector(String element,
String nameSpaceURI,
JDFAttributeMap mAttrib,
boolean bAnd,
int maxSize,
boolean bResolveTarget)
Gets all children from the actual element matching the given conditions also get the non-overwritten elements in the parents for partitioned resources
|
<a extends KElement> |
getChildrenByClass(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 |
String |
getCondition()
Gets string attribute Condition
|
JDFContact |
getContact()
Gets of 'this' an existing child Contact element
|
JDFContact |
getCreateContact()
Gets of 'this' child Contact element, optionally creates it, if it doesn't exist.
|
KElement |
getCreateElement_JDFResource(String nodeName,
String nameSpaceURI,
int iSkip)
Recursive GetElement that also checks parent nodes up to the part root this was added in order to implement the c++ JDFResource::GetCreateElement
|
JDFIdentical |
getCreateIdentical()
get or create the identical element,
|
JDFIdentificationField |
getCreateIdentificationField(int iSkip)
Gets of 'this' the iSkip-th IdentificationField element, optionally creates it, if it doesn't exist.
|
JDFLocation |
getCreateLocationElement()
Gets of 'this' child Location element, optionally creates it, if it doesn't exist.
|
JDFResource |
getCreatePartition(JDFAttributeMap partMap,
VString vPartKeys)
Recursively adds the partition leaves defined in partMap
|
JDFResource |
getCreatePartition(JDFResource.EnumPartIDKey key,
String value,
VString vPartIDKeys)
Gets the first part that matches key-value if it does not exist, create it
|
JDFQualityControlResult |
getCreateQualityControlResult(int iSkip)
Gets of 'this' the iSkip-th QualityControlResult element, optionally creates it, if it doesn't exist.
|
VElement |
getCreator(boolean bCreate)
Gets the creators (bCreate=true) or consumers (bCreate=false) of this resource
|
JDFResource |
getDeepPart(JDFAttributeMap m,
boolean bIncomplete)
Deprecated.
use the partUsage dependent version instead
|
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 |
String |
getDeliveryUnit(int iUnit)
Gets attribute DeliveryUnit
|
JDFResource |
getDirectPartition(int i) |
Vector<? extends KElement> |
getDirectPartitionVector() |
JDFIntegerRangeList |
getDocCopies()
Gets range attribute DocCopies
|
JDFIntegerRangeList |
getDocIndex()
Gets range attribute DocIndex
|
JDFIntegerRangeList |
getDocRunIndex()
Gets range attribute DocRunIndex
|
JDFIntegerRangeList |
getDocSheetIndex()
Gets range attribute DocSheetIndex
|
KElement |
getElement(String nodeName,
String nameSpaceURI,
int iSkip)
same as KElement.getElement, but also follows references and searches parents
|
int |
getFountainNumber()
Gets integer attribute FountainNumber
|
double |
getGrossWeight()
Gets double attribute GrossWeight
|
JDFIdentical |
getIdentical()
get the identical element,
|
JDFAttributeMap |
getIdenticalMap()
return the PartMap of .
|
JDFResource |
getIdenticalTarget()
get the target of the identical element, this if no identical exists
|
JDFIdentificationField |
getIdentificationField(int iSkip)
Gets of 'this' the iSkip-th child IdentificationField element
|
protected String |
getIDPrefix()
gets a prefix for ID creation for the element
|
Vector<JDFResource.EnumPartIDKey> |
getImplicitPartitions()
Gets a list of all partition keys that this resource may be implicitly partitioned by, e.g.
|
VString |
getInvalidAttributes(JDFElement.EnumValidationLevel level,
boolean bIgnorePrivate,
int nMax)
Typesafe validator.
|
String |
getItemNames()
Gets string attribute ItemNames
|
JDFIntegerRangeList |
getLayerIDs()
Gets range attribute LayerIDs
|
JDFResource |
getLeaf(int i)
get a leaf, null if index out of bounds
|
VElement |
getLeaves(boolean bAll)
Gets a list of all direct leaves
|
VElement |
getLinks(String linkName)
Deprecated.
[BLD009] use getLinks(linkName, null)
|
VElement |
getLinks(String linkName,
String nameSpaceURI)
Gets all elements with name linkName, which contain id/idrefs that point to this resource
|
VElement |
getLinksAndRefs()
Deprecated.
use getLinksAndRefs(true,true);
|
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, use LinkRefFinder and access the complete map of references from within the loop @see LinkRefFinder |
String |
getLinkString()
Gets nodename of a ResourceLink that links to 'this'
|
String |
getLocalPartitionKey()
get the local partition key of this leaf
|
String |
getLocation()
Gets string attribute Location
|
JDFLocation |
getLocationElement()
Gets of 'this' an existing child Location element
|
boolean |
getLock()
Deprecated.
[BLD009] use getLocked
|
boolean |
getLocked()
Gets boolean attribute Locked; defaults to false.
|
JDFResource.EnumLotControl |
getLotControl()
Gets typesafe enumerated value of attribute LotControl; defaults to LotControl_Explicit
|
String |
getManufacturer()
Gets string attribute Manufacturer
|
VElement |
getNodesWithSpawnID(String spawnID)
Gets of 'this' all leaves and intermediate nodes that have an explicit spawnID set
|
boolean |
getNoOp()
Gets boolean attribute NoOp; defaults to false
|
String |
getOption()
Gets string attribute Option
|
JDFIntegerRangeList |
getPageNumber()
Gets range attribute PageNumber
|
JDFResource |
getParentPartition()
get the intermediate or root partition of this, null if we are the root
|
VString |
getPartIDKeys()
Gets a list of all valid part keys for this resource
|
JDFResource |
getPartition(JDFAttributeMap m,
boolean bIncomplete)
Deprecated.
use getPartition(JDFAttributeMap m, JDFResource.EnumPartUsage partUsage)
|
JDFResource |
getPartition(JDFAttributeMap m,
JDFResource.EnumPartUsage partUsage)
Gets the first part that matches mAttribute
|
JDFResource |
getPartition(JDFResource.EnumPartIDKey key,
String value,
boolean bIncomplete)
Deprecated.
use getPartition(JDFAttributeMap m, JDFResource.EnumPartUsage partUsage)
|
VElement |
getPartitionLeafVector(JDFAttributeMap m,
JDFResource.EnumPartUsage partUsage)
Gets the vector of parts (resource leaves or nodes) that match mAttribute
|
HashMap<JDFAttributeMap,JDFResource> |
getPartitionMap() |
VElement |
getPartitionVector(JDFAttributeMap m,
boolean bIncomplete)
Deprecated.
use getPartitionVector(JDFAttributeMap m, EnumPartUsage partUsage)
|
VElement |
getPartitionVector(JDFAttributeMap m,
JDFResource.EnumPartUsage partUsage)
Gets the vector of parts (resource leaves or nodes) that match mAttribute
|
VElement |
getPartitionVector(JDFResource.EnumPartIDKey key,
String value,
boolean bIncomplete)
Deprecated.
use getPartitionVector(JDFAttributeMap m, EnumPartUsage partUsage)
|
VElement |
getPartitionVector(VJDFAttributeMap vm,
JDFResource.EnumPartUsage partUsage)
Gets the vector of parts (resource leaves or nodes) that match mAttribute
|
JDFAttributeMap |
getPartMap()
Gets a map of all partition key-value pairs for this leaf / node this includes a recursion to the part root;
|
JDFAttributeMap |
getPartMap(VString ids)
Gets a map of all partition key-value pairs for this leaf / node.
|
VJDFAttributeMap |
getPartMapVector(boolean bIntermediate)
Gets a vector of maps of all partition attribute key-value pairs for this node and all its children
|
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.
|
VString |
getPartValues(JDFResource.EnumPartIDKey partType)
Gets a list of the values for attribute part type within the leaves
|
String |
getPartVersion()
Gets string attribute PartVersion
|
String |
getPipeID()
Gets string attribute PipeID
|
VString |
getPipePartIDKeys()
Deprecated.
|
Vector<JDFResource.EnumPartIDKey> |
getPipePartIDKeysEnum()
Gets a list of all valid pipe part key enums for this resource
|
String |
getPipeProtocol()
Get string attribute PipeProtocol
|
String |
getPipeURL()
Gets string attribute PipeURL
|
JDFResourcePool |
getPool()
Deprecated.
[BLD009] use GetResourcePool instead
|
String |
getPreflightRule()
Gets string attribute PreflightRule
|
JDFAutoPart.EnumPreviewType |
getPreviewType()
Gets typesafe enumerated value of attribute PreviewType
|
String |
getProductID()
Gets string attribute ProductID
|
JDFQualityControlResult |
getQualityControlResult(int iSkip)
Gets of 'this' the iSkip-th child QualityControlResult element
|
JDFResource.EnumResourceClass |
getResourceClass()
Gets typesafe enumerated value of attribute Class
corresponds to C++ JDFResource::GetClass(), getClass() already exists in Java
|
JDFResourcePool |
getResourcePool()
Gets the resourcepool that 'this' lives in
|
JDFResource |
getResourceRoot()
Gets the root resource of 'this'
|
static JDFResource |
getResourceRoot(KElement elem)
Gets the root resource of 'this'
|
double |
getResourceWeight()
Gets double attribute ResourceWeight
|
JDFResource.EnumResStatus |
getResStatus(boolean bRecurseRefs)
Gets typesafe enumerated value of attribute Status
|
String |
getRibbonName()
Gets string attribute RibbonName
|
VString |
getRootPartAtts()
get the list of attributes that are administrative only
|
String |
getRun()
Gets string attribute Run
|
JDFIntegerRangeList |
getRunIndex()
Gets range attribute RunIndex
|
int |
getRunPage()
Gets integer attribute RunPage
|
String |
getRunSet()
Gets string attribute RunSet
|
VString |
getRunTags()
Gets NMTOKENS attribute RunTags
|
JDFIntegerRangeList |
getSectionIndex()
Gets range attribute SectionIndex
|
String |
getSeparation()
Gets string attribute Separation
|
JDFIntegerRangeList |
getSetDocIndex()
Gets range attribute SetDocIndex
|
JDFIntegerRangeList |
getSetIndex()
Gets range attribute SetIndex
|
JDFIntegerRangeList |
getSetRunIndex()
Gets range attribute SetRunIndex
|
JDFIntegerRangeList |
getSetSheetIndex()
Gets range attribute SetSheetIndex
|
JDFIntegerRangeList |
getSheetIndex()
Gets range attribute SheetIndex
|
String |
getSheetName()
Gets string attribute SheetName
|
JDFAutoPart.EnumSide |
getSide()
Gets typesafe enumerated value of attribute Side
|
String |
getSignatureName()
Gets string attribute SignatureName
|
boolean |
getSortAmount()
Gets boolean attribute SortAmount
|
JDFIntegerRangeList |
getSorting()
Gets range attribute Sorting
|
JDFSourceResource |
getSourceResource(int i)
gets an existing SourceResource element
|
VString |
getSpawnIDs(boolean bInherit)
Gets string attribute SpawnIDs
|
JDFResource.EnumSpawnStatus |
getSpawnStatus()
Gets typesafe enumerated value of attribute SpawnStatus
|
String |
getStationName()
Gets string attribute StationName
|
JDFResource.EnumResStatus |
getStatus(boolean bRecurseRefs)
Deprecated.
use getResStatus(bRecurseRefs)
|
JDFResource.EnumResStatus |
getStatusFromLeaves(boolean bAll)
Gets the minimum typesafe enumerated value of attribute Status from the value of all leaves
|
protected AttributeInfo |
getTheAttributeInfo() |
protected ElementInfo |
getTheElementInfo() |
JDFXYPair |
getTileID()
Gets XYPair attribute TileID
|
String |
getUnit()
Gets string attribute Unit
|
JDFResource |
getUpdate(int iSkip)
Deprecated.
updates never really took off in JDF
|
JDFResource |
getUpdate(String updateID)
Deprecated.
updates never really took off in JDF
|
String |
getUpdateID()
Gets string attribute UpdateID
|
String |
getUpdateName()
Deprecated.
updates never really took off in JDF
|
VElement |
getUpdateVector()
Deprecated.
updates never really took off in JDF
|
JDFResource.EnumResourceClass |
getValidClass()
get the fixed class for this resource,
|
String |
getWebName()
Gets string attribute WebName
|
String |
getWebProduct()
Gets string attribute WebProduct
|
String |
getWebSetup()
Gets string attribute WebSetup
|
boolean |
hasAttribute(String attrib,
String nameSpaceURI,
boolean bInherit)
Checks if the actual element has a specific attribute
this version checks within the resource and its partitioned parent xml elements |
boolean |
hasPipePartIDKey(JDFResource.EnumPartIDKey key)
Tests, if this leaf has a PipePartIDKey as specified by key
|
boolean |
hasUpdate()
Deprecated.
updates never really took off in JDF
|
boolean |
init()
default initialization
|
Node |
insertBefore(Node src,
Node arg1) |
boolean |
isAvailable(boolean bRecurseRefs)
Deprecated.
use getStatus default: IsAvailable(false)
|
boolean |
isLeaf()
Tests, whether 'this' is the end of a partition (i.e. there is no element with the same name directly below)
|
boolean |
isParameter()
Checks, whether this resourse is a parameter resource
|
boolean |
isPartitioningCompatible(JDFResource other)
Tests if the given resources are compatible regarding their partitioning.
|
boolean |
isPartitioningCompatible(VString vsPartitions)
Tests if the resource is compatible with the given partition keys.
|
boolean |
isPhysical()
Checks, whether the resource is one of the physical resource classes
|
boolean |
isQuantity()
Checks, whether this resourse is a quantity resource.
|
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.
|
boolean |
isResourceRoot()
Tests, whether the first ancestor of 'this' is in ValidParentNodeNames - must be one of: DropItemIntent,CustomerInfo,NodeInfo,ResourcePool,PipeParams ,ResourceInfo,ResourceCmdParams
|
boolean |
isResourceRootRoot()
Tests, whether the first ancestor of 'this' is in validRootParentNodeNames()
must be one of: ResourcePool,PipeParams,ResourceInfo,ResourceCmdParams |
boolean |
isRootElement()
Tests, whether 'this' is root of partition (i.e. there is no element with the same name over 'this')
|
boolean |
isSpawnAllowed()
Tests if a spawn of the given partition of the resource is allowed (by means of the JDF specification).
|
boolean |
isValid(JDFElement.EnumValidationLevel level)
Validator of 'this'
|
void |
lock(boolean bLock)
Deprecated.
[BLD009] use setLocked()
|
JDFResource |
makeRootResource(String alias,
JDFElement parentPool,
boolean bLinkHere)
Makes from 'this' resource subelement a root resource element (direct child) of the specified parentPool or (in default case) of ResourcePool, where it lives.
|
boolean |
matchesString(String namedResLink)
check whether this resource matches a named resource string
|
JDFResource |
mergeCloneResource(JDFResource oldRes)
Clone the resource element oldRes and merge it with this resource
|
KElement |
mergeElement(KElement kElem,
boolean bDelete)
merge nodes in a way that no duplicate elements are created
attention !! |
void |
mergePartition(JDFResource resToMerge,
String spawnID,
JDFResource.EnumAmountMerge amountPolicy,
boolean bLocalResource)
Deprecated.
used only by merge - moved there
|
void |
mergeSpawnIDs(JDFResource resToMerge,
VString previousMergeIDs)
Deprecated.
use JDFMerge.mergeSpawnIDS
|
KElement |
moveElement(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.
|
String |
newModifiedID()
Generates the id of a modified resource
|
int |
numChildElements(String nodeName,
String nameSpaceURI)
The same as JDFElement.numChildElements but also follows References
|
int |
numUpdates()
Deprecated.
updates never really took off in JDF
|
void |
reducePartitions(VJDFAttributeMap vValidParts)
Reduces partition so that only the parts that overlap with vResources remain
|
void |
reduceParts(Vector vParts)
Deprecated.
[BLD009] not in C++ anymore, not used internally here
|
VJDFAttributeMap |
reducePartVector(VJDFAttributeMap vParts)
Finds the canonical vector of parts that defines the vector of parts that fits to vParts.
|
void |
removeAttribute(String attrib,
String nameSpaceURI)
Removes local attributes
|
void |
removeAttributeFromLeaves(String attrib,
String nameSpaceURI)
Removes attributes, also removes overwrites in any child parts
|
int |
removeFromSpawnIDs(String value)
Removes SpawnID token ('value') from the list of values of SpawnIDs attribute, if it is in the list
|
void |
removeInheritedAttributes(String attrib,
String nameSpaceURI)
Removes all local and inherited attributes down to the resource root
|
void |
removeUpdate(int iSkip)
Deprecated.
updates never really took off in JDF
|
void |
removeUpdate(String updateID)
Deprecated.
updates never really took off in JDF
|
KElement |
replaceElement(KElement src)
Replaces 'this' with src.
|
void |
setAgentName(String value)
Sets attribute AgentName
|
void |
setAgentVersion(String value)
Sets attribute AgentVersion
|
void |
setAlternateBrand(String value)
Sets attribute AlternateBrand
|
void |
setAmount(double amount)
Sets attribute Amount
|
void |
setAmountProduced(double value)
Sets attribute AmountProduced
|
void |
setAmountRequired(double value)
Sets attribute AmountRequired
|
void |
setAuthor(String value)
Sets attribute Author
|
static void |
setAutoAgent(boolean _autoAgent) |
static void |
setAutoSubElementClass(boolean autoSubElementClass)
if true, subelements are initialized with a class attribute
|
void |
setAvailable(boolean bAvailable)
Deprecated.
use SetStatus(EnumResStatus) default: setAvailable(true)
|
void |
setBatchID(String value)
Sets attribute BatchID
|
void |
setBinderySignatureName(String value)
Sets attribute BinderySignatureName
|
void |
setBlockName(String value)
Sets attribute BlockName
|
void |
setBrand(String value)
Sets attribute Brand
|
void |
setBundleItemIndex(JDFIntegerRangeList value)
Sets attribute BundleItemIndex
|
void |
setCatalogDetails(String value)
Sets attribute CatalogDetails
|
void |
setCatalogID(String value)
Sets attribute CatalogID
|
void |
setCellIndex(JDFIntegerRangeList value)
Sets attribute CellIndex
|
void |
setCondition(String value)
Sets attribute Condition
|
void |
setDeliveryUnit(int iUnit,
String value)
Sets attribute DeliveryUnit
|
void |
setDocCopies(JDFIntegerRangeList value)
Sets attribute DocCopies
|
void |
setDocIndex(JDFIntegerRangeList value)
Sets attribute DocIndex
|
void |
setDocRunIndex(JDFIntegerRangeList value)
Sets attribute DocRunIndex
|
void |
setDocSheetIndex(JDFIntegerRangeList value)
Sets attribute DocSheetIndex
|
void |
setFountainNumber(int value)
Sets attribute FountainNumber
|
void |
setGrossWeight(double value)
Sets attribute GrossWeight
|
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
|
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]
|
void |
setItemNames(String value)
Sets attribute ItemNames
|
void |
setLayerIDs(JDFIntegerRangeList value)
Sets attribute LayerIDs
|
void |
setLocation(String value)
Sets attribute Location
|
void |
setLocked(boolean value)
Sets attribute Locked
|
void |
setLotControl(JDFResource.EnumLotControl value)
Sets attribute PartUsage
|
void |
setManufacturer(String value)
Sets attribute Manufacturer
|
void |
setNoOp(boolean value)
Sets attribute NoOp
|
void |
setOption(String value)
Sets attribute Option
|
void |
setPageNumber(JDFIntegerRangeList value)
Sets attribute PageNumber
|
void |
setPartIDKey(JDFResource.EnumPartIDKey key,
String value)
Sets the value of attribute, specified by key
|
void |
setPartIDKeys(VString partIDKeys)
set the partIDKeys attribute of the root of this
|
void |
setPartUsage(JDFResource.EnumPartUsage value)
Sets attribute PartUsage
|
void |
setPartVersion(String value)
Sets attribute PartVersion
|
void |
setPipeID(String value)
Sets attribute PipeID
|
void |
setPipePartIDKey(JDFResource.EnumPartIDKey key,
String value)
Sets the value of attibute, specified by key
|
void |
setPipeProtocol(String value)
Set attribute PipeProtocol
|
void |
setPipeURL(String value)
Sets attribute PipeURL
|
void |
setPreflightRule(String value)
Sets attribute PreflightRule
|
void |
setPreviewType(JDFAutoPart.EnumPreviewType value)
Sets attribute PreviewType
|
void |
setProductID(String value)
Sets attribute ProductID
|
void |
setResourceClass(JDFResource.EnumResourceClass value)
Sets attribute Class
corresponds to C++ JDFResource::SetClass()
|
void |
setResourceWeight(double value)
Sets attribute ResourceWeight
|
void |
setResStatus(JDFResource.EnumResStatus value,
boolean bCleanLeaves)
Sets attribute Status
|
void |
setRibbonName(String value)
Sets attribute RibbonName
|
void |
setRun(String value)
Sets attribute Run
|
void |
setRunIndex(JDFIntegerRangeList value)
Sets attribute RunIndex
|
void |
setRunPage(int value)
Sets attribute RunPage
|
void |
setRunSet(String value)
Sets attribute RunSet
|
void |
setRunTags(VString value)
Sets attribute RunTags
|
void |
setSectionIndex(JDFIntegerRangeList value)
Sets attribute SectionIndex
|
void |
setSeparation(String value)
Sets attribute Separation
|
void |
setSetDocIndex(JDFIntegerRangeList value)
Sets attribute SetDocIndex
|
void |
setSetIndex(JDFIntegerRangeList value)
Sets attribute SetIndex
|
void |
setSetRunIndex(JDFIntegerRangeList value)
Sets attribute SetRunIndex
|
void |
setSetSheetIndex(JDFIntegerRangeList value)
Sets attribute SetSheetIndex
|
void |
setSheetIndex(JDFIntegerRangeList value)
Sets attribute SheetIndex
|
void |
setSheetName(String value)
Sets attribute SheetName
|
void |
setSide(JDFAutoPart.EnumSide value)
Sets attribute Side
|
void |
setSignatureName(String value)
Sets attribute SignatureName
|
void |
setSortAmount(boolean value)
Sets attribute SortAmount
|
void |
setSorting(JDFIntegerRangeList value)
Sets attribute Sorting
|
void |
setSpawnIDs(String spawndID)
Sets attribute SpawnIDs
|
void |
setSpawnIDs(VString vStr)
Sets attribute SpawnIDs
|
void |
setSpawnStatus(JDFResource.EnumSpawnStatus s)
Sets attribute SpawnStatus
|
void |
setStationName(String value)
Sets attribute StationName
|
void |
setStatus(JDFResource.EnumResStatus value)
Deprecated.
use setResStatus(value, false)
|
void |
setStatus(JDFResource.EnumResStatus value,
boolean bCleanLeaves)
Deprecated.
use setResStatus(value, bCleanLeaves)
|
void |
setTileID(JDFXYPair value)
Sets attribute TileID
|
void |
setUnit(String value)
Sets attribute Unit
|
static void |
setUnpartitiondImplicit(boolean bUnpartitiondImplicit)
if set to true, the default @PartUsage of unpartitioned resources is Implicit.
|
void |
setUpdateID(String value)
Sets attribute UpdateID
|
void |
setWebName(String value)
Sets attribute WebName
|
void |
setWebProduct(String value)
Sets attribute WebProduct
|
void |
setWebSetup(String value)
Sets attribute WebSetup
|
void |
spawnPart(String spawnID,
JDFResource.EnumSpawnStatus spawnStatus,
VJDFAttributeMap vParts,
boolean bStayInMain)
Deprecated.
use JDFSpawn.spawnPart
|
String |
toString()
toString
|
boolean |
unpartition(boolean bForce)
unpartition this resource by collapsing and removing any empty leaves
|
void |
unSpawnPart(String spawnID,
JDFResource.EnumSpawnStatus spawnStatus)
Find the appropriate partition for a given SpawnID and undo the spawn procedure
|
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
|
String |
updateAttributeFromLeaves(String attName,
String nsURI,
boolean bDirect)
update vattribute value to the value of the attribute in the leaves
|
boolean |
validClass()
Typesafe attribute validation of Class
corresponds to C++ JDFResource::ValidClass()
|
boolean |
validResourceClass(JDFElement.EnumValidationLevel level)
Typesafe attribute validation of Class
corresponds to C++ JDFResource::ValidClass()
|
appendAnchor, appendBestEffortExceptions, appendComment, appendElement, appendGeneralID, appendGeneralID, appendGeneralID, appendHRef, appendHRef, appendMustHonorExceptions, appendOperatorInterventionExceptions, appendPreview, appendrRefs, attributeType, clearTargets, cloneNewDoc, copyInto, deprecatedAttributes, eraseDefaultAttributes, exclusiveOneOfAttribute, exclusiveOneOfElement, fixVersion, getAllRefs, getAtrType, getAttributeInfo, getBestEffortExceptions, getChildElement, getChildElements, getChildElementVector_JDFElement, getChildIds, getChildrenByTagName, getChildrenByTagName, getChildWithAttribute, getChildWithMatchingAttribute, getComment, getComment, getCommentURL, getCreateComment, getCreatePreview, getCreateRefElement, getDeepElementByID, getDefaultAttributeMap, getDefaultJDFVersion, getDeprecatedAttributes, getDeprecatedElements, getDescriptiveName, getElement_JDFElement, getElementIDPrefix, getElementNameVector, getEnumAttribute, getEnumerationsAttribute, getEnumerationsAttribute, getEnumforAttribute, getEnumNodeName, getEnumString, getFirstVersion, getGeneralID, getGeneralID, getGeneralID, getGeneralIDMap, getGeneralIDVectorMap, getHRef, getHRefs, getHRefs, getInsertElements, getInsertElementVector, getInvalidElements_JDFElement, getInvalidElements, getJDFRoot, getJMFRoot, getLastVersion, getLinkFromUserData, getLinkRoot, getMaxVersion, getMissingAttributes, getMissingAttributeVector, getMissingElements, getMissingElementVector, getMustHonorExceptions, getNamesVector, getOperatorInterventionExceptions, getOwnerDocument_JDFElement, getParentJDF, getParentJDF, getPartMapVector, getPrereleaseAttributes, getPrereleaseElements, getPreview, getRefElement, getRefElements, getRefString, getrRefs, getSchemaURL, getSchemaURL, getSchemaURL, getSettingsPolicy, getStatus, getTarget_JDFElement, getTarget, getTarget, 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, 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, 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
addAttribute, addAttribute, addNameSpace, ancestorDistance, appendAttribute, appendCData, appendCData, appendChild, appendElement, appendElementN, appendElementRaw, appendEntityReference, appendText, appendTextElement, appendXMLComment, appendXMLComment, buildRelativeXPath, buildXPath, buildXPath, clone, copyAttribute, copyAttribute, copyElements, copyXPathValue, createRoot, eraseEmptyAttributes, eraseEmptyNodes, fillHashSet, fitsName_KElement, fitsName, flush, generateDotID, getAttribute_KElement, getAttribute_KElement, getAttribute, getAttributeMap_KElement, getAttributeRaw, getAttributeVector_KElement, getBoolAttribute, getCData, getChildAttributeList, getChildByTagName, getChildElementArray, getChildElementVector_KElement, getChildElementVector, getChildElementVector, getChildFromList, getChildFromList, getChildNode, getChildNodes_KElement, getChildNodeVector, getChildrenByTagName_KElement, getChildrenFromList, getChildrenIgnoreList, getChildrenWithAttribute, getCreateChildWithAttribute, getCreateElement_KElement, getCreateElement, getCreateElement, getCreateXPathElement, getDeepElement, getDeepParent, getDeepParent, getDeepParentChild, getDeepParentNotName, getDocRoot, getDOMAttr, getElement_KElement, getElement, getElementByClass, getElementHashMap, getElementsByTagName_KElement, getFirstChildElement, getFirstChildElement, getFirstChildElement, getFirstElementNode, getID, getInheritedAttribute, getInheritedElement, getInheritedXPathAttribute, getIntAttribute, getLocalNameStatic, getLongAttribute, getMultipleIDs, getNamespaceURI, getNamespaceURIFromPrefix, getNextElementNode, getNextSiblingElement, getNextSiblingElement, getNextSiblingElement, getNonEmpty_KElement, getNonEmpty, getNumCDatas, getNumChildNodes, getNumChildText, getNumXMLComments, getOwnerDocument_KElement, getParentNode_KElement, getPreviousSiblingElement, getPreviousSiblingElement, getRealAttribute, getTarget_KElement, getText, getText, getTree, getTreeElement, getXMLComment, getXMLNSNameSpace, getXMLNSPrefix, getXPathAttribute, getXPathAttributeMap, getXPathElement, getXPathElementVector, getXPathValueMap, getXSIType, hasAttribute_KElement, hasAttribute, hasAttributes, hasChildElement, hasChildElements, hasChildNodes, hasChildText, hasNonEmpty_KElement, hasNonEmpty, hasXPathNode, includesAttribute, includesAttributes, insertAt, isAncestor, isEqual, isWildCard, matchesPath, matchesPathName, moveAttribute, moveAttribute, moveElements, moveMe, normalize, numChildElements_KElement, numChildNodes, numChildNodes, numChildrenByClass, numSiblingElements, pushUp, removeAllText, removeAttribute_KElement, removeAttribute, removeAttributeNode, removeAttributeNS, removeAttributes, removeCData, removeChildNode, removeChildren, removeChildrenByClass, removeChildText, removeExtensions, removeFromAttribute, removeXMLComment, removeXPathAttribute, removeXPathElement, renameAttribute, renameAttribute, renameElement, 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, setXPathAttribute, setXPathValue, setXPathValues, setXSIType, sortChild, sortChild, sortChildren, sortChildren, sortChildren, sortChildren, toDisplayXML, toXML, toXML, uniqueID, write2File, write2File, write2Stream, xmlNameSpace, xmlnsLocalName, xmlnsPrefix
getBaseURI, getLocalName, getPrefix, getTypeName, getTypeNamespace, isDerivedFrom, setType, setValues
cloneNode, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getDefaultAttributes, getElementsByTagName, getElementsByTagNameNS, getNodeName, getNodeType, getSchemaTypeInfo, getTagName, getXercesAttribute, hasAttributeNS, isEqualNode, reconcileDefaultAttributes, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setOwnerDocument, setReadOnly, setupDefaultAttributes, setXercesAttributeNode, synchronizeData
getChildNodes, getChildNodesUnoptimized, getFirstChild, getLastChild, getLength, getOwnerDocument, getTextContent, hasChildNodes, item, setTextContent, synchronizeChildren
getNextSibling, getParentNode, getPreviousSibling
addEventListener, changed, changes, compareDocumentPosition, compareTreePosition, dispatchEvent, getContainer, getFeature, getNodeNumber, getNodeValue, getReadOnly, getUserData, getUserData, getUserDataRecord, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, needsSyncChildren, removeEventListener, setUserData, setUserData
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS
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
public JDFResource(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String qualifiedName)
myOwnerDocument
- qualifiedName
- public JDFResource(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String myNamespaceURI, String qualifiedName)
myOwnerDocument
- myNamespaceURI
- qualifiedName
- protected AttributeInfo getTheAttributeInfo()
getTheAttributeInfo
in class JDFElement
protected ElementInfo getTheElementInfo()
getTheElementInfo
in class JDFElement
public String toString()
toString
in class JDFElement
Object.toString()
@Deprecated public void setAvailable(boolean bAvailable)
bAvailable
- @Deprecated public boolean isAvailable(boolean bRecurseRefs)
bRecurseRefs
- if bRecurseRefs is set to true, also recurses into all resources linked by rRefs and returns true if the minimum Status is Status_Availablepublic boolean isRootElement()
public boolean isQuantity()
public boolean isParameter()
@Deprecated public boolean getLock()
@Deprecated public void lock(boolean bLock)
bLock
- public boolean isPhysical()
public JDFResource getResourceRoot()
JDFException
- if GetResourceRoot ran into the JDF node while searchingpublic static JDFResource getResourceRoot(KElement elem)
elem
- the element to get the root ofJDFException
- if GetResourceRoot ran into the JDF node while searching@Deprecated public JDFResourcePool getPool()
public boolean init()
public JDFResource makeRootResource(String alias, JDFElement parentPool, boolean bLinkHere)
alias
- id attribute of the newly created resourceparentPool
- the pool where the newly created resource is stored bLinkHere
- if true, creates a refelement (link) to the newly created resource at the position where 'this' originally resided.public VElement getCreator(boolean bCreate)
bCreate
- switcher for getter: if true gets creators, otherwise gets consumers@Deprecated public void mergePartition(JDFResource resToMerge, String spawnID, JDFResource.EnumAmountMerge amountPolicy, boolean bLocalResource)
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 RWJDFException
- if here is an attempt to merge incompatible resourcesJDFException
- if here is an attempt to merge incompatible partitionspublic void setPartIDKeys(VString partIDKeys)
partIDKeys
- the value to set key topublic JDFResource mergeCloneResource(JDFResource oldRes)
oldRes
- the resource element to clone and to merge with this resource@Deprecated public VElement getLinks(String linkName)
linkName
- defaults to anypublic VElement getLinks(String linkName, String nameSpaceURI)
linkName
- defaults to anynameSpaceURI
- attribute namespace you are searching in@Deprecated public VElement getLinksAndRefs()
public VElement getLinksAndRefs(boolean bLink, boolean bRef)
LinkRefFinder
and access the complete map of references from within the loop @see LinkRefFinder
bLink
- if true, include resource linksbRef
- if true include resource refspublic boolean isResourceElement()
@Deprecated public JDFResource getPartition(JDFAttributeMap m, boolean bIncomplete)
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, public JDFResource getPartition(JDFAttributeMap m, JDFResource.EnumPartUsage partUsage)
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 specifiedpublic HashMap<JDFAttributeMap,JDFResource> getPartitionMap()
@Deprecated public JDFResource getPartition(JDFResource.EnumPartIDKey key, String value, boolean bIncomplete)
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 specifiedpublic void clonePartitions(JDFResource r, VString partIDKeys)
r
- the resource from which to clone the partitioningpartIDKeys
- the partIDKeys to clone, if null use the existing list from rJDFException
- if this is already inconsistently partitionedpublic JDFResource getCreatePartition(JDFAttributeMap partMap, VString vPartKeys)
partMap
- the map of part keysvPartKeys
- the vector of partIDKeys strings of the resource. If empty (the default), the Resource PartIDKeys attribute is usedJDFException
- 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 keypublic JDFResource getCreatePartition(JDFResource.EnumPartIDKey key, String value, VString vPartIDKeys)
key
- the PartIDKey attribute namevalue
- the string value of the partition keyvPartIDKeys
- the vector of partIDKeys strings of the resource.protected boolean consistentPartIDKeys(JDFResource.EnumPartIDKey key, JDFResource root, VString partIDKeys)
key
- the PartIDKey attribute nameroot
- partIDKeys
- public boolean consistentPartIDKeys(JDFResource.EnumPartIDKey key)
key
- the PartIDKey attribute name@Deprecated public JDFResource getDeepPart(JDFAttributeMap m, boolean bIncomplete)
m
- bIncomplete
- public JDFResource getDeepPart(JDFAttributeMap m, JDFResource.EnumPartUsage partUsage)
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 specifiedpublic VElement getLeaves(boolean bAll)
bAll
- if true include all intermediate and leaf nodes including thispublic JDFResource getDirectPartition(int i)
public boolean isLeaf()
public VString getPartValues(JDFResource.EnumPartIDKey partType)
partType
- the PartIDKey attribute namepublic String getAttribute(String attrib, String nameSpaceURI, String def)
getAttribute
in class KElement
attrib
- attribute name to getnameSpaceURI
- namespace to search fordef
- attribute default that is returned if no attribute existspublic <a extends KElement> Vector<a> getChildrenByClass(Class<a> clazz, boolean bRecurse, int nMax)
KElement
getChildrenByClass
in class KElement
bRecurse
- if true recurse through all children, grandchildren etc.nMax
- maximum number to search - if 0 or negative, search allKElement.getChildrenByClass(java.lang.Class, boolean, int)
public JDFAttributeMap getAttributeMap()
getAttributeMap
in class KElement
public boolean hasAttribute(String attrib, String nameSpaceURI, boolean bInherit)
hasAttribute
in class KElement
attrib
- the name of the attribute to look fornameSpaceURI
- the nameSpace to look inbInherit
- if true also check recursively in parent elements, regardless of partitioningpublic int numChildElements(String nodeName, String nameSpaceURI)
numChildElements
in class JDFElement
nodeName
- the nodes to countnameSpaceURI
- the nameSpace to look inpublic KElement getCreateElement_JDFResource(String nodeName, String nameSpaceURI, int iSkip)
nodeName
- name of the child node to getnameSpaceURI
- namespace to search foriSkip
- get the iSkipth element that fitspublic KElement getElement(String nodeName, String nameSpaceURI, int iSkip)
getElement
in class JDFElement
nodeName
- name of the child node to getnameSpaceURI
- namespace to search foriSkip
- get the iSkipth element that fitsKElement.getElement(java.lang.String, java.lang.String, int)
public VElement addPartitions(JDFResource.EnumPartIDKey partType, VString values)
partType
- part type of a new partvalues
- its valuepublic JDFResource addPartition(JDFResource.EnumPartIDKey partType, org.apache.commons.lang.enums.ValuedEnum enumPart)
partType
- part type of a new partenumPart
- its valuepublic JDFResource addPartition(JDFResource.EnumPartIDKey partType, String value)
partType
- part type of a new partvalue
- its valuepublic VString getAttributeVector()
getAttributeVector
in class KElement
public VString getAttributeVector_JDFResource()
public JDFResource getAttributePart(String key)
key
- attribute key to look forpublic VElement getAttributePartVector(String key)
key
- attribute key to look forpublic String buildXPath(String relativeTo, int methCountSiblings)
buildXPath
in class KElement
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/root/parent/element
null
if parent of this is null (e.g. called on rootnode)public String getLocalPartitionKey()
public void cleanResourceAttributes()
public void removeInheritedAttributes(String attrib, String nameSpaceURI)
attrib
- the attribute key to removenameSpaceURI
- the attribute nameSpaceURI to removepublic void removeAttribute(String attrib, String nameSpaceURI)
removeAttribute
in class KElement
attrib
- the attribute key to removenameSpaceURI
- the attribute nameSpaceURI to removepublic void removeAttributeFromLeaves(String attrib, String nameSpaceURI)
attrib
- the attribute key to removenameSpaceURI
- the attribute nameSpaceURI to removepublic void reducePartitions(VJDFAttributeMap vValidParts)
vValidParts
- vector of partmaps that define the individual valid parts.public void clearPartitions()
@Deprecated public void reduceParts(Vector vParts)
vParts
- public JDFAttributeMap getPartMap(VString ids)
ids
- public JDFAttributeMap getPartMap()
getPartMap
in class JDFElement
public String getLinkString()
@Deprecated public void mergeSpawnIDs(JDFResource resToMerge, VString previousMergeIDs)
resToMerge
- the resource with potentially new spawnIDspreviousMergeIDs
- vector of already merged spawnIDs that may still be in a partitionpublic void expand(boolean bDeleteFromNode)
bDeleteFromNode
- if true, removes all intermediate elements and attributespublic void expandLeaf()
public VString getRootPartAtts()
@Deprecated public void collapse(boolean bCollapseToNode)
bCollapseToNode
- only collapse redundant attriutes and elements that pre-exist in the nodespublic void collapse(boolean bCollapseToNode, boolean bCollapseElements)
bCollapseToNode
- only collapse redundant attributes and elements that pre-exist in the nodesbCollapseElements
- if true, collapse elements, else only collapse attributespublic boolean unpartition(boolean bForce)
bForce
- if true force collapse by removing non-identical elements@Deprecated public void spawnPart(String spawnID, JDFResource.EnumSpawnStatus spawnStatus, VJDFAttributeMap vParts, boolean bStayInMain)
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 JDFpublic void unSpawnPart(String spawnID, JDFResource.EnumSpawnStatus spawnStatus)
spawnID
- the SpawnID that it was spawned withspawnStatus
- SpawnStatus this resource was spawned withpublic VElement getNodesWithSpawnID(String spawnID)
spawnID
- the spawnID to look for@Deprecated public VElement getPartitionVector(JDFAttributeMap m, boolean bIncomplete)
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,public VElement getPartitionVector(VJDFAttributeMap vm, JDFResource.EnumPartUsage partUsage)
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 specifiedpublic VElement getPartitionLeafVector(JDFAttributeMap m, JDFResource.EnumPartUsage partUsage)
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 specifiedpublic VElement getPartitionVector(JDFAttributeMap m, JDFResource.EnumPartUsage partUsage)
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@Deprecated public VElement getPartitionVector(JDFResource.EnumPartIDKey key, String value, boolean bIncomplete)
key
- the PartIDKey attribute namevalue
- the string value of the partition keybIncomplete
- protected String getIDPrefix()
getIDPrefix
in class KElement
public VJDFAttributeMap getPartMapVector(boolean bIntermediate)
bIntermediate
- if true also includes intermediate nodes including thispublic VJDFAttributeMap reducePartVector(VJDFAttributeMap vParts)
vParts
- the vector of parts to check against 'this'public String newModifiedID()
JDFException
- if there are too many equivalent modified resourcespublic JDFResourcePool getResourcePool()
public boolean isResourceRoot()
public boolean isResourceRootRoot()
public String updateAttributeFromLeaves(String attName, String nsURI, boolean bDirect)
attName
- nsURI
- bDirect
- public void updateAmounts(boolean keepPrevious)
keepPrevious
- if true, the previous amounts etc. are retained, if false they are completely recalculated from the linkxpublic VElement getChildElementVector(String element, String nameSpaceURI, JDFAttributeMap mAttrib, boolean bAnd, int maxSize, boolean bResolveTarget)
getChildElementVector
in class JDFElement
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 JDFElementdefault: getChildElementVector(null, null,null, true, 0, false)
public Vector<JDFResource.EnumPartIDKey> getImplicitPartitions()
public boolean isPartitioningCompatible(JDFResource other)
other
- the other resource to check.true
if partitioning of the other resource is compatible with this resource.public boolean isPartitioningCompatible(VString vsPartitions)
vsPartitions
- the given partition keys to comparetrue
if partitioning is compatible with this resource.public boolean isSpawnAllowed()
public JDFContact getCreateContact()
public JDFContact getContact()
public JDFContact appendContact()
public JDFLocation getCreateLocationElement()
public JDFLocation getLocationElement()
public JDFLocation appendLocationElement()
public JDFSourceResource createSourceResource(JDFResource source)
source
- the resource to referencepublic JDFSourceResource appendSourceResource()
public JDFSourceResource getSourceResource(int i)
i
- the i'th sourceResource to get, 0=first etc.public JDFIdentificationField getCreateIdentificationField(int iSkip)
iSkip
- number of child IdentificationField elements to skippublic JDFIdentificationField getIdentificationField(int iSkip)
iSkip
- number of child IdentificationField elements to skip, default=0public JDFIdentificationField appendIdentificationField()
public JDFAttributeMap getIdenticalMap()
public JDFIdentical getIdentical()
public JDFResource getIdenticalTarget()
public JDFIdentical getCreateIdentical()
public JDFIdentical appendIdentical()
JDFException
- if an Identical already existspublic void setIdentical(VJDFAttributeMap vPartMap)
vPartMap
- VJDFAttributeMap to correspond topublic void setIdentical(JDFResource target)
target
- the resource leaf that this leaf should reference as identicalpublic JDFQualityControlResult getCreateQualityControlResult(int iSkip)
iSkip
- number of child QualityControlResult elements to skippublic JDFQualityControlResult getQualityControlResult(int iSkip)
iSkip
- number of child QualityControlResult elements to skip, default=0public JDFQualityControlResult appendQualityControlResult()
@Deprecated public JDFResource getUpdate(int iSkip)
iSkip
- number of child Update elements to skip@Deprecated public JDFResource getUpdate(String updateID)
updateID
- UpdateID of the element to get@Deprecated public VElement getUpdateVector()
@Deprecated public void removeUpdate(String updateID)
updateID
- UpdateID of the element to remove@Deprecated public void removeUpdate(int iSkip)
iSkip
- number of child Update elements to skip@Deprecated public JDFResource appendUpdate(String updateID)
updateID
- updateID of the new Update elementJDFException
- if Update element with such ID already exists@Deprecated public int numUpdates()
@Deprecated public boolean hasUpdate()
@Deprecated public String getUpdateName()
public void setAgentName(String value)
value
- the value to set the attribute topublic String getAgentName()
public void setAgentVersion(String value)
value
- the value to set the attribute topublic String getAgentVersion()
public void setAlternateBrand(String value)
value
- value to set the attribute topublic String getAlternateBrand()
public void setAmount(double amount)
amount
- value to set the attribute topublic double getAmount()
public void setAmountProduced(double value)
value
- value to set the attribute topublic double getAmountProduced()
public void setAmountRequired(double value)
value
- value to set the attribute topublic double getAmountRequired()
public void setAuthor(String value)
value
- the value to set the attribute topublic String getAuthor()
public void setBatchID(String value)
value
- value to set the attribute topublic String getBatchID()
public void setBinderySignatureName(String value)
value
- the value to set the attribute topublic String getBinderySignatureName()
public void setBlockName(String value)
value
- the value to set the attribute topublic String getBlockName()
public void setBrand(String value)
value
- value to set the attribute topublic String getBrand()
public void setBundleItemIndex(JDFIntegerRangeList value)
value
- the value to set the attribute topublic JDFIntegerRangeList getBundleItemIndex()
public void setCatalogDetails(String value)
value
- the value to set the attribute topublic String getCatalogDetails()
public void setCatalogID(String value)
value
- the value to set the attribute topublic String getCatalogID()
public void setCellIndex(JDFIntegerRangeList value)
value
- the value to set the attribute topublic JDFIntegerRangeList getCellIndex()
public void setCondition(String value)
value
- the value to set the attribute topublic String getCondition()
public void setDocCopies(JDFIntegerRangeList value)
value
- the value to set the attribute topublic JDFIntegerRangeList getDocCopies()
public void setDocIndex(JDFIntegerRangeList value)
value
- the value to set the attribute topublic JDFIntegerRangeList getDocIndex()
public void setDeliveryUnit(int iUnit, String value)
iUnit
- a value between 0 and 9 to set DeliveryUnitvalue
- the value to set the attribute topublic String getDeliveryUnit(int iUnit)
iUnit
- a value between 0 and 9 to set DeliveryUnitpublic void setDocRunIndex(JDFIntegerRangeList value)
value
- the value to set the attribute topublic JDFIntegerRangeList getDocRunIndex()
public void setDocSheetIndex(JDFIntegerRangeList value)
value
- the value to set the attribute topublic JDFIntegerRangeList getDocSheetIndex()
public void setFountainNumber(int value)
value
- the value to set the attribute topublic int getFountainNumber()
public void setItemNames(String value)
value
- the value to set the attribute topublic String getItemNames()
public void setLayerIDs(JDFIntegerRangeList value)
value
- the value to set the attribute topublic JDFIntegerRangeList getLayerIDs()
public void setLocation(String value)
value
- the value to set the attribute topublic String getLocation()
public void setLocked(boolean value)
value
- the value to set the attribute topublic boolean getLocked()
public void setNoOp(boolean value)
value
- the value to set the attribute topublic boolean getNoOp()
public void setOption(String value)
value
- the value to set the attribute topublic String getOption()
public void setPageNumber(JDFIntegerRangeList value)
value
- the value to set the attribute topublic JDFIntegerRangeList getPageNumber()
protected void addPartIDKey(JDFResource.EnumPartIDKey partType)
partType
- new PartIDKey to addJDFException
- if here is an attempt to add implicit partitionpublic void setPartIDKey(JDFResource.EnumPartIDKey key, String value)
key
- the PartIDKey attribute namevalue
- the value to set key topublic JDFResource getParentPartition()
public VString getPartIDKeys()
public void setPartUsage(JDFResource.EnumPartUsage value)
value
- enumeration value of the attribute PartUsage to be setpublic static void setUnpartitiondImplicit(boolean bUnpartitiondImplicit)
bUnpartitiondImplicit
- the bUnpartitiondImplicit to setpublic JDFResource.EnumPartUsage getPartUsage()
public void setLotControl(JDFResource.EnumLotControl value)
value
- enumeration value of the attribute PartUsage to be setpublic JDFResource.EnumLotControl getLotControl()
public void setPartVersion(String value)
value
- the value to set the attribute topublic String getPartVersion()
public void setPipeID(String value)
value
- the value to set the attribute topublic String getPipeID()
public boolean hasPipePartIDKey(JDFResource.EnumPartIDKey key)
key
- the PipePartIDKey attribute nameJDFException
- if the specified key is illegalpublic boolean consistentPipePartIDKeys(JDFResource.EnumPartIDKey key)
key
- the PipePartIDKey attribute namepublic boolean containsData()
public void addPipePartIDKey(JDFResource.EnumPartIDKey partType)
partType
- new PipePartIDKey to addJDFException
- if here is an attempt to add implicit partitionpublic void setPipePartIDKey(JDFResource.EnumPartIDKey key, String value)
key
- the PipePartIDKey attribute namevalue
- the value to set key topublic Vector<JDFResource.EnumPartIDKey> getPipePartIDKeysEnum()
@Deprecated public VString getPipePartIDKeys()
public void setPipeProtocol(String value)
value
- the value to set the attribute topublic String getPipeProtocol()
public void setPipeURL(String value)
value
- the value to set the attribute topublic String getPipeURL()
public void setPreflightRule(String value)
value
- the value to set the attribute topublic String getPreflightRule()
public void setPreviewType(JDFAutoPart.EnumPreviewType value)
value
- enumeration value of attribute PreviewType to be setpublic JDFAutoPart.EnumPreviewType getPreviewType()
public void setProductID(String value)
value
- value to set the attribute topublic String getProductID()
public void setResourceClass(JDFResource.EnumResourceClass value)
value
- enumeration value of the attribute Class to be setJDFException
- if here is attempt to set value as Class_Unknown or invalid class valuepublic JDFResource.EnumResourceClass getResourceClass()
public boolean validResourceClass(JDFElement.EnumValidationLevel level)
level
- level of attribute validationpublic final boolean validClass()
public JDFResource.EnumResourceClass getValidClass()
public void setGrossWeight(double value)
value
- value to set the attribute topublic double getGrossWeight()
public void setResourceWeight(double value)
value
- value to set the attribute topublic double getResourceWeight()
public void setRibbonName(String value)
value
- the value to set the attribute topublic String getManufacturer()
public void setManufacturer(String value)
value
- the value to set the attribute topublic String getRibbonName()
public void setRun(String value)
value
- the value to set the attribute topublic String getRunSet()
public void setRunSet(String value)
value
- the value to set the attribute topublic String getRun()
public void setRunIndex(JDFIntegerRangeList value)
value
- the value to set the attribute topublic JDFIntegerRangeList getRunIndex()
public void setRunPage(int value)
value
- the value to set the attribute topublic int getRunPage()
public void setRunTags(VString value)
value
- the value to set the attribute topublic VString getRunTags()
public void setSectionIndex(JDFIntegerRangeList value)
value
- the value to set the attribute topublic JDFIntegerRangeList getSectionIndex()
public void setSeparation(String value)
value
- the value to set the attribute topublic String getSeparation()
public void setSetDocIndex(JDFIntegerRangeList value)
value
- the value to set the attribute topublic JDFIntegerRangeList getSetDocIndex()
public void setSetIndex(JDFIntegerRangeList value)
value
- the value to set the attribute topublic JDFIntegerRangeList getSetIndex()
public void setSetRunIndex(JDFIntegerRangeList value)
value
- the value to set the attribute topublic JDFIntegerRangeList getSetRunIndex()
public void setSetSheetIndex(JDFIntegerRangeList value)
value
- the value to set the attribute topublic JDFIntegerRangeList getSetSheetIndex()
public void setSheetIndex(JDFIntegerRangeList value)
value
- the value to set the attribute topublic JDFIntegerRangeList getSheetIndex()
public void setSheetName(String value)
value
- the value to set the attribute topublic String getSheetName()
public void setSide(JDFAutoPart.EnumSide value)
value
- enumeration value of attribute Side to be setpublic JDFAutoPart.EnumSide getSide()
public void setSignatureName(String value)
value
- the value to set the attribute topublic String getSignatureName()
public String getStationName()
public void setStationName(String value)
value
- the value to set the attribute topublic void setSortAmount(boolean value)
value
- value to set the attribute topublic boolean getSortAmount()
public void setSorting(JDFIntegerRangeList value)
value
- the value to set the attribute topublic JDFIntegerRangeList getSorting()
public void appendSpawnIDs(String value)
value
- the SpawnID token to appendpublic int removeFromSpawnIDs(String value)
value
- the SpawnID token to remove from the NMTOKENS listpublic VString getSpawnIDs(boolean bInherit)
bInherit
- if true, searches through all leaves, else searches only this leaf/nodepublic void setSpawnIDs(VString vStr)
vStr
- the value to set the attribute topublic void setSpawnIDs(String spawndID)
spawndID
- the value to set the attribute topublic void setSpawnStatus(JDFResource.EnumSpawnStatus s)
s
- enumeration value of the attribute SpawnStatus to be setpublic JDFResource.EnumSpawnStatus getSpawnStatus()
@Deprecated public void setStatus(JDFResource.EnumResStatus value)
value
- enumeration value of the attribute Status to be set@Deprecated public void setStatus(JDFResource.EnumResStatus value, boolean bCleanLeaves)
value
- enumeration value of the attribute Status to be setbCleanLeaves
- if true, remove Status attribute from any child leaves below this@Deprecated public JDFResource.EnumResStatus getStatus(boolean bRecurseRefs)
bRecurseRefs
- if bRecurseRefs is set, also recurse into all resources linked by rRefs and return the minimum statuspublic void setResStatus(JDFResource.EnumResStatus value, boolean bCleanLeaves)
value
- enumeration value of the attribute Status to be setbCleanLeaves
- if true, remove Status attribute from any child leaves below thispublic JDFResource.EnumResStatus getResStatus(boolean bRecurseRefs)
bRecurseRefs
- if bRecurseRefs is set, also recurse into all resources linked by rRefs and return the minimum statuspublic JDFResource.EnumResStatus getStatusFromLeaves(boolean bAll)
bAll
- if true, also evaluate intermediate partitions, else leaves onlypublic void setTileID(JDFXYPair value)
value
- the value to set the attribute topublic JDFXYPair getTileID()
public void setUnit(String value)
value
- value to set the attribute topublic String getUnit()
public void setUpdateID(String value)
value
- value to set the attribute topublic String getUpdateID()
public void setWebName(String value)
value
- the value to set the attribute topublic String getWebName()
public void setWebProduct(String value)
value
- the value to set the attribute topublic String getWebProduct()
public void setWebSetup(String value)
value
- the value to set the attribute topublic String getWebSetup()
public VElement createPartitions(VJDFAttributeMap vPartMap, VString vPartIDKeys)
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 usedJDFException
- 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 keypublic boolean isValid(JDFElement.EnumValidationLevel level)
isValid
in class JDFElement
level
- the valdation levelpublic VString getInvalidAttributes(JDFElement.EnumValidationLevel level, boolean bIgnorePrivate, int nMax)
getInvalidAttributes
in class JDFElement
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 attributespublic boolean deleteUnLinked()
public static boolean getAutoAgent()
public static void setAutoAgent(boolean _autoAgent)
_autoAgent
- the autoAgent to setpublic boolean matchesString(String namedResLink)
namedResLink
- public static boolean getAutoSubElementClass()
public static void setAutoSubElementClass(boolean autoSubElementClass)
autoSubElementClass
- public JDFResource getLeaf(int i)
i
- public KElement moveElement(KElement src, KElement beforeChild)
KElement
null
, an empty KElement is returned.default: moveElement(src, null)
moveElement
in class KElement
src
- node to move.beforeChild
- child of 'this' to insert src before. If beforeChild is null, src is appended to 'this'public KElement copyElement(KElement src, KElement beforeChild)
KElement
default: copyElement(src, null)
copyElement
in class KElement
src
- node to copy.beforeChild
- child of 'this' to insert src before. If null, src is appendednull
if src is null
.public KElement replaceElement(KElement src)
KElement
replaceElement
in class KElement
src
- node, that 'this' will be replaced withpublic KElement deleteNode()
KElement
deleteNode
in class KElement
KElement.deleteNode()
public KElement mergeElement(KElement kElem, boolean bDelete)
KElement
mergeElement
in class KElement
kElem
- the node element to merge with the current nodebDelete
- if true KElement kElem will be deletedpublic Node insertBefore(Node src, Node arg1) throws DOMException
insertBefore
in interface Node
insertBefore
in class KElement
DOMException
KElement.insertBefore(org.w3c.dom.Node, org.w3c.dom.Node)
Copyright © 2018. All rights reserved.