public class JDFResourceLink extends JDFAutoResourceLink implements IAmountPoolContainer
| Modifier and Type | Class and Description |
|---|---|
static class |
JDFResourceLink.EnumUsage
Enumeration strings for Usage
|
JDFAutoResourceLink.EnumMinLateStatus, JDFAutoResourceLink.EnumMinStatus, JDFAutoResourceLink.EnumOrientation, JDFAutoResourceLink.EnumPipePartIDKeysJDFElement.EnumBoolean, JDFElement.EnumNamedColor, JDFElement.EnumNodeStatus, 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 |
|---|
JDFResourceLink(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
java.lang.String qualifiedName)
Constructor for JDFResourceLink
|
JDFResourceLink(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
java.lang.String myNamespaceURI,
java.lang.String qualifiedName)
Constructor for JDFResourceLink
|
JDFResourceLink(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
java.lang.String myNamespaceURI,
java.lang.String qualifiedName,
java.lang.String myLocalName)
Constructor for JDFResourceLink
|
| Modifier and Type | Method and Description |
|---|---|
JDFAmountPool |
appendAmountPool()
(29) append element AmountPool
|
JDFPart |
appendPart()
append element Part
|
void |
expandAmountPool()
create an Amountpool and fill it with the values of Amount and ActualAmount
|
void |
expandTarget(boolean bForce)
Expand the target resource to contain all parts specified in the link.
|
void |
generateCombinedProcessIndex() |
double |
getActualAmount(JDFAttributeMap mPart) |
double |
getAmount(JDFAttributeMap mPart)
get double attribute Amount, defaults to the value of Amount for the linked partition
|
JDFAmountPool.AmountMap |
getAmountMap(VString vPartIDKeys)
get an AmountMap for the child Amountpool of this
|
java.lang.String |
getAmountPoolAttribute(java.lang.String attrib,
java.lang.String nameSpaceURI,
JDFAttributeMap mPart,
int iSkip)
returns the attribute occurence in PartAmount, or the default in the ResourceLink
|
java.lang.String |
getAmountPoolAttribute(java.lang.String attrib,
java.lang.String nameSpaceURI,
VJDFAttributeMap vPart)
returns the attribute occurence in PartAmount, or the default in the ResourceLink
|
double |
getAmountPoolDouble(java.lang.String attName,
JDFAttributeMap mPart)
get the sum of all matching AmountPool/PartAmount/@attName as a double PartAmounts match if all attributes match those in PartAmount, i.e.
|
double |
getAmountPoolDouble(java.lang.String attName,
VJDFAttributeMap vPart)
get the exactly matching AmountPool/PartAmount/@AttName as a double
|
double |
getAmountPoolSumDouble(java.lang.String attName,
VJDFAttributeMap vPart) |
java.lang.String |
getAuditString()
get element Audit
|
VString |
getCombinedProcessTypes()
gets list of all types referenced by CombinedProccessIndex or CombinedProcessType
|
JDFAmountPool |
getCreateAmountPool()
(25) getCreateAmountPool
|
JDFPart |
getCreatePart(int i)
get element Part, create if it does not exist
|
boolean |
getDraftOK()
gets attribute DraftOK
|
JDFNode.EnumProcessUsage |
getEnumProcessUsage()
get attribute ProcessUsage
|
VString |
getInvalidAttributes(JDFElement.EnumValidationLevel level,
boolean bIgnorePrivate,
int nMax)
get invalid attributes
|
VElement |
getLeafVector() |
java.lang.String |
getLinkedResourceName()
Returns the linked resource name
|
JDFResource |
getLinkRoot()
getLinkRoot - gets the root resource of the target
|
JDFResource |
getLinkTarget()
Deprecated.
never used
|
JDFLot |
getLot(int n)
get the nTh Lot element
|
double |
getMaxAmount(JDFAttributeMap mPart)
get double attribute MaxAmount, defaults to getAmount if MinAmount is not set
|
double |
getMinAmount(JDFAttributeMap mPart)
get double attribute MinAmount, defaults to getAmount if MinAmount is not set
|
double |
getMinAmountPoolAttribute(java.lang.String attrib,
java.lang.String nameSpaceURI,
JDFAttributeMap mPart,
int def)
returns the minimum value of attribute occurence in PartAmount,
|
JDFResource.EnumResStatus |
getMinLateStatus()
get attribute MinLateStatus
|
JDFResource.EnumResStatus |
getMinStatus()
getMinStatus - get the minimum status of the ResourceLink in a JDF node.
|
java.lang.String |
getNamedProcessUsage()
Get the expected name of the linked resource and an optional processusage in name:usage format.
|
JDFPart |
getPart(int i)
get first Part element beyond i
|
JDFAttributeMapArray |
getPartMapArray()
get part map array
|
VJDFAttributeMap |
getPartMapVector()
get part map vector
|
VElement |
getParts()
getParts - get the vector of part elements, note that a resource link with multiple part elements is effectively an OR of these parts
|
java.util.Vector<JDFResource.EnumPartIDKey> |
getPipePartIDKeysEnum()
Gets an enumerated list of all valid pipe part keys for this resource
|
java.lang.String |
getPipeProtocol()
gets string attribute PipeProtocol
|
java.lang.String |
getPipeURL()
gets string attribute PipeURL
|
JDFPool |
getPool()
get the parent ResourceLinkPool
|
VElement |
getRawTargetVector(int nMax)
Method getTargetVector gets the resource nodes this resourcelink refers to including all leaves with identical elements.
|
protected JDFResourceLinkPool |
getResourceLinkPool()
get the parent ResourceLinkPool
|
VJDFAttributeMap |
getResourcePartMapVector()
get part map vector as defined by the linked resource.
|
JDFResource.EnumResStatus |
getStatusFromLeaves()
get the status of the Resource that is linked by this link
|
JDFResource.EnumResStatus |
getStatusJDF()
get the status of the Resource that is linked by this link
|
JDFResource |
getTarget()
gets the first resource leaf that this resourcelink refers to
see the description of getTargetVector for details
overrides the deprecated method JDFElement.getTarget() |
java.util.List<JDFResource> |
getTargetList() |
VElement |
getTargetVector(int nMax)
Method getTargetVector gets the resource nodes this resourcelink refers to.
|
protected ElementInfo |
getTheElementInfo() |
JDFResourceLink.EnumUsage |
getUsage()
(9) get attribute Usage
|
boolean |
hasAmountPoolAttribute(java.lang.String attrib,
java.lang.String nameSpaceURI,
JDFAttributeMap mPart)
Deprecated.
060601 use getAmountPoolAttribute(attrib,nameSpaceURI,mPart,0)!=null;
|
boolean |
hasPartMap(JDFAttributeMap mPart)
check whether the part defined in mPart is included
|
boolean |
hasResourcePartMap(JDFAttributeMap partMap,
boolean bCheckResource)
checks whether a given partMap is compatible with this link
|
boolean |
isExecutable(JDFAttributeMap partMap,
boolean bCheckChildren)
isExecutable - checks whether the resource link links to a resource, which is in a state that will allow a node to execute
|
boolean |
isImplementation() |
boolean |
isLocal()
check whether the resource is in the same node as the link
|
boolean |
isPhysical()
checks whether this is a link to a physical resource.
Note that this method only works on links to resources that have a valid "Class" attribute. |
static boolean |
isResourceLink(KElement e)
check whether e is a "real" resourceLink and NOT a partamount
|
boolean |
isResourceSelected(JDFResource resourceToCheck)
Check whether a resource is selected by a ResourceLink.
A resource is selected if all (partition) leaves are selected by the resource link |
boolean |
isValid(JDFElement.EnumValidationLevel level)
default validator
|
boolean |
matchesString(java.lang.String namedResLink)
return true if this is moderately well described by namedReslink
|
boolean |
overlapsResourcePartMap(JDFAttributeMap partMap) |
void |
reduceParts()
reduce the parts to the canonical representation.
|
void |
removePart(int iSkip)
remove element Part
|
void |
removePartMap(JDFAttributeMap mPart)
remove the part defined in mPart
|
void |
setActualAmount(double value,
JDFAttributeMap mPart)
Set attribute ActualAmount in the AmountPool or in the link, depending on the value of mPart
|
void |
setAmount(double value,
JDFAttributeMap mPart)
setAmount in PartAmount or in this if partAmount=null
|
void |
setAmountPoolAttribute(java.lang.String attrib,
java.lang.String value,
java.lang.String nameSpaceURI,
JDFAttributeMap mPart)
sets the attribute occurence in the appropriate PartAmount when called for a resourceLink and creates the AmountPool and/or PartAmount if it is not yet there
|
void |
setAmountPoolAttribute(java.lang.String attrib,
java.lang.String value,
java.lang.String nameSpaceURI,
VJDFAttributeMap vPart)
sets the attribute occurence in the appropriate PartAmount when called for a resourceLink and creates the AmountPool and/or PartAmount(s) if they are not yet there
|
void |
setCombinedProcessIndex(int value)
sets attribute CombinedProcessIndex
|
void |
setCombinedProcessIndex(JDFIntegerList value)
sets attribute CombinedProcessIndex
|
void |
setDraftOK(boolean value)
sets attribute DraftOK if version>=1.3, set MinStatus=Draft instead of DraftOK=true
|
void |
setMaxAmount(double value,
JDFAttributeMap mPart)
set MaxAmount in PartAmount or in this if partAmount=null
|
void |
setMinAmount(double value,
JDFAttributeMap mPart)
set MinAmount in PartAmount or in this if partAmount=null
|
void |
setPart(java.lang.String key,
java.lang.String value)
setPart - shorthand if only one part is required, should be set to key = value
|
void |
setPartition(JDFResource.EnumPartIDKey key,
java.lang.String value)
shorthand if only one part is required, should be set to key = value
|
void |
setPartMap(JDFAttributeMap mPart)
set all parts to those defined in vParts
|
void |
setPartMapVector(VJDFAttributeMap vParts)
set all parts to those define in vParts
|
void |
setPipePartIDKeys(VString keys)
Deprecated.
use setPipePartIDKeys(Vector enum)
|
void |
setProcessUsage(JDFNode.EnumProcessUsage processUsage)
set attribute ProcessUsage
|
void |
setQuantity(int quant)
setQuantity
|
void |
setStatus(JDFResource.EnumResStatus s)
set the status of the Resource that is linked by this link
|
boolean |
setTarget(JDFResource resourceTarget)
setTarget - sets the link to the target defined by partLeaf.
|
void |
setUsage(JDFResourceLink.EnumUsage enumVar)
(5) set attribute Usage
|
java.lang.String |
toString()
toString
|
void |
unpartition(boolean bRemovePartMapVector,
boolean bRemoveAmountPool)
remove all partition stuff
|
boolean |
validCombinedProcessIndex() |
boolean |
validResourcePosition()
checks whether the resource lives in the same node or an ancestor node of the link
|
appendLot, getActualAmount, getAllLot, getAmount, getAmountPool, getCombinedProcessIndex, getCombinedProcessType, getCreateLot, getDuration, getMaxAmount, getMinAmount, getOrientation, getPipePartIDKeys, getPipePause, getPipeResume, getProcessUsage, getRecommendation, getRemotePipeEndPause, getRemotePipeEndResume, getrRef, getrSubRef, getStart, getStartOffset, getTheAttributeInfo, getTransformation, setActualAmount, setAmount, setCombinedProcessType, setDuration, setMaxAmount, setMinAmount, setMinLateStatus, setMinStatus, setOrientation, setPipePartIDKeys, setPipePause, setPipeProtocol, setPipeResume, setPipeURL, setProcessUsage, setRecommendation, setRemotePipeEndPause, setRemotePipeEndResume, setrRef, setrSubRef, setStart, setStartOffset, setTransformationappendAnchor, appendBestEffortExceptions, appendComment, appendElement, appendGeneralID, appendGeneralID, appendGeneralID, appendHRef, appendHRef, appendMustHonorExceptions, appendOperatorInterventionExceptions, appendPreview, appendrRefs, attributeType, clearTargets, cloneNewDoc, copyChildren, copyInto, createRoot, createRoot, deprecatedAttributes, eraseDefaultAttributes, exclusiveOneOfAttribute, exclusiveOneOfElement, fixVersion, getAllRefs, getAtrType, getAttributeInfo, getBestEffortExceptions, getChildElement, getChildElements, getChildElementVector_JDFElement, getChildElementVector, getChildIds, getChildrenByTagName, getChildrenByTagName, getChildWithAttribute, getChildWithMatchingAttribute, getComment, getComment, getCommentURL, getCreateComment, getCreateElement_JDFElement, getCreatePreview, getCreateRefElement, getDeepElementByID, getDefaultAttributeMap, getDefaultJDFVersion, getDeprecatedAttributes, getDeprecatedElements, getDescriptiveName, getElement_JDFElement, getElement, 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, getPartMap, getPrereleaseAttributes, getPrereleaseElements, getPreview, getRefElement, getRefElements, getRefString, getrRefs, getSchemaURL, getSchemaURL, getSchemaURL, getSettingsPolicy, getStatus, getTarget_JDFElement, getTarget, getTheAttributeInfo_JDFElement, getTheElementInfo_JDFElement, getTypeForAttribute, getUnknownAttributes, getUnknownAttributeVector, getUnknownElements, getUnknownElementVector, getUnknownPoolElements, getURLDoc, getURLInputStream, getValueForNewAttribute, getVersion, getVersion, getvHRefRes, getvHRefRes, getXMLDocUserData, hasMissingAttributes, hasMissingElements, hasSettingsPolicy, hasUnknownAttributes, hasUnknownElements, idString, includesMatchingAttribute, init, 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, numChildElements, optionalAttributes, optionalElements, prereleaseAttributes, prereleaseElements, refElement, removeBestEffortExceptions, removeChild, removeChild, removeChildren, removeExtensions, removeFromBestEffortExceptions, removeFromMustHonorExceptions, removeFromOperatorInterventionExceptions, removeFromrRefs, removeGeneralID, 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, 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, buildXPath, cleanup, clearNSMap, clone, copyAttribute, copyAttribute, copyAttribute, copyAttribute, copyElement, copyElements, copyXPathValue, createRoot, deleteNode, ensureCase, eraseEmptyAttributes, eraseEmptyNodes, fillHashSet, fitsName_KElement, fitsName, flush, generateDotID, getAttribute_KElement, getAttribute_KElement, getAttribute, getAttribute, getAttributeArray_KElement, getAttributeIgnoreCase, getAttributeMap_KElement, getAttributeMap, getAttributeRaw, getAttributeVector_KElement, getAttributeVector, getBoolAttribute, getCData, getChildArray_KElement, getChildArray, getChildArrayByClass_KElement, getChildArrayByClass, getChildAttributeList, getChildByTagName, getChildElementArray, getChildElementVector_KElement, getChildElementVector, getChildElementVector, getChildFromList, getChildFromList, getChildList, getChildList, getChildNode, getChildNodes_KElement, getChildNodeVector, getChildrenByClass, getChildrenByTagName_KElement, getChildrenByTagName, getChildrenFromList, getChildrenIgnoreList, getChildrenWithAttribute, getChildWithAttribute, 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, getIDPrefix, 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, hasAttribute, hasAttributes, hasChildElement, hasChildElements, hasChildNodes, hasChildText, hasNonEmpty_KElement, hasNonEmpty, hasXPathNode, includesAttribute, includesAttributes, insertAt, insertBefore, isAncestor, isEqual, isEqual, isWildCard, matchesPath, matchesPathName, mergeElement, moveArray, moveAttribute, moveAttribute, moveElement, moveElements, moveMe, normalize, numChildElements_KElement, numChildNodes, numChildNodes, numChildrenByClass, numSiblingElements, parseFile, parseStream, parseString, pushUp, removeAllText, removeAttribute_KElement, removeAttribute, removeAttribute, removeAttributeNode, removeAttributeNS, removeAttributes, removeCData, removeChildNode, removeChildren, removeChildrenByClass, removeChildText, removeExtensions, removeFromAttribute, removeIgnoreCase_KElement, removeIgnoreCase, removeXMLComment, removeXPathAttribute, removeXPathElement, renameAttribute, renameAttribute, renameElement, replaceElement, 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, 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, waitgetAmountPool, getAttribute, getRealAttribute, hasAttribute, removeAttribute, setAttributegetAttributeNode, 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 JDFResourceLink(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
java.lang.String qualifiedName)
myOwnerDocument - owner documentqualifiedName - qualified namepublic JDFResourceLink(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
java.lang.String myNamespaceURI,
java.lang.String qualifiedName)
myOwnerDocument - owner documenmyNamespaceURI - namespace URIqualifiedName - qualified namepublic JDFResourceLink(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
java.lang.String myNamespaceURI,
java.lang.String qualifiedName,
java.lang.String myLocalName)
myOwnerDocument - owner documenmyNamespaceURI - namespace URIqualifiedName - qualified namemyLocalName - local nameprotected ElementInfo getTheElementInfo()
getTheElementInfo in class JDFAutoResourceLinkpublic static boolean isResourceLink(KElement e)
e - public VString getInvalidAttributes(JDFElement.EnumValidationLevel level, boolean bIgnorePrivate, int nMax)
JDFElementgetInvalidAttributes in class JDFElementlevel - validation levelbIgnorePrivate - if true, do not worry about attributes in other namespacesnMax - maximum size of the returned vectorJDFElement.getInvalidAttributes(org.cip4.jdflib.core.JDFElement.EnumValidationLevel, boolean, int)public void setUsage(JDFResourceLink.EnumUsage enumVar)
setUsage in class JDFAutoResourceLinkenumVar - the enumVar to set the attribute topublic JDFResourceLink.EnumUsage getUsage()
getUsage in class JDFAutoResourceLinkpublic void generateCombinedProcessIndex()
public boolean validCombinedProcessIndex()
public java.lang.String toString()
public void unpartition(boolean bRemovePartMapVector,
boolean bRemoveAmountPool)
bRemovePartMapVector - bRemoveAmountPool - if true, assume all amounts apply to the main resource and copy from the first partamountpublic boolean setTarget(JDFResource resourceTarget)
resourceTarget - the resource that this ResourceLink shoud refer toJDFException - if an attempt is made to link to a resource sub-elementpublic double getAmount(JDFAttributeMap mPart)
mPart - partition map to retrieve Amount forpublic double getMinAmount(JDFAttributeMap mPart)
mPart - partition map to retrieve MinAmount forpublic double getMaxAmount(JDFAttributeMap mPart)
mPart - partition map to retrieve MaxAmount forpublic JDFResource getLinkRoot()
getLinkRoot in interface IAmountPoolContainer@Deprecated public JDFResource getLinkTarget()
public void setQuantity(int quant)
quant - public void setAmount(double value,
JDFAttributeMap mPart)
value - amount to setmPart - partition map to set amount forpublic void setMinAmount(double value,
JDFAttributeMap mPart)
value - amount to setmPart - partition map to set amount forpublic void setMaxAmount(double value,
JDFAttributeMap mPart)
value - amount to setmPart - partition map to set amount forpublic JDFResource.EnumResStatus getStatusJDF()
public JDFResource.EnumResStatus getStatusFromLeaves()
public void setStatus(JDFResource.EnumResStatus s)
s - value to setpublic boolean isLocal()
public JDFPart getPart(int i)
i - number of elements to skippublic JDFPart getCreatePart(int i)
i - number of elements to skippublic java.lang.String getAuditString()
public VElement getParts()
public void setPart(java.lang.String key,
java.lang.String value)
key - the partition keyvalue - the partition valuepublic void setPartition(JDFResource.EnumPartIDKey key, java.lang.String value)
key - the partition keyvalue - the partition valuepublic void removePart(int iSkip)
iSkip - number of elements to skippublic boolean isExecutable(JDFAttributeMap partMap, boolean bCheckChildren)
partMap - the attribute map of partsbCheckChildren - if true, calculates the availability status of a resource from all child partition leaves, else the status is taken from the appropriate leaf itselfprotected JDFResourceLinkPool getResourceLinkPool()
public JDFResource getTarget()
getTargetVector for details
overrides the deprecated method JDFElement.getTarget()getTarget in class JDFElementpublic VElement getTargetVector(int nMax)
nMax - maximum number of requested resources; -1= allpublic VElement getRawTargetVector(int nMax)
nMax - maximum number of requested resources; -1= allpublic JDFPool getPool()
public boolean hasResourcePartMap(JDFAttributeMap partMap, boolean bCheckResource)
partMap - the map of parts that this link is compared tobCheckResource - if true, also recurse into the resource and check if the parts existpublic boolean overlapsResourcePartMap(JDFAttributeMap partMap)
partMap - public boolean isResourceSelected(JDFResource resourceToCheck)
resourceToCheck - The resource which may be selected by the ResourceLink.
This ResourceLink must always be the full ResourceLink, i.e. Part Elements are not allowed as parameters.public VJDFAttributeMap getResourcePartMapVector()
public VElement getLeafVector()
public java.lang.String getLinkedResourceName()
public java.lang.String getNamedProcessUsage()
public boolean validResourcePosition()
public boolean isValid(JDFElement.EnumValidationLevel level)
isValid in class JDFElementlevel - validation levelorg.cip4.jdflib.core.JDFElement#isValid(org.cip4.jdflib.core.KElement.EnumValidationLevel)public boolean isPhysical()
public boolean isImplementation()
public JDFPart appendPart()
public JDFAmountPool getCreateAmountPool()
JDFAutoResourceLinkgetCreateAmountPool in interface IAmountPoolContainergetCreateAmountPool in class JDFAutoResourceLinkIAmountPoolContainer.getCreateAmountPool()public JDFAmountPool appendAmountPool()
JDFAutoResourceLinkappendAmountPool in class JDFAutoResourceLinkpublic JDFLot getLot(int n)
getLot in class JDFAutoResourceLinkn - the index of the elementpublic void reduceParts()
public void expandTarget(boolean bForce)
bForce - if true, implicitly referenced partitions are also expandedpublic void expandAmountPool()
public double getMinAmountPoolAttribute(java.lang.String attrib,
java.lang.String nameSpaceURI,
JDFAttributeMap mPart,
int def)
attrib - the attribute namenameSpaceURI - the XML-namespace URImPart - defines which part of this ResourceLink the amount belongs to. If empty get the ResourceLink root attribute.def - the default value id, if no matching attribute is foundpublic JDFAmountPool.AmountMap getAmountMap(VString vPartIDKeys)
vPartIDKeys - public java.lang.String getAmountPoolAttribute(java.lang.String attrib,
java.lang.String nameSpaceURI,
JDFAttributeMap mPart,
int iSkip)
attrib - the attribute namenameSpaceURI - the XML-namespacemPart - defines which part of this ResourceLink the Amount belongs to. If empty get the ResourceLink root attribute.iSkip - public java.lang.String getAmountPoolAttribute(java.lang.String attrib,
java.lang.String nameSpaceURI,
VJDFAttributeMap vPart)
attrib - the attribute namenameSpaceURI - the XML-namespacevPart - defines which part of this ResourceLink the Amount belongs to. If null get the ResourceLink root attribute.@Deprecated
public boolean hasAmountPoolAttribute(java.lang.String attrib,
java.lang.String nameSpaceURI,
JDFAttributeMap mPart)
attrib - the attribute namenameSpaceURI - the XML-namespacemPart - which part of this ResourceLink the Amount belongs to, if empty get the ResourceLink root attributepublic void setAmountPoolAttribute(java.lang.String attrib,
java.lang.String value,
java.lang.String nameSpaceURI,
VJDFAttributeMap vPart)
attrib - the attribute namevalue - value to set in string form.nameSpaceURI - the XML-namespacevPart - defines which part of this ResourceLink the Amount belongs to, if empty set the ResourceLink root attribute.JDFException - when called directly on a PartAmountpublic void setAmountPoolAttribute(java.lang.String attrib,
java.lang.String value,
java.lang.String nameSpaceURI,
JDFAttributeMap mPart)
attrib - the attribute namevalue - value to set in string form.nameSpaceURI - the XML-namespacemPart - defines which part of this ResourceLink the Amount belongs to, if empty set the ResourceLink root attributeJDFException - when called directly on a PartAmountpublic double getAmountPoolSumDouble(java.lang.String attName,
VJDFAttributeMap vPart)
attName - vPart - public double getAmountPoolDouble(java.lang.String attName,
VJDFAttributeMap vPart)
attName - vPart - JDFException - if the element can not be cast to doublepublic double getAmountPoolDouble(java.lang.String attName,
JDFAttributeMap mPart)
attName - the Attribute name , e.g Amount, ActualAmountmPart - JDFException - if the element can not be cast to doublepublic void setActualAmount(double value,
JDFAttributeMap mPart)
value - the value to set ActualAmount tomPart - the part map of AmountPool/PartAmountpublic double getActualAmount(JDFAttributeMap mPart)
mPart - public JDFNode.EnumProcessUsage getEnumProcessUsage()
public void setProcessUsage(JDFNode.EnumProcessUsage processUsage)
processUsage - public JDFResource.EnumResStatus getMinStatus()
getMinStatus in class JDFAutoResourceLinkpublic JDFResource.EnumResStatus getMinLateStatus()
getMinLateStatus in class JDFAutoResourceLink@Deprecated public void setPipePartIDKeys(VString keys)
keys - vector of values to setpublic java.util.Vector<JDFResource.EnumPartIDKey> getPipePartIDKeysEnum()
public void setCombinedProcessIndex(JDFIntegerList value)
setCombinedProcessIndex in class JDFAutoResourceLinkvalue - attribute value to setpublic void setCombinedProcessIndex(int value)
value - attribute value to setpublic VString getCombinedProcessTypes()
public void setDraftOK(boolean value)
setDraftOK in class JDFAutoResourceLinkvalue - attribute value to setpublic boolean getDraftOK()
getDraftOK in class JDFAutoResourceLinkpublic java.lang.String getPipeProtocol()
getPipeProtocol in class JDFAutoResourceLinkpublic java.lang.String getPipeURL()
getPipeURL in class JDFAutoResourceLinkpublic VJDFAttributeMap getPartMapVector()
getPartMapVector in interface IAmountPoolContainergetPartMapVector in class JDFElementpublic JDFAttributeMapArray getPartMapArray()
getPartMapArray in class JDFElementpublic void setPartMapVector(VJDFAttributeMap vParts)
setPartMapVector in class JDFElementvParts - vector of attribute maps for the partspublic void setPartMap(JDFAttributeMap mPart)
setPartMap in class JDFElementmPart - attribute map for the part to setpublic void removePartMap(JDFAttributeMap mPart)
removePartMap in class JDFElementmPart - attribute map for the part to removepublic boolean hasPartMap(JDFAttributeMap mPart)
hasPartMap in class JDFElementmPart - attribute map for the part to removepublic boolean matchesString(java.lang.String namedResLink)
namedResLink - public java.util.List<JDFResource> getTargetList()