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.EnumPipePartIDKeys
JDFElement.EnumBoolean, JDFElement.EnumNamedColor, JDFElement.EnumNodeStatus, JDFElement.EnumPoolType, JDFElement.EnumSeparation, JDFElement.EnumSettingsPolicy, JDFElement.EnumValidationLevel, JDFElement.EnumVersion, JDFElement.EnumXYRelation
KElement.SimpleElementNameComparator, KElement.SimpleNodeComparator, KElement.SingleAttributeComparator, KElement.SingleXPathComparator
firstChild, fNodeListCache, ownerDocument
DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_IS_CONTAINED, DOCUMENT_POSITION_PRECEDING, ELEMENT_DEFINITION_NODE, FIRSTCHILD, flags, HASSTRING, ID, IGNORABLEWS, NORMALIZED, OWNED, ownerNode, READONLY, SPECIFIED, SYNCCHILDREN, SYNCDATA, TREE_POSITION_ANCESTOR, TREE_POSITION_DESCENDANT, TREE_POSITION_DISCONNECTED, TREE_POSITION_EQUIVALENT, TREE_POSITION_FOLLOWING, TREE_POSITION_PRECEDING, TREE_POSITION_SAME_NODE
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
DERIVATION_EXTENSION, DERIVATION_LIST, DERIVATION_RESTRICTION, DERIVATION_UNION
Constructor and Description |
---|
JDFResourceLink(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
String qualifiedName)
Constructor for JDFResourceLink
|
JDFResourceLink(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
String myNamespaceURI,
String qualifiedName)
Constructor for JDFResourceLink
|
JDFResourceLink(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
String myNamespaceURI,
String qualifiedName,
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
|
String |
getAmountPoolAttribute(String attrib,
String nameSpaceURI,
JDFAttributeMap mPart,
int iSkip)
returns the attribute occurence in PartAmount, or the default in the ResourceLink
|
String |
getAmountPoolAttribute(String attrib,
String nameSpaceURI,
VJDFAttributeMap vPart)
returns the attribute occurence in PartAmount, or the default in the ResourceLink
|
double |
getAmountPoolDouble(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. mPart is a submap of the searched PartAmount elements
|
double |
getAmountPoolDouble(String attName,
VJDFAttributeMap vPart)
get the exactly matching AmountPool/PartAmount/@AttName as a double
|
double |
getAmountPoolSumDouble(String attName,
VJDFAttributeMap vPart) |
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() |
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(String attrib,
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.
|
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
|
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
|
Vector<JDFResource.EnumPartIDKey> |
getPipePartIDKeysEnum()
Gets an enumerated list of all valid pipe part keys for this resource
|
String |
getPipeProtocol()
gets string attribute PipeProtocol
|
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 |
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() |
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(String attrib,
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.
|
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.
|
boolean |
isValid(JDFElement.EnumValidationLevel level)
default validator
|
boolean |
matchesString(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(String attrib,
String value,
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(String attrib,
String value,
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(String key,
String value)
setPart - shorthand if only one part is required, should be set to key = value
|
void |
setPartition(JDFResource.EnumPartIDKey key,
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
|
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, setTransformation
appendAnchor, appendBestEffortExceptions, appendComment, appendElement, appendGeneralID, appendGeneralID, appendGeneralID, appendHRef, appendHRef, appendMustHonorExceptions, appendOperatorInterventionExceptions, appendPreview, appendrRefs, attributeType, clearTargets, cloneNewDoc, copyInto, deprecatedAttributes, eraseDefaultAttributes, exclusiveOneOfAttribute, exclusiveOneOfElement, fixVersion, getAllRefs, getAtrType, getAttributeInfo, getBestEffortExceptions, getChildElement, getChildElements, getChildElementVector_JDFElement, getChildElementVector, getChildIds, getChildrenByTagName, getChildrenByTagName, getChildWithAttribute, getChildWithMatchingAttribute, getComment, getComment, getCommentURL, getCreateComment, getCreatePreview, getCreateRefElement, getDeepElementByID, getDefaultAttributeMap, getDefaultJDFVersion, getDeprecatedAttributes, getDeprecatedElements, getDescriptiveName, getElement_JDFElement, getElement, getElementIDPrefix, getElementNameVector, getEnumAttribute, getEnumerationsAttribute, getEnumerationsAttribute, getEnumforAttribute, getEnumNodeName, getEnumString, getFirstVersion, getGeneralID, getGeneralID, getGeneralID, getGeneralIDMap, getGeneralIDVectorMap, getHRef, getHRefs, getHRefs, getInsertElements, getInsertElementVector, getInvalidElements_JDFElement, getInvalidElements, getJDFRoot, getJMFRoot, getLastVersion, getLinkFromUserData, getLinkRoot, getMaxVersion, getMissingAttributes, getMissingAttributeVector, getMissingElements, getMissingElementVector, getMustHonorExceptions, getNamesVector, getOperatorInterventionExceptions, getOwnerDocument_JDFElement, getParentJDF, getParentJDF, 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, inlineRefElements, insertBefore, isComment, isCommentStatic, isDeprecated, isDirty, isInJDFNameSpace, isInJDFNameSpaceStatic, isInJDFNameSpaceStatic, isInXJDFNameSpaceStatic, isInXJDFNameSpaceStatic, isJDFNode, isRefElement, isRefElementStatic, isResource, isResourceLink, isResourceLinkStatic, isResourceStatic, isResourceUpdate, isValid_JDFElement, isXJDF, jdfVersion, knownAttributes, knownElements, matchesPath, newID, numChildElements_JDFElement, 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, write2Dir
addAttribute, addAttribute, addNameSpace, ancestorDistance, appendAttribute, appendCData, appendCData, appendChild, appendElement, appendElementN, appendElementRaw, appendEntityReference, appendText, appendTextElement, appendXMLComment, appendXMLComment, buildRelativeXPath, buildXPath, buildXPath, buildXPath, clone, copyAttribute, copyAttribute, copyElement, copyElements, copyXPathValue, createRoot, deleteNode, eraseEmptyAttributes, eraseEmptyNodes, fillHashSet, fitsName_KElement, fitsName, flush, generateDotID, getAttribute_KElement, getAttribute_KElement, getAttribute, getAttribute, getAttributeMap_KElement, getAttributeMap, getAttributeRaw, getAttributeVector_KElement, getAttributeVector, getBoolAttribute, getCData, getChildAttributeList, getChildByTagName, getChildElementArray, getChildElementVector_KElement, getChildElementVector, getChildElementVector, getChildFromList, getChildFromList, getChildNode, getChildNodes_KElement, getChildNodeVector, getChildrenByClass, getChildrenByTagName_KElement, getChildrenFromList, getChildrenIgnoreList, getChildrenWithAttribute, getCreateChildWithAttribute, getCreateElement_KElement, getCreateElement, getCreateElement, getCreateXPathElement, getDeepElement, getDeepParent, getDeepParent, getDeepParentChild, getDeepParentNotName, getDocRoot, getDOMAttr, getElement_KElement, getElement, getElementByClass, getElementHashMap, getElementsByTagName_KElement, getFirstChildElement, getFirstChildElement, getFirstChildElement, getFirstElementNode, getID, getIDPrefix, getInheritedAttribute, getInheritedElement, getInheritedXPathAttribute, getIntAttribute, getLocalNameStatic, getLongAttribute, getMultipleIDs, getNamespaceURI, getNamespaceURIFromPrefix, getNextElementNode, getNextSiblingElement, getNextSiblingElement, getNextSiblingElement, getNonEmpty_KElement, getNonEmpty, getNumCDatas, getNumChildNodes, getNumChildText, getNumXMLComments, getOwnerDocument_KElement, getParentNode_KElement, getPreviousSiblingElement, getPreviousSiblingElement, getRealAttribute, getTarget_KElement, getText, getText, getTree, getTreeElement, getXMLComment, getXMLNSNameSpace, getXMLNSPrefix, getXPathAttribute, getXPathAttributeMap, getXPathElement, getXPathElementVector, getXPathValueMap, getXSIType, hasAttribute_KElement, hasAttribute, hasAttribute, hasAttributes, hasChildElement, hasChildElements, hasChildNodes, hasChildText, hasNonEmpty_KElement, hasNonEmpty, hasXPathNode, includesAttribute, includesAttributes, init, insertAt, insertBefore, isAncestor, isEqual, isWildCard, matchesPath, matchesPathName, mergeElement, moveAttribute, moveAttribute, moveElement, moveElements, moveMe, normalize, numChildElements_KElement, numChildNodes, numChildNodes, numChildrenByClass, numSiblingElements, pushUp, removeAllText, removeAttribute_KElement, removeAttribute, removeAttribute, removeAttributeNode, removeAttributeNS, removeAttributes, removeCData, removeChildNode, removeChildren, removeChildrenByClass, removeChildText, removeExtensions, removeFromAttribute, removeXMLComment, removeXPathAttribute, removeXPathElement, renameAttribute, renameAttribute, renameElement, replaceElement, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setAttributeNSRaw, setAttributeRaw, setAttributes, setAttributes, setAttributes, setAttributesRaw, setBoolAttribute, setDirty, setID, setIntAttribute, setNamespaceURI, setNodeValue, setNonEmpty, setPrefix, setRealAttribute, setText, setvStringAttribute, setXMLComment, setXPathAttribute, setXPathValue, setXPathValues, setXSIType, sortChild, sortChild, sortChildren, sortChildren, sortChildren, sortChildren, toDisplayXML, toXML, toXML, uniqueID, write2File, write2File, write2Stream, xmlNameSpace, xmlnsLocalName, xmlnsPrefix
getBaseURI, getLocalName, getPrefix, getTypeName, getTypeNamespace, isDerivedFrom, setType, setValues
cloneNode, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getDefaultAttributes, getElementsByTagName, getElementsByTagNameNS, getNodeName, getNodeType, getSchemaTypeInfo, getTagName, getXercesAttribute, hasAttributeNS, isEqualNode, reconcileDefaultAttributes, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setOwnerDocument, setReadOnly, setupDefaultAttributes, setXercesAttributeNode, synchronizeData
getChildNodes, getChildNodesUnoptimized, getFirstChild, getLastChild, getLength, getOwnerDocument, getTextContent, hasChildNodes, item, setTextContent, synchronizeChildren
getNextSibling, getParentNode, getPreviousSibling
addEventListener, changed, changes, compareDocumentPosition, compareTreePosition, dispatchEvent, getContainer, getFeature, getNodeNumber, getNodeValue, getReadOnly, getUserData, getUserData, getUserDataRecord, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, needsSyncChildren, removeEventListener, setUserData, setUserData
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAmountPool, getAttribute, getRealAttribute, hasAttribute, removeAttribute, setAttribute
getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS
cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasChildNodes, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, setTextContent, setUserData
public JDFResourceLink(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String qualifiedName)
myOwnerDocument
- owner documentqualifiedName
- qualified namepublic JDFResourceLink(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String myNamespaceURI, String qualifiedName)
myOwnerDocument
- owner documenmyNamespaceURI
- namespace URIqualifiedName
- qualified namepublic JDFResourceLink(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String myNamespaceURI, String qualifiedName, String myLocalName)
myOwnerDocument
- owner documenmyNamespaceURI
- namespace URIqualifiedName
- qualified namemyLocalName
- local nameprotected ElementInfo getTheElementInfo()
getTheElementInfo
in class JDFAutoResourceLink
public static boolean isResourceLink(KElement e)
e
- public VString getInvalidAttributes(JDFElement.EnumValidationLevel level, boolean bIgnorePrivate, int nMax)
JDFElement
getInvalidAttributes
in class JDFElement
level
- 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 JDFAutoResourceLink
enumVar
- the enumVar to set the attribute topublic JDFResourceLink.EnumUsage getUsage()
getUsage
in class JDFAutoResourceLink
public void generateCombinedProcessIndex()
public boolean validCombinedProcessIndex()
public String toString()
toString
in class JDFAutoResourceLink
Object.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 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 String getAuditString()
public VElement getParts()
public void setPart(String key, String value)
key
- the partition keyvalue
- the partition valuepublic void setPartition(JDFResource.EnumPartIDKey key, 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 JDFElement
public 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 String getLinkedResourceName()
public String getNamedProcessUsage()
public boolean validResourcePosition()
public boolean isValid(JDFElement.EnumValidationLevel level)
isValid
in class JDFElement
level
- 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()
JDFAutoResourceLink
getCreateAmountPool
in interface IAmountPoolContainer
getCreateAmountPool
in class JDFAutoResourceLink
IAmountPoolContainer.getCreateAmountPool()
public JDFAmountPool appendAmountPool()
JDFAutoResourceLink
appendAmountPool
in class JDFAutoResourceLink
public JDFLot getLot(int n)
getLot
in class JDFAutoResourceLink
n
- 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(String attrib, 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 String getAmountPoolAttribute(String attrib, 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 String getAmountPoolAttribute(String attrib, 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(String attrib, 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(String attrib, String value, 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(String attrib, String value, 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(String attName, VJDFAttributeMap vPart)
attName
- vPart
- public double getAmountPoolDouble(String attName, VJDFAttributeMap vPart)
attName
- vPart
- JDFException
- if the element can not be cast to doublepublic double getAmountPoolDouble(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 JDFAutoResourceLink
public JDFResource.EnumResStatus getMinLateStatus()
getMinLateStatus
in class JDFAutoResourceLink
@Deprecated public void setPipePartIDKeys(VString keys)
keys
- vector of values to setpublic Vector<JDFResource.EnumPartIDKey> getPipePartIDKeysEnum()
public void setCombinedProcessIndex(JDFIntegerList value)
setCombinedProcessIndex
in class JDFAutoResourceLink
value
- attribute value to setpublic void setCombinedProcessIndex(int value)
value
- attribute value to setpublic VString getCombinedProcessTypes()
public void setDraftOK(boolean value)
setDraftOK
in class JDFAutoResourceLink
value
- attribute value to setpublic boolean getDraftOK()
getDraftOK
in class JDFAutoResourceLink
public String getPipeProtocol()
getPipeProtocol
in class JDFAutoResourceLink
public String getPipeURL()
getPipeURL
in class JDFAutoResourceLink
public VJDFAttributeMap getPartMapVector()
getPartMapVector
in interface IAmountPoolContainer
getPartMapVector
in class JDFElement
public void setPartMapVector(VJDFAttributeMap vParts)
setPartMapVector
in class JDFElement
vParts
- vector of attribute maps for the partspublic void setPartMap(JDFAttributeMap mPart)
setPartMap
in class JDFElement
mPart
- attribute map for the part to setpublic void removePartMap(JDFAttributeMap mPart)
removePartMap
in class JDFElement
mPart
- attribute map for the part to removepublic boolean hasPartMap(JDFAttributeMap mPart)
hasPartMap
in class JDFElement
mPart
- attribute map for the part to removepublic boolean matchesString(String namedResLink)
namedResLink
- Copyright © 2018. All rights reserved.