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
|
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.PartitionGetter
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.EnumXYRelationKElement.SimpleElementNameComparator, KElement.SimpleNodeComparator, KElement.SingleAttributeComparator, KElement.SingleXPathComparatorfirstChild, fNodeListCache, ownerDocumentDOCUMENT_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_NODEATTRIBUTE_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 and Description |
|---|
JDFResource(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
java.lang.String qualifiedName)
Constructor for JDFResource
|
JDFResource(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
java.lang.String myNamespaceURI,
java.lang.String qualifiedName)
Constructor for JDFResource
|
JDFResource(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
java.lang.String myNamespaceURI,
java.lang.String qualifiedName,
java.lang.String myLocalName)
Constructor for JDFResource
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPartIDKey(JDFResource.EnumPartIDKey partType)
Adds a new PartIDKey to the root first checks for existence
|
JDFResource |
addPartition(JDFResource.EnumPartIDKey partType,
java.lang.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.
|
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'
|
KElement |
appendElement(java.lang.String elementName,
java.lang.String nameSpaceURI) |
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(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
|
JDFResource |
appendUpdate(java.lang.String updateID)
Deprecated.
updates never really took off in JDF
|
java.lang.String |
buildXPath(java.lang.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.
|
KElement |
copyInto(KElement src,
boolean bRemove)
copies a node into this, ignoring identical node names i.e.
|
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
|
void |
fillSparse() |
java.lang.String |
getAgentName()
Gets string attribute AgentName
|
java.lang.String |
getAgentVersion()
Gets string attribute AgentVersion
|
java.lang.String |
getAlternateBrand()
Gets string attribute AlternateBrand
|
double |
getAmount()
Gets double attribute Amount
|
double |
getAmountProduced()
Gets double attribute AmountProduced
|
double |
getAmountRequired()
Gets double attribute AmountRequired
|
java.lang.String |
getAttribute(java.lang.String attrib,
java.lang.String nameSpaceURI,
java.lang.String def)
Gets an attribute value.
|
JDFAttributeMap |
getAttributeMap()
Get the Attribute Map of the actual element also following inheritance
|
JDFResource |
getAttributePart(java.lang.String key)
Gets the parent element that actually contains the attribute key in a partitioned resource
|
VElement |
getAttributePartVector(java.lang.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.
Is called from KElement.getMissingAttributeVector() as a virtual method |
java.lang.String |
getAuthor()
Gets string attribute Author
|
static boolean |
getAutoAgent() |
static boolean |
getAutoSubElementClass()
if true, subelements are initialized with a class attribute
|
java.lang.String |
getBatchID()
Gets string attribute BatchID
|
java.lang.String |
getBinderySignatureName()
Gets string attribute BinderySignatureName
|
java.lang.String |
getBlockName()
Gets string attribute BlockName
|
java.lang.String |
getBrand()
Gets string attribute Brand
|
JDFIntegerRangeList |
getBundleItemIndex()
Gets range attribute BundleItemIndex
|
java.lang.String |
getCatalogDetails()
Gets string attribute CatalogDetails
|
java.lang.String |
getCatalogID()
Gets string attribute CatalogID
|
JDFIntegerRangeList |
getCellIndex()
Gets range attribute CellIndex
|
<a extends KElement> |
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 null |
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
|
<a extends KElement> |
getChildrenByClass(java.lang.Class<a> clazz,
boolean bRecurse,
int nMax)
Deprecated.
use getChildArrayByClass
|
<A extends KElement> |
getChildWithAttribute(java.lang.Class<A> clazz,
java.lang.String attName,
java.lang.String attVal) |
java.lang.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(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
|
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,
java.lang.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 |
java.lang.String |
getDeliveryUnit(int iUnit)
Gets attribute DeliveryUnit
|
JDFResource |
getDirectPartition(int i) |
java.util.List<? extends KElement> |
getDirectPartitionArray() |
java.util.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(java.lang.String nodeName,
java.lang.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 ./Identical/Part, or null if it does not exist
|
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 java.lang.String |
getIDPrefix()
gets a prefix for ID creation for the element
|
java.util.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.
|
java.lang.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
|
java.util.List<JDFResource> |
getLeafArray(boolean bAll)
Gets a list of all direct leaves
|
VElement |
getLeaves(boolean bAll)
Gets a list of all direct leaves
|
VElement |
getLinks(java.lang.String linkName)
Deprecated.
[BLD009] use getLinks(linkName, null)
|
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
|
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 |
java.lang.String |
getLinkString()
Gets nodename of a ResourceLink that links to 'this'
|
java.lang.String |
getLocalPartitionKey()
get the local partition key of this leaf
|
java.lang.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
|
java.lang.String |
getManufacturer()
Gets string attribute Manufacturer
|
java.util.List<JDFResource> |
getNodesWithSpawnID(java.lang.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
|
java.lang.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
|
StringArray |
getPartIDKeyList()
Gets a list of all valid part keys for this resource
|
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,
java.lang.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
|
java.util.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,
java.lang.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; never null
|
JDFAttributeMap |
getPartMap(java.util.List<java.lang.String> partIDKeys)
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
|
java.lang.String |
getPartVersion()
Gets string attribute PartVersion
|
java.lang.String |
getPipeID()
Gets string attribute PipeID
|
VString |
getPipePartIDKeys()
Deprecated.
|
java.util.Vector<JDFResource.EnumPartIDKey> |
getPipePartIDKeysEnum()
Gets a list of all valid pipe part key enums for this resource
|
java.lang.String |
getPipeProtocol()
Get string attribute PipeProtocol
|
java.lang.String |
getPipeURL()
Gets string attribute PipeURL
|
JDFResourcePool |
getPool()
Deprecated.
[BLD009] use GetResourcePool instead
|
java.lang.String |
getPreflightRule()
Gets string attribute PreflightRule
|
JDFAutoPart.EnumPreviewType |
getPreviewType()
Gets typesafe enumerated value of attribute PreviewType
|
java.lang.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
|
java.lang.String |
getRibbonName()
Gets string attribute RibbonName
|
VString |
getRootPartAtts()
get the list of attributes that are administrative only
|
java.lang.String |
getRun()
Gets string attribute Run
|
JDFIntegerRangeList |
getRunIndex()
Gets range attribute RunIndex
|
int |
getRunPage()
Gets integer attribute RunPage
|
java.lang.String |
getRunSet()
Gets string attribute RunSet
|
VString |
getRunTags()
Gets NMTOKENS attribute RunTags
|
JDFIntegerRangeList |
getSectionIndex()
Gets range attribute SectionIndex
|
java.lang.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
|
java.lang.String |
getSheetName()
Gets string attribute SheetName
|
JDFAutoPart.EnumSide |
getSide()
Gets typesafe enumerated value of attribute Side
|
java.lang.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
|
java.lang.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
|
java.lang.String |
getUnit()
Gets string attribute Unit
|
JDFResource |
getUpdate(int iSkip)
Deprecated.
updates never really took off in JDF
|
JDFResource |
getUpdate(java.lang.String updateID)
Deprecated.
updates never really took off in JDF
|
java.lang.String |
getUpdateID()
Gets string attribute UpdateID
|
java.lang.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,
|
java.lang.String |
getWebName()
Gets string attribute WebName
|
java.lang.String |
getWebProduct()
Gets string attribute WebProduct
|
java.lang.String |
getWebSetup()
Gets string attribute WebSetup
|
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 |
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
|
org.w3c.dom.Node |
insertBefore(org.w3c.dom.Node src,
org.w3c.dom.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.
|
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.
|
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(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.
|
boolean |
matchesString(java.lang.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 !! this kills pools !! since elements in kElem overwrite those in *this |
void |
mergePartition(JDFResource resToMerge,
java.lang.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.
|
java.lang.String |
newModifiedID()
Generates the id of a modified resource
|
int |
numChildElements(java.lang.String nodeName,
java.lang.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(java.util.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(java.lang.String attrib,
java.lang.String nameSpaceURI)
Removes local attributes
|
void |
removeAttributeFromLeaves(java.lang.String attrib,
java.lang.String nameSpaceURI)
Removes attributes, also removes overwrites in any child parts
|
int |
removeFromSpawnIDs(java.lang.String value)
Removes SpawnID token ('value') from the list of values of SpawnIDs attribute, if it is in the list
|
void |
removeInheritedAttributes(java.lang.String attrib,
java.lang.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(java.lang.String updateID)
Deprecated.
updates never really took off in JDF
|
void |
reorderPartitions(java.util.List<java.lang.String> newPartIDKeys) |
KElement |
replaceElement(KElement src)
Replaces 'this' with src.
|
void |
setAgentName(java.lang.String value)
Sets attribute AgentName
|
void |
setAgentVersion(java.lang.String value)
Sets attribute AgentVersion
|
void |
setAlternateBrand(java.lang.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 |
setAttribute(java.lang.String key,
java.lang.String value,
java.lang.String nameSpaceURI)
Mother of all Attribute setters
Sets a new attribute. |
void |
setAuthor(java.lang.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(java.lang.String value)
Sets attribute BatchID
|
void |
setBinderySignatureName(java.lang.String value)
Sets attribute BinderySignatureName
|
void |
setBlockName(java.lang.String value)
Sets attribute BlockName
|
void |
setBrand(java.lang.String value)
Sets attribute Brand
|
void |
setBundleItemIndex(JDFIntegerRangeList value)
Sets attribute BundleItemIndex
|
void |
setCatalogDetails(java.lang.String value)
Sets attribute CatalogDetails
|
void |
setCatalogID(java.lang.String value)
Sets attribute CatalogID
|
void |
setCellIndex(JDFIntegerRangeList value)
Sets attribute CellIndex
|
void |
setCondition(java.lang.String value)
Sets attribute Condition
|
void |
setDeliveryUnit(int iUnit,
java.lang.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.
|
void |
setItemNames(java.lang.String value)
Sets attribute ItemNames
|
void |
setLayerIDs(JDFIntegerRangeList value)
Sets attribute LayerIDs
|
void |
setLocation(java.lang.String value)
Sets attribute Location
|
void |
setLocked(boolean value)
Sets attribute Locked
|
void |
setLotControl(JDFResource.EnumLotControl value)
Sets attribute PartUsage
|
void |
setManufacturer(java.lang.String value)
Sets attribute Manufacturer
|
void |
setNoOp(boolean value)
Sets attribute NoOp
|
void |
setOption(java.lang.String value)
Sets attribute Option
|
void |
setPageNumber(JDFIntegerRangeList value)
Sets attribute PageNumber
|
void |
setPartIDKey(JDFResource.EnumPartIDKey key,
java.lang.String value) |
void |
setPartIDKeyList(java.util.List<java.lang.String> partIDKeys) |
void |
setPartIDKeys(VString partIDKeys)
set the partIDKeys attribute of the root of this
|
void |
setPartUsage(JDFResource.EnumPartUsage value)
Sets attribute PartUsage
|
void |
setPartVersion(java.lang.String value)
Sets attribute PartVersion
|
void |
setPipeID(java.lang.String value)
Sets attribute PipeID
|
void |
setPipePartIDKey(JDFResource.EnumPartIDKey key,
java.lang.String value)
Sets the value of attibute, specified by key
|
void |
setPipeProtocol(java.lang.String value)
Set attribute PipeProtocol
|
void |
setPipeURL(java.lang.String value)
Sets attribute PipeURL
|
void |
setPreflightRule(java.lang.String value)
Sets attribute PreflightRule
|
void |
setPreviewType(JDFAutoPart.EnumPreviewType value)
Sets attribute PreviewType
|
void |
setProductID(java.lang.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(java.lang.String value)
Sets attribute RibbonName
|
void |
setRun(java.lang.String value)
Sets attribute Run
|
void |
setRunIndex(JDFIntegerRangeList value)
Sets attribute RunIndex
|
void |
setRunPage(int value)
Sets attribute RunPage
|
void |
setRunSet(java.lang.String value)
Sets attribute RunSet
|
void |
setRunTags(VString value)
Sets attribute RunTags
|
void |
setSectionIndex(JDFIntegerRangeList value)
Sets attribute SectionIndex
|
void |
setSeparation(java.lang.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(java.lang.String value)
Sets attribute SheetName
|
void |
setSide(JDFAutoPart.EnumSide value)
Sets attribute Side
|
void |
setSignatureName(java.lang.String value)
Sets attribute SignatureName
|
void |
setSortAmount(boolean value)
Sets attribute SortAmount
|
void |
setSorting(JDFIntegerRangeList value)
Sets attribute Sorting
|
void |
setSpawnIDs(java.lang.String spawndID)
Sets attribute SpawnIDs
|
void |
setSpawnIDs(VString vStr)
Sets attribute SpawnIDs
|
void |
setSpawnStatus(JDFResource.EnumSpawnStatus s)
Sets attribute SpawnStatus
|
void |
setStationName(java.lang.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(java.lang.String value)
Sets attribute Unit
|
static void |
setUnpartitiondImplicit(boolean bUnpartitiondImplicit)
if set to true, the default @PartUsage of unpartitioned resources is Implicit.
|
void |
setUpdateID(java.lang.String value)
Sets attribute UpdateID
|
void |
setWebName(java.lang.String value)
Sets attribute WebName
|
void |
setWebProduct(java.lang.String value)
Sets attribute WebProduct
|
void |
setWebSetup(java.lang.String value)
Sets attribute WebSetup
|
void |
spawnPart(java.lang.String spawnID,
JDFResource.EnumSpawnStatus spawnStatus,
VJDFAttributeMap vParts,
boolean bStayInMain)
Deprecated.
use JDFSpawn.spawnPart
|
boolean |
unpartition(boolean bForce)
unpartition this resource by collapsing and removing any empty leaves
|
void |
unSpawnPart(java.lang.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
|
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
|
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, 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_JDFElement, getInvalidElements, 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_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, 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, write2DiraddAttribute, addAttribute, addNameSpace, ancestorDistance, 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_KElement, fitsName, flush, generateDotID, getAttribute_KElement, getAttribute_KElement, getAttribute, getAttributeArray_KElement, getAttributeIgnoreCase, getAttributeMap_KElement, getAttributeRaw, getAttributeVector_KElement, getBoolAttribute, getCData, getChildArray_KElement, getChildArray, getChildArrayByClass_KElement, getChildAttributeList, getChildByTagName, getChildElementArray, getChildElementVector_KElement, getChildElementVector, getChildElementVector, getChildFromList, getChildFromList, getChildList, getChildList, getChildNode, getChildNodes_KElement, getChildNodeVector, getChildrenByTagName_KElement, getChildrenByTagName, getChildrenFromList, getChildrenIgnoreList, getChildrenWithAttribute, getChildWithAttribute, 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, getIgnoreCase_KElement, getIgnoreCase, 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, getTree, getTreeByClass, getTreeElement, getXMLComment, getXMLNSNameSpace, getXMLNSPrefix, getXPathAttribute, getXPathAttributeMap, getXPathElement, getXPathElementVector, getXPathValueMap, getXPathValueMap, getXSIType, hasAttribute_KElement, hasAttribute, hasAttributes, hasChildElement, hasChildElements, hasChildNodes, hasChildText, hasNonEmpty_KElement, hasNonEmpty, 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_KElement, removeAttribute, removeAttributeNode, removeAttributeNS, removeAttributes, removeCData, removeChildNode, removeChildren, removeChildrenByClass, removeChildText, removeExtensions, removeFromAttribute, removeIgnoreCase_KElement, removeIgnoreCase, 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, xmlnsPrefixgetLocalName, getPrefix, getTypeName, getTypeNamespace, getXMLBaseAttribute, isDerivedFrom, setTypecloneNode, 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, synchronizeDatagetChildNodes, getChildNodesUnoptimized, getFirstChild, getLastChild, getLength, getOwnerDocument, getTextContent, hasChildNodes, item, setTextContent, synchronizeChildrengetNextSibling, getParentNode, getPreviousSiblingaddEventListener, changed, changes, compareDocumentPosition, compareTreePosition, dispatchEvent, getContainer, getFeature, getNodeNumber, getNodeValue, getReadOnly, getUserData, getUserData, getUserDataRecord, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, needsSyncChildren, removeEventListener, setUserData, setUserDataequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNScloneNode, 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, setUserDatapublic JDFResource(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
java.lang.String qualifiedName)
myOwnerDocument - qualifiedName - public JDFResource(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
java.lang.String myNamespaceURI,
java.lang.String qualifiedName)
myOwnerDocument - myNamespaceURI - qualifiedName - public JDFResource(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
java.lang.String myNamespaceURI,
java.lang.String qualifiedName,
java.lang.String myLocalName)
myOwnerDocument - myNamespaceURI - qualifiedName - myLocalName - protected AttributeInfo getTheAttributeInfo()
getTheAttributeInfo in class JDFElementprotected ElementInfo getTheElementInfo()
getTheElementInfo in class JDFElement@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()
init in class JDFElementKElement.init()public JDFResource makeRootResource(java.lang.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, java.lang.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 void setPartIDKeyList(java.util.List<java.lang.String> partIDKeys)
partIDKeys - public JDFResource mergeCloneResource(JDFResource oldRes)
oldRes - the resource element to clone and to merge with this resource@Deprecated public VElement getLinks(java.lang.String linkName)
linkName - defaults to anypublic VElement getLinks(java.lang.String linkName, java.lang.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 LinkRefFinderbLink - 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 java.util.HashMap<JDFAttributeMap,JDFResource> getPartitionMap()
@Deprecated public JDFResource getPartition(JDFResource.EnumPartIDKey key, java.lang.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 void reorderPartitions(java.util.List<java.lang.String> newPartIDKeys)
newPartIDKeys - public void fillSparse()
public 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, java.lang.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 java.util.List<JDFResource> getLeafArray(boolean bAll)
bAll - if true include all intermediate and leaf nodes including thispublic java.util.Vector<? extends KElement> getDirectPartitionVector()
public java.util.List<? extends KElement> getDirectPartitionArray()
public JDFResource getDirectPartition(int i)
public boolean isLeaf()
public VString getPartValues(JDFResource.EnumPartIDKey partType)
partType - the PartIDKey attribute namepublic java.lang.String getAttribute(java.lang.String attrib,
java.lang.String nameSpaceURI,
java.lang.String def)
getAttribute in class KElementattrib - attribute name to getnameSpaceURI - namespace to search fordef - attribute default that is returned if no attribute exists@Deprecated public <a extends KElement> java.util.Vector<a> getChildrenByClass(java.lang.Class<a> clazz, boolean bRecurse, int nMax)
getChildrenByClass in class KElementclazz - bRecurse - nMax - public <a extends KElement> java.util.List<a> getChildArrayByClass(java.lang.Class<a> clazz, boolean bRecurse, int nMax)
KElementgetChildArrayByClass in class KElementbRecurse - 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 <A extends KElement> A getChildWithAttribute(java.lang.Class<A> clazz, java.lang.String attName, java.lang.String attVal)
getChildWithAttribute in class KElementpublic JDFAttributeMap getAttributeMap()
getAttributeMap in class KElementpublic boolean hasAttribute(java.lang.String attrib,
java.lang.String nameSpaceURI,
boolean bInherit)
hasAttribute in class KElementattrib - 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(java.lang.String nodeName,
java.lang.String nameSpaceURI)
numChildElements in class JDFElementnodeName - the nodes to countnameSpaceURI - the nameSpace to look inpublic KElement getCreateElement_JDFResource(java.lang.String nodeName, java.lang.String nameSpaceURI, int iSkip)
nodeName - name of the child node to getnameSpaceURI - namespace to search foriSkip - get the iSkipth element that fitspublic KElement getElement(java.lang.String nodeName, java.lang.String nameSpaceURI, int iSkip)
getElement in class JDFElementnodeName - 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, java.lang.String value)
partType - part type of a new partvalue - its valuepublic VString getAttributeVector()
getAttributeVector in class KElementpublic VString getAttributeVector_JDFResource()
public JDFResource getAttributePart(java.lang.String key)
key - attribute key to look forpublic VElement getAttributePartVector(java.lang.String key)
key - attribute key to look forpublic java.lang.String buildXPath(java.lang.String relativeTo,
int methCountSiblings)
buildXPath in class KElementrelativeTo - 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/elementnull if parent of this is null (e.g. called on rootnode)public java.lang.String getLocalPartitionKey()
public void cleanResourceAttributes()
public void removeInheritedAttributes(java.lang.String attrib,
java.lang.String nameSpaceURI)
attrib - the attribute key to removenameSpaceURI - the attribute nameSpaceURI to removepublic void removeAttribute(java.lang.String attrib,
java.lang.String nameSpaceURI)
removeAttribute in class KElementattrib - the attribute key to removenameSpaceURI - the attribute nameSpaceURI to removepublic void removeAttributeFromLeaves(java.lang.String attrib,
java.lang.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(java.util.Vector vParts)
vParts - public JDFAttributeMap getPartMap(java.util.List<java.lang.String> partIDKeys)
partIDKeys - public JDFAttributeMap getPartMap()
getPartMap in class JDFElementpublic java.lang.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(java.lang.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(java.lang.String spawnID,
JDFResource.EnumSpawnStatus spawnStatus)
spawnID - the SpawnID that it was spawned withspawnStatus - SpawnStatus this resource was spawned withpublic java.util.List<JDFResource> getNodesWithSpawnID(java.lang.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, java.lang.String value, boolean bIncomplete)
key - the PartIDKey attribute namevalue - the string value of the partition keybIncomplete - protected java.lang.String getIDPrefix()
getIDPrefix in class KElementpublic 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 java.lang.String newModifiedID()
JDFException - if there are too many equivalent modified resourcespublic JDFResourcePool getResourcePool()
public boolean isResourceRoot()
public boolean isResourceRootRoot()
public java.lang.String updateAttributeFromLeaves(java.lang.String attName,
java.lang.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(java.lang.String element, java.lang.String nameSpaceURI, JDFAttributeMap mAttrib, boolean bAnd, int maxSize, boolean bResolveTarget)
getChildElementVector in class JDFElementelement - 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 java.util.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(java.lang.String updateID)
updateID - UpdateID of the element to get@Deprecated public VElement getUpdateVector()
@Deprecated public void removeUpdate(java.lang.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(java.lang.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 java.lang.String getUpdateName()
public void setAgentName(java.lang.String value)
value - the value to set the attribute topublic java.lang.String getAgentName()
public void setAgentVersion(java.lang.String value)
value - the value to set the attribute topublic java.lang.String getAgentVersion()
public void setAlternateBrand(java.lang.String value)
value - value to set the attribute topublic java.lang.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(java.lang.String value)
value - the value to set the attribute topublic java.lang.String getAuthor()
public void setBatchID(java.lang.String value)
value - value to set the attribute topublic java.lang.String getBatchID()
public void setBinderySignatureName(java.lang.String value)
value - the value to set the attribute topublic java.lang.String getBinderySignatureName()
public void setBlockName(java.lang.String value)
value - the value to set the attribute topublic java.lang.String getBlockName()
public void setBrand(java.lang.String value)
value - value to set the attribute topublic java.lang.String getBrand()
public void setBundleItemIndex(JDFIntegerRangeList value)
value - the value to set the attribute topublic JDFIntegerRangeList getBundleItemIndex()
public void setCatalogDetails(java.lang.String value)
value - the value to set the attribute topublic java.lang.String getCatalogDetails()
public void setCatalogID(java.lang.String value)
value - the value to set the attribute topublic java.lang.String getCatalogID()
public void setCellIndex(JDFIntegerRangeList value)
value - the value to set the attribute topublic JDFIntegerRangeList getCellIndex()
public void setCondition(java.lang.String value)
value - the value to set the attribute topublic java.lang.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,
java.lang.String value)
iUnit - a value between 0 and 9 to set DeliveryUnitvalue - the value to set the attribute topublic java.lang.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(java.lang.String value)
value - the value to set the attribute topublic java.lang.String getItemNames()
public void setLayerIDs(JDFIntegerRangeList value)
value - the value to set the attribute topublic JDFIntegerRangeList getLayerIDs()
public void setLocation(java.lang.String value)
value - the value to set the attribute topublic java.lang.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(java.lang.String value)
value - the value to set the attribute topublic java.lang.String getOption()
public void setPageNumber(JDFIntegerRangeList value)
value - the value to set the attribute topublic JDFIntegerRangeList getPageNumber()
public void addPartIDKey(JDFResource.EnumPartIDKey partType)
partType - new PartIDKey to addJDFException - if here is an attempt to add implicit partitionpublic void setPartIDKey(JDFResource.EnumPartIDKey key, java.lang.String value)
public JDFResource getParentPartition()
public VString getPartIDKeys()
public StringArray getPartIDKeyList()
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(java.lang.String value)
value - the value to set the attribute topublic java.lang.String getPartVersion()
public void setPipeID(java.lang.String value)
value - the value to set the attribute topublic java.lang.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, java.lang.String value)
key - the PipePartIDKey attribute namevalue - the value to set key topublic java.util.Vector<JDFResource.EnumPartIDKey> getPipePartIDKeysEnum()
@Deprecated public VString getPipePartIDKeys()
public void setPipeProtocol(java.lang.String value)
value - the value to set the attribute topublic java.lang.String getPipeProtocol()
public void setPipeURL(java.lang.String value)
value - the value to set the attribute topublic java.lang.String getPipeURL()
public void setPreflightRule(java.lang.String value)
value - the value to set the attribute topublic java.lang.String getPreflightRule()
public void setPreviewType(JDFAutoPart.EnumPreviewType value)
value - enumeration value of attribute PreviewType to be setpublic JDFAutoPart.EnumPreviewType getPreviewType()
public void setProductID(java.lang.String value)
value - value to set the attribute topublic java.lang.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(java.lang.String value)
value - the value to set the attribute topublic java.lang.String getManufacturer()
public void setManufacturer(java.lang.String value)
value - the value to set the attribute topublic java.lang.String getRibbonName()
public void setRun(java.lang.String value)
value - the value to set the attribute topublic java.lang.String getRunSet()
public void setRunSet(java.lang.String value)
value - the value to set the attribute topublic java.lang.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(java.lang.String value)
value - the value to set the attribute topublic java.lang.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(java.lang.String value)
value - the value to set the attribute topublic java.lang.String getSheetName()
public void setSide(JDFAutoPart.EnumSide value)
value - enumeration value of attribute Side to be setpublic JDFAutoPart.EnumSide getSide()
public void setSignatureName(java.lang.String value)
value - the value to set the attribute topublic java.lang.String getSignatureName()
public java.lang.String getStationName()
public void setStationName(java.lang.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(java.lang.String value)
value - the SpawnID token to appendpublic int removeFromSpawnIDs(java.lang.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(java.lang.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(java.lang.String value)
value - value to set the attribute topublic java.lang.String getUnit()
public void setUpdateID(java.lang.String value)
value - value to set the attribute topublic java.lang.String getUpdateID()
public void setWebName(java.lang.String value)
value - the value to set the attribute topublic java.lang.String getWebName()
public void setWebProduct(java.lang.String value)
value - the value to set the attribute topublic java.lang.String getWebProduct()
public void setWebSetup(java.lang.String value)
value - the value to set the attribute topublic java.lang.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 JDFElementlevel - the valdation levelpublic VString getInvalidAttributes(JDFElement.EnumValidationLevel level, boolean bIgnorePrivate, int nMax)
getInvalidAttributes in class JDFElementlevel - 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(java.lang.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)
KElementnull, an empty KElement is returned.default: moveElement(src, null)
moveElement in class KElementsrc - 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)
KElementdefault: copyElement(src, null)
copyElement in class KElementsrc - 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)
KElementreplaceElement in class KElementsrc - node, that 'this' will be replaced withpublic KElement deleteNode()
KElementdeleteNode in class KElementKElement.deleteNode()public KElement mergeElement(KElement kElem, boolean bDelete)
KElementmergeElement in class KElementkElem - the node element to merge with the current nodebDelete - if true KElement kElem will be deletedpublic org.w3c.dom.Node insertBefore(org.w3c.dom.Node src,
org.w3c.dom.Node arg1)
throws org.w3c.dom.DOMException
insertBefore in interface org.w3c.dom.NodeinsertBefore in class KElementorg.w3c.dom.DOMExceptionKElement.insertBefore(org.w3c.dom.Node, org.w3c.dom.Node)public KElement copyInto(KElement src, boolean bRemove)
JDFElementcopyInto in class JDFElementbRemove - if true, remove existing information, else retain and overwrite / mergeJDFElement.copyInto(org.cip4.jdflib.core.KElement, boolean)public KElement appendElement(java.lang.String elementName, java.lang.String nameSpaceURI)
appendElement in class JDFElementelementName - 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.JDFElement.appendElement(java.lang.String, java.lang.String)public void setAttribute(java.lang.String key,
java.lang.String value,
java.lang.String nameSpaceURI)
KElementsetAttribute in class KElementkey - 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 inKElement.setAttribute(java.lang.String, java.lang.String, java.lang.String)