org.cip4.jdflib.core
Class JDFResourceLink

java.lang.Object
  extended by org.apache.xerces.dom.NodeImpl
      extended by org.apache.xerces.dom.ChildNode
          extended by org.apache.xerces.dom.ParentNode
              extended by org.apache.xerces.dom.ElementImpl
                  extended by org.apache.xerces.dom.ElementNSImpl
                      extended by org.cip4.jdflib.core.KElement
                          extended by org.cip4.jdflib.core.JDFElement
                              extended by org.cip4.jdflib.core.JDFResourceLink
All Implemented Interfaces:
Serializable, Cloneable, IAmountPoolContainer, Element, EventTarget, Node, NodeList, TypeInfo
Direct Known Subclasses:
JDFPartAmount

public class JDFResourceLink
extends JDFElement
implements IAmountPoolContainer

Author:
Dr. Rainer Prosi, Heidelberger Druckmaschinen AG way before 20.02.2009
See Also:
Serialized Form

Nested Class Summary
static class JDFResourceLink.EnumOrientation
          Enumeration for Orientation
static class JDFResourceLink.EnumUsage
          Enumeration for attribute Usage
 
Nested classes/interfaces inherited from class org.cip4.jdflib.core.JDFElement
JDFElement.EnumBoolean, JDFElement.EnumNamedColor, JDFElement.EnumNodeStatus, JDFElement.EnumPoolType, JDFElement.EnumSeparation, JDFElement.EnumSettingsPolicy, JDFElement.EnumValidationLevel, JDFElement.EnumVersion, JDFElement.EnumXYRelation
 
Nested classes/interfaces inherited from class org.cip4.jdflib.core.KElement
KElement.SimpleNodeComparator, KElement.SingleAttributeComparator, KElement.SingleXPathComparator
 
Field Summary
 
Fields inherited from class org.apache.xerces.dom.ElementNSImpl
localName, namespaceURI
 
Fields inherited from class org.apache.xerces.dom.ElementImpl
attributes, name
 
Fields inherited from class org.apache.xerces.dom.ParentNode
firstChild, fNodeListCache, ownerDocument
 
Fields inherited from class org.apache.xerces.dom.ChildNode
nextSibling, previousSibling
 
Fields inherited from class org.apache.xerces.dom.NodeImpl
DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_IS_CONTAINED, DOCUMENT_POSITION_PRECEDING, ELEMENT_DEFINITION_NODE, FIRSTCHILD, flags, HASSTRING, ID, IGNORABLEWS, NORMALIZED, OWNED, ownerNode, READONLY, SPECIFIED, SYNCCHILDREN, SYNCDATA, TREE_POSITION_ANCESTOR, TREE_POSITION_DESCENDANT, TREE_POSITION_DISCONNECTED, TREE_POSITION_EQUIVALENT, TREE_POSITION_FOLLOWING, TREE_POSITION_PRECEDING, TREE_POSITION_SAME_NODE
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Fields inherited from interface org.w3c.dom.TypeInfo
DERIVATION_EXTENSION, DERIVATION_LIST, DERIVATION_RESTRICTION, DERIVATION_UNION
 
Constructor Summary
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
 
Method Summary
 JDFAmountPool appendAmountPool()
           
 JDFLot appendLot()
          append Lot element
 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
 JDFAmountPool getAmountPool()
           
 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
 JDFIntegerList getCombinedProcessIndex()
          gets attribute CombinedProcessIndex
 String getCombinedProcessType()
          gets attribute CombinedProcessType
 VString getCombinedProcessTypes()
          gets list of all types referenced by CombinedProccessIndex or CombinedProcessType
 JDFAmountPool getCreateAmountPool()
           
 JDFLot getCreateLot(int n)
          get the nTh Lot element
 JDFPart getCreatePart(int i)
          get element Part, create if it does not exist
 boolean getDraftOK()
          gets attribute DraftOK
 JDFDuration getDuration()
          gets attribute Duration
 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.
 JDFResourceLink.EnumOrientation getOrientation()
          gets string attribute Orientation
 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
 VString getPipePartIDKeys()
          Deprecated.  
 Vector<JDFResource.EnumPartIDKey> getPipePartIDKeysEnum()
          Gets an enumerated list of all valid pipe part keys for this resource
 double getPipePause()
          gets attribute PipePause
 String getPipeProtocol()
          gets string attribute PipeProtocol
 double getPipeResume()
          gets attribute PipeResume
 String getPipeURL()
          gets string attribute PipeURL
 JDFPool getPool()
          get the parent ResourceLinkPool
 String getProcessUsage()
          get attribute ProcessUsage
 boolean getRecommendation()
          gets attribute Recommendation
 double getRemotePipeEndPause()
          gets attribute RemotePipeEndPause
 double getRemotePipeEndResume()
          gets attribute RemotePipeEndResume
protected  JDFResourceLinkPool getResourceLinkPool()
          get the parent ResourceLinkPool
 VJDFAttributeMap getResourcePartMapVector()
          get part map vector as defined by the linked resource.
 String getrRef()
          gets string attribute rRef
 String getrSubRef()
          gets string attribute rSubRef
 JDFDate getStart()
          gets attribute Start
 JDFDuration getStartOffset()
          gets attribute StartOffset
 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  AttributeInfo getTheAttributeInfo()
           
protected  ElementInfo getTheElementInfo()
           
 JDFMatrix getTransformation()
          gets string attribute Transformation
 JDFResourceLink.EnumUsage getUsage()
          getUsage - get the usage of the ResourceLink in a JDF node.
 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.
 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 setCombinedProcessType(String value)
          sets attribute CombinedProcessType
 void setDraftOK(boolean value)
          sets attribute DraftOK if version>=1.3, set MinStatus=Draft instead of DraftOK=true
 void setDuration(JDFDuration value)
          sets attribute Duration
 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 setMinLateStatus(JDFResource.EnumResStatus value)
          Method setUsage.
 void setMinStatus(JDFResource.EnumResStatus value)
          set attribute MinStatus
 void setOrientation(JDFResourceLink.EnumOrientation value)
          sets attribute Orientation
 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(Vector<? extends org.apache.commons.lang.enums.ValuedEnum> keys)
          Sets the value of PipePartIDKeys
 void setPipePartIDKeys(VString keys)
          Deprecated. use setPipePartIDKeys(Vector enum)
 void setPipePause(double value)
          sets attribute PipePause
 void setPipeProtocol(String value)
          sets attribute PipeProtocol
 void setPipeResume(double value)
          sets attribute PipeResume
 void setPipeURL(String value)
          sets attribute PipeURL
 void setProcessUsage(JDFNode.EnumProcessUsage processUsage)
          set attribute ProcessUsage
 void setProcessUsage(String processUsage)
          set attribute ProcessUsage - this method is no longer deprecated since ICS documents may specify additional values that are not encoded in the enums
 void setQuantity(int quant)
          setQuantity
 void setRecommendation(boolean value)
          sets attribute Recommendation
 void setRemotePipeEndPause(double value)
          sets attribute RemotePipeEndPause
 void setRemotePipeEndResume(double value)
          sets attribute RemotePipeEndResume
 void setrRef(String value)
          sets attribute rRef
 void setrSubRef(String value)
          sets attribute rSubRef
 void setStart(JDFDate value)
          sets attribute Start
 void setStartOffset(JDFDuration value)
          sets attribute StartOffset
 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 setTransformation(JDFMatrix value)
          sets attribute Transformation(
 void setUsage(JDFResourceLink.EnumUsage value)
          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
 
Methods inherited from class org.cip4.jdflib.core.JDFElement
appendAnchor, appendBestEffortExceptions, appendComment, appendElement, 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, getLinkRoot, getMaxVersion, getMissingAttributes, getMissingAttributeVector, getMissingElements, getMissingElementVector, getMustHonorExceptions, getNamesVector, getOperatorInterventionExceptions, getOwnerDocument_JDFElement, getParentJDF, getParentJDF, getPartMap, getPrereleaseAttributes, getPrereleaseElements, getPreview, getRefElement, getRefElements, getRefString, getrRefs, 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, isDirty, isInJDFNameSpace, isInJDFNameSpaceStatic, isInJDFNameSpaceStatic, isJDFNode, isRefElement, isRefElementStatic, isResource, isResourceLink, isResourceLinkStatic, isResourceStatic, isResourceUpdate, isValid_JDFElement, 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
 
Methods inherited from class org.cip4.jdflib.core.KElement
addAttribute, addAttribute, addNameSpace, ancestorDistance, appendAttribute, appendCData, appendCData, appendChild, appendElement, appendElementN, appendElementRaw, appendEntityReference, appendText, appendTextElement, appendXMLComment, appendXMLComment, 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, getAttributeVector_KElement, getAttributeVector, getBoolAttribute, getCData, getChildAttributeList, getChildByTagName, getChildElementArray, getChildElementVector_KElement, getChildElementVector, getChildElementVector, getChildFromList, getChildFromList, getChildNode, getChildNodes_KElement, getChildNodeVector, getChildrenByClass, getChildrenByTagName_KElement, getChildrenFromList, getChildrenWithAttribute, 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, getNumCDatas, getNumChildNodes, getNumChildText, getNumXMLComments, getOwnerDocument_KElement, getParentNode_KElement, getPreviousSiblingElement, getPreviousSiblingElement, getRealAttribute, getTarget_KElement, getText, getText, getTree, getTreeElement, getXMLComment, getXMLNSNameSpace, getXMLNSPrefix, getXPathAttribute, getXPathAttributeMap, getXPathElement, getXPathElementVector, getXSIType, hasAttribute_KElement, hasAttribute, hasAttribute, hasAttributes, hasChildElement, hasChildElements, hasChildNodes, hasChildText, hasXPathNode, includesAttribute, includesAttributes, init, insertAt, insertBefore, isAncestor, isEqual, isWildCard, matchesPath, matchesPathName, mergeElement, moveAttribute, moveAttribute, moveElement, moveElements, moveMe, normalize, numChildElements_KElement, numChildNodes, numSiblingElements, pushUp, removeAllText, removeAttribute_KElement, removeAttribute, removeAttribute, removeAttributeNode, removeAttributeNS, removeAttributes, removeCData, removeChildNode, removeChildren, removeChildText, removeExtensions, removeFromAttribute, removeXMLComment, removeXPathAttribute, removeXPathElement, 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, setPrefix, setRealAttribute, setText, setvStringAttribute, setXMLComment, setXPathAttribute, setXPathValue, setXPathValues, setXSIType, sortChild, sortChild, sortChildren, sortChildren, toDisplayXML, toXML, toXML, uniqueID, write2File, write2File, write2Stream, xmlNameSpace, xmlnsLocalName, xmlnsPrefix
 
Methods inherited from class org.apache.xerces.dom.ElementNSImpl
getBaseURI, getLocalName, getPrefix, getTypeName, getTypeNamespace, isDerivedFrom, setType, setValues
 
Methods inherited from class org.apache.xerces.dom.ElementImpl
cloneNode, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getDefaultAttributes, getElementsByTagName, getElementsByTagNameNS, getNodeName, getNodeType, getSchemaTypeInfo, getTagName, getXercesAttribute, hasAttributeNS, isEqualNode, reconcileDefaultAttributes, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setOwnerDocument, setReadOnly, setupDefaultAttributes, setXercesAttributeNode, synchronizeData
 
Methods inherited from class org.apache.xerces.dom.ParentNode
getChildNodes, getChildNodesUnoptimized, getFirstChild, getLastChild, getLength, getOwnerDocument, getTextContent, hasChildNodes, item, setTextContent, synchronizeChildren
 
Methods inherited from class org.apache.xerces.dom.ChildNode
getNextSibling, getParentNode, getPreviousSibling
 
Methods inherited from class org.apache.xerces.dom.NodeImpl
addEventListener, changed, changes, compareDocumentPosition, compareTreePosition, dispatchEvent, getContainer, getFeature, getNodeNumber, getNodeValue, getReadOnly, getUserData, getUserData, getUserDataRecord, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, needsSyncChildren, removeEventListener, setUserData, setUserData
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.cip4.jdflib.ifaces.IAmountPoolContainer
getAttribute, getRealAttribute, hasAttribute, removeAttribute, setAttribute
 
Methods inherited from interface org.w3c.dom.Element
getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS
 
Methods inherited from interface org.w3c.dom.Node
cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasChildNodes, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, setTextContent, setUserData
 

Constructor Detail

JDFResourceLink

public JDFResourceLink(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
                       String qualifiedName)
Constructor for JDFResourceLink

Parameters:
myOwnerDocument - owner document
qualifiedName - qualified name

JDFResourceLink

public JDFResourceLink(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
                       String myNamespaceURI,
                       String qualifiedName)
Constructor for JDFResourceLink

Parameters:
myOwnerDocument - owner documen
myNamespaceURI - namespace URI
qualifiedName - qualified name

JDFResourceLink

public JDFResourceLink(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
                       String myNamespaceURI,
                       String qualifiedName,
                       String myLocalName)
Constructor for JDFResourceLink

Parameters:
myOwnerDocument - owner documen
myNamespaceURI - namespace URI
qualifiedName - qualified name
myLocalName - local name
Method Detail

getInvalidAttributes

public VString getInvalidAttributes(JDFElement.EnumValidationLevel level,
                                    boolean bIgnorePrivate,
                                    int nMax)
Description copied from class: JDFElement
get invalid attributes

Overrides:
getInvalidAttributes in class JDFElement
Parameters:
level - validation level
bIgnorePrivate - if true, do not worry about attributes in other namespaces
nMax - maximum size of the returned vector
Returns:
VString - a vector of invalid attribute names
See Also:
JDFElement.getInvalidAttributes(org.cip4.jdflib.core.JDFElement.EnumValidationLevel, boolean, int)

generateCombinedProcessIndex

public void generateCombinedProcessIndex()

validCombinedProcessIndex

public boolean validCombinedProcessIndex()
Returns:

getTheAttributeInfo

protected AttributeInfo getTheAttributeInfo()
Overrides:
getTheAttributeInfo in class JDFElement
Returns:

getTheElementInfo

protected ElementInfo getTheElementInfo()
Overrides:
getTheElementInfo in class JDFElement
Returns:
the elementinfo

toString

public String toString()
toString

Overrides:
toString in class JDFElement
Returns:
String
See Also:
Object.toString()

unpartition

public void unpartition(boolean bRemovePartMapVector,
                        boolean bRemoveAmountPool)
remove all partition stuff

Parameters:
bRemovePartMapVector -
bRemoveAmountPool - if true, assume all amounts apply to the main resource and copy from the first partamount

setTarget

public boolean setTarget(JDFResource resourceTarget)
setTarget - sets the link to the target defined by partLeaf. Automatically generates a part subelement, if partleaf is not the root resource

Parameters:
resourceTarget - the resource that this ResourceLink shoud refer to
Returns:
boolean - always true
Throws:
JDFException - if an attempt is made to link to a resource sub-element

getAmount

public double getAmount(JDFAttributeMap mPart)
get double attribute Amount, defaults to the value of Amount for the linked partition

Parameters:
mPart - partition map to retrieve Amount for
Returns:
the amount, -1 if none is specified

getMinAmount

public double getMinAmount(JDFAttributeMap mPart)
get double attribute MinAmount, defaults to getAmount if MinAmount is not set

Parameters:
mPart - partition map to retrieve MinAmount for
Returns:
the MinAmount value

getMaxAmount

public double getMaxAmount(JDFAttributeMap mPart)
get double attribute MaxAmount, defaults to getAmount if MinAmount is not set

Parameters:
mPart - partition map to retrieve MaxAmount for
Returns:
the MaxAmount value

getLinkRoot

public JDFResource getLinkRoot()
getLinkRoot - gets the root resource of the target

Specified by:
getLinkRoot in interface IAmountPoolContainer
Returns:
JDFResource

getLinkTarget

@Deprecated
public JDFResource getLinkTarget()
Deprecated. never used

getLinkTarget

Returns:
JDFResource

setQuantity

public void setQuantity(int quant)
setQuantity

Parameters:
quant -

setAmount

public void setAmount(double value,
                      JDFAttributeMap mPart)
setAmount in PartAmount or in this if partAmount=null

Parameters:
value - amount to set
mPart - partition map to set amount for

setMinAmount

public void setMinAmount(double value,
                         JDFAttributeMap mPart)
set MinAmount in PartAmount or in this if partAmount=null

Parameters:
value - amount to set
mPart - partition map to set amount for

setMaxAmount

public void setMaxAmount(double value,
                         JDFAttributeMap mPart)
set MaxAmount in PartAmount or in this if partAmount=null

Parameters:
value - amount to set
mPart - partition map to set amount for

getStatusJDF

public JDFResource.EnumResStatus getStatusJDF()
get the status of the Resource that is linked by this link

Returns:
JDFResource.EnumResStatus

setStatus

public void setStatus(JDFResource.EnumResStatus s)
set the status of the Resource that is linked by this link

Parameters:
s - value to set

isLocal

public boolean isLocal()
check whether the resource is in the same node as the link

Returns:
true, if the linked resource resides in the same node

getPart

public JDFPart getPart(int i)
get first Part element beyond i

Parameters:
i - number of elements to skip
Returns:
JDFResource

getCreatePart

public JDFPart getCreatePart(int i)
get element Part, create if it does not exist

Parameters:
i - number of elements to skip
Returns:
JDFResource

getAuditString

public String getAuditString()
get element Audit

Returns:
String

getParts

public 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

Returns:
VElement

setPart

public void setPart(String key,
                    String value)
setPart - shorthand if only one part is required, should be set to key = value

Parameters:
key - the partition key
value - the partition value

setPartition

public void setPartition(JDFResource.EnumPartIDKey key,
                         String value)
shorthand if only one part is required, should be set to key = value

Parameters:
key - the partition key
value - the partition value

removePart

public void removePart(int iSkip)
remove element Part

Parameters:
iSkip - number of elements to skip

isExecutable

public 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

Parameters:
partMap - the attribute map of parts
bCheckChildren - if true, calculates the availability status of a resource from all child partition leaves, else the status is taken from the appropriate leaf itself
Returns:
boolean - true if the node is executable, false if not

getResourceLinkPool

protected JDFResourceLinkPool getResourceLinkPool()
get the parent ResourceLinkPool

Returns:
JDFResourceLinkPool - the parent ResourceLinkPool

getTarget

public 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()

Overrides:
getTarget in class JDFElement
Returns:
JDFResource - the first leaf that is referenced by this ResourceLink
Since:
102103 GetTarget returns the lowest common denominator if all children of a resource are referenced

getTargetVector

public VElement getTargetVector(int nMax)
Method getTargetVector gets the resource nodes this resourcelink refers to. Skips links that do not exist or where the name mangling is illegal.
Actual behavior varies according to the value of PartUsage of the referenced resource:
if PartUsage="Explicit", all elements that are referenced in PartIDKeys and the ResourceLink must exist and fit
if PartUsage="Implicit", the best fitting intermediate node of the partitioned resource is returned.
Attributes in the Part elements, that are not referenced in PartIDKeys, are assumed to be logical attributes (e.g. RunIndex of a RunList) and ignored when searching the part.

Parameters:
nMax - maximum number of requested resources; -1= all
Returns:
VElement - the set of leaves that are referenced by this ResourceLink

getPool

public JDFPool getPool()
get the parent ResourceLinkPool

Returns:
the parent ResourceLinkPool

hasResourcePartMap

public boolean hasResourcePartMap(JDFAttributeMap partMap,
                                  boolean bCheckResource)
checks whether a given partMap is compatible with this link

Parameters:
partMap - the map of parts that this link is compared to
bCheckResource - if true, also recurse into the resource and check if the parts exist
Returns:
boolean - true if this is compatible with partMap

overlapsResourcePartMap

public boolean overlapsResourcePartMap(JDFAttributeMap partMap)
Parameters:
partMap -
Returns:
boolean

isResourceSelected

public 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

Parameters:
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.
Returns:
true, if the resource link selects the resource

getResourcePartMapVector

public VJDFAttributeMap getResourcePartMapVector()
get part map vector as defined by the linked resource. This returns the vector of leaves that would be returned.

Returns:
vector of mAttribute, one for each part

getLeafVector

public VElement getLeafVector()
Returns:
the vector of referenced leaves

getLinkedResourceName

public String getLinkedResourceName()
Returns the linked resource name

Returns:
String - the name

getNamedProcessUsage

public String getNamedProcessUsage()
Get the expected name of the linked resource and an optional processusage in name:usage format. If no processusage is available, return GetLinkedResourceName:input / GetLinkedResourceName:output respectively.

Returns:
String

validResourcePosition

public boolean validResourcePosition()
checks whether the resource lives in the same node or an ancestor node of the link

Returns:
true, if the linked resource resides in a legal node

isValid

public boolean isValid(JDFElement.EnumValidationLevel level)
default validator

Overrides:
isValid in class JDFElement
Parameters:
level - validation level
Returns:
boolean the validity of the node
See Also:
org.cip4.jdflib.core.JDFElement#isValid(org.cip4.jdflib.core.KElement.EnumValidationLevel)

isPhysical

public 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.

Returns:
true, if the link links to a physical resource

isImplementation

public boolean isImplementation()
Returns:
boolean

appendPart

public JDFPart appendPart()
append element Part

Returns:

getAmountPool

public JDFAmountPool getAmountPool()
Specified by:
getAmountPool in interface IAmountPoolContainer
Returns:
See Also:
IAmountPoolContainer.getAmountPool()

getCreateAmountPool

public JDFAmountPool getCreateAmountPool()
Specified by:
getCreateAmountPool in interface IAmountPoolContainer
Returns:
See Also:
IAmountPoolContainer.getCreateAmountPool()

appendAmountPool

public JDFAmountPool appendAmountPool()
Returns:

getLot

public JDFLot getLot(int n)
get the nTh Lot element

Parameters:
n - the index of the element
Returns:
the nth Lot, null if it does not exist

getCreateLot

public JDFLot getCreateLot(int n)
get the nTh Lot element

Parameters:
n - the index of the element
Returns:
the nth Lot, creates all Lots in case of n-1 does not exist

appendLot

public JDFLot appendLot()
append Lot element

Returns:
the new Lot

reduceParts

public void reduceParts()
reduce the parts to the canonical representation. If all children of a parent node are in defined in parts, they are replaced by their parent. E.g. the canonical representation of all leaves is the root.


expandTarget

public void expandTarget(boolean bForce)
Expand the target resource to contain all parts specified in the link.
If PartUsage==Explicit or bForce==true, loop over all part elements as well.

Parameters:
bForce - if true, implicitly referenced partitions are also expanded

expandAmountPool

public void expandAmountPool()
create an Amountpool and fill it with the values of Amount and ActualAmount


getMinAmountPoolAttribute

public double getMinAmountPoolAttribute(String attrib,
                                        String nameSpaceURI,
                                        JDFAttributeMap mPart,
                                        int def)
returns the minimum value of attribute occurence in PartAmount,

Parameters:
attrib - the attribute name
nameSpaceURI - the XML-namespace URI
mPart - 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 found
Returns:
double - the value of attribute found, def if no matches found
Since:
060630

getAmountMap

public JDFAmountPool.AmountMap getAmountMap(VString vPartIDKeys)
get an AmountMap for the child Amountpool of this

Parameters:
vPartIDKeys -
Returns:
the AmountMap for the Amountpool, null if no amountpool exists

getAmountPoolAttribute

public String getAmountPoolAttribute(String attrib,
                                     String nameSpaceURI,
                                     JDFAttributeMap mPart,
                                     int iSkip)
returns the attribute occurence in PartAmount, or the default in the ResourceLink

Parameters:
attrib - the attribute name
nameSpaceURI - the XML-namespace
mPart - defines which part of this ResourceLink the Amount belongs to. If empty get the ResourceLink root attribute.
iSkip -
Returns:
value of attribute found, null if not available
Since:
071103

getAmountPoolAttribute

public String getAmountPoolAttribute(String attrib,
                                     String nameSpaceURI,
                                     VJDFAttributeMap vPart)
returns the attribute occurence in PartAmount, or the default in the ResourceLink

Parameters:
attrib - the attribute name
nameSpaceURI - the XML-namespace
vPart - defines which part of this ResourceLink the Amount belongs to. If null get the ResourceLink root attribute.
Returns:
value of attribute found, null if not available
Since:
071103

hasAmountPoolAttribute

@Deprecated
public boolean hasAmountPoolAttribute(String attrib,
                                                 String nameSpaceURI,
                                                 JDFAttributeMap mPart)
Deprecated. 060601 use getAmountPoolAttribute(attrib,nameSpaceURI,mPart,0)!=null;

returns true if the attribute occurrs

Parameters:
attrib - the attribute name
nameSpaceURI - the XML-namespace
mPart - which part of this ResourceLink the Amount belongs to, if empty get the ResourceLink root attribute
Returns:
true if available
Since:
071103

setAmountPoolAttribute

public 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

Parameters:
attrib - the attribute name
value - value to set in string form.
nameSpaceURI - the XML-namespace
vPart - defines which part of this ResourceLink the Amount belongs to, if empty set the ResourceLink root attribute.
Throws:
JDFException - when called directly on a PartAmount
Since:
060630

setAmountPoolAttribute

public 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

Parameters:
attrib - the attribute name
value - value to set in string form.
nameSpaceURI - the XML-namespace
mPart - defines which part of this ResourceLink the Amount belongs to, if empty set the ResourceLink root attribute
Throws:
JDFException - when called directly on a PartAmount
Since:
071103

getAmountPoolSumDouble

public double getAmountPoolSumDouble(String attName,
                                     VJDFAttributeMap vPart)
Parameters:
attName -
vPart -
Returns:

getAmountPoolDouble

public double getAmountPoolDouble(String attName,
                                  VJDFAttributeMap vPart)
get the exactly matching AmountPool/PartAmount/@AttName as a double

Parameters:
attName -
vPart -
Returns:
double -
Throws:
JDFException - if the element can not be cast to double

getAmountPoolDouble

public 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

Parameters:
attName - the Attribute name , e.g Amount, ActualAmount
mPart -
Returns:
double - the element
Throws:
JDFException - if the element can not be cast to double

setActualAmount

public void setActualAmount(double value,
                            JDFAttributeMap mPart)
Set attribute ActualAmount in the AmountPool or in the link, depending on the value of mPart

Parameters:
value - the value to set ActualAmount to
mPart - the part map of AmountPool/PartAmount

getActualAmount

public double getActualAmount(JDFAttributeMap mPart)
Parameters:
mPart -
Returns:

setProcessUsage

public void setProcessUsage(String processUsage)
set attribute ProcessUsage - this method is no longer deprecated since ICS documents may specify additional values that are not encoded in the enums

Parameters:
processUsage -

getProcessUsage

public String getProcessUsage()
get attribute ProcessUsage

Returns:
String

getEnumProcessUsage

public JDFNode.EnumProcessUsage getEnumProcessUsage()
get attribute ProcessUsage

Returns:
EnumProcessUsage

setProcessUsage

public void setProcessUsage(JDFNode.EnumProcessUsage processUsage)
set attribute ProcessUsage

Parameters:
processUsage -

setUsage

public void setUsage(JDFResourceLink.EnumUsage value)
set attribute Usage

Parameters:
value - the value to set the attribute to

getUsage

public JDFResourceLink.EnumUsage getUsage()
getUsage - get the usage of the ResourceLink in a JDF node. If no usage is available, default to the resource name.

Returns:
EnumUsage

setMinStatus

public void setMinStatus(JDFResource.EnumResStatus value)
set attribute MinStatus

Parameters:
value - the value to set the attribute to

getMinStatus

public JDFResource.EnumResStatus getMinStatus()
getMinStatus - get the minimum status of the ResourceLink in a JDF node. If usage is input or not available, check DraftOK as well.

Returns:
the status of the ResourceLink

setMinLateStatus

public void setMinLateStatus(JDFResource.EnumResStatus value)
Method setUsage.

Parameters:
value -

getMinLateStatus

public JDFResource.EnumResStatus getMinLateStatus()
get attribute MinLateStatus

Returns:
EnumUsage

setPipePartIDKeys

@Deprecated
public void setPipePartIDKeys(VString keys)
Deprecated. use setPipePartIDKeys(Vector enum)

Sets the value of PipePartIDKeys

Parameters:
keys - vector of values to set

setPipePartIDKeys

public void setPipePartIDKeys(Vector<? extends org.apache.commons.lang.enums.ValuedEnum> keys)
Sets the value of PipePartIDKeys

Parameters:
keys - vector of values to set

getPipePartIDKeys

@Deprecated
public VString getPipePartIDKeys()
Deprecated. 

Gets a list of all valid pipe part keys for this resource

Returns:
VString - list of all PipePartIDKeys

getPipePartIDKeysEnum

public Vector<JDFResource.EnumPartIDKey> getPipePartIDKeysEnum()
Gets an enumerated list of all valid pipe part keys for this resource

Returns:
Vector of EnumPartIDKey - list of all PipePartIDKeys

setCombinedProcessIndex

public void setCombinedProcessIndex(JDFIntegerList value)
sets attribute CombinedProcessIndex

Parameters:
value - attribute value to set

setCombinedProcessIndex

public void setCombinedProcessIndex(int value)
sets attribute CombinedProcessIndex

Parameters:
value - attribute value to set

getCombinedProcessIndex

public JDFIntegerList getCombinedProcessIndex()
gets attribute CombinedProcessIndex

Returns:
JDFIntegerList - attribute value, null if no CombinedProcessIndex is set or the format is illegal

setCombinedProcessType

public void setCombinedProcessType(String value)
sets attribute CombinedProcessType

Parameters:
value - attribute value to set

getCombinedProcessType

public String getCombinedProcessType()
gets attribute CombinedProcessType

Returns:
String - attribute value

getCombinedProcessTypes

public VString getCombinedProcessTypes()
gets list of all types referenced by CombinedProccessIndex or CombinedProcessType

Returns:
VString - the list of types. Each type occurs at most once

setDraftOK

public void setDraftOK(boolean value)
sets attribute DraftOK if version>=1.3, set MinStatus=Draft instead of DraftOK=true

Parameters:
value - attribute value to set

getDraftOK

public boolean getDraftOK()
gets attribute DraftOK

Returns:
boolean - attribute value. Default is false

setPipeProtocol

public void setPipeProtocol(String value)
sets attribute PipeProtocol

Parameters:
value - attribute value to set

getPipeProtocol

public String getPipeProtocol()
gets string attribute PipeProtocol

Returns:
String - attribute value.

setPipeURL

public void setPipeURL(String value)
sets attribute PipeURL

Parameters:
value - attribute value to set

getPipeURL

public String getPipeURL()
gets string attribute PipeURL

Returns:
String - attribute value.

setrRef

public void setrRef(String value)
sets attribute rRef

Parameters:
value - attribute value to set

getrRef

public String getrRef()
gets string attribute rRef

Returns:
String - attribute value.

setrSubRef

public void setrSubRef(String value)
sets attribute rSubRef

Parameters:
value - attribute value to set

getrSubRef

public String getrSubRef()
gets string attribute rSubRef

Returns:
String - attribute value.

setPipePause

public void setPipePause(double value)
sets attribute PipePause

Parameters:
value - attribute value to set

getPipePause

public double getPipePause()
gets attribute PipePause

Returns:
double - attribute value.

setPipeResume

public void setPipeResume(double value)
sets attribute PipeResume

Parameters:
value - attribute value to set

getPipeResume

public double getPipeResume()
gets attribute PipeResume

Returns:
double - attribute value.

setOrientation

public void setOrientation(JDFResourceLink.EnumOrientation value)
sets attribute Orientation

Parameters:
value - attribute value to set

getOrientation

public JDFResourceLink.EnumOrientation getOrientation()
gets string attribute Orientation

Returns:
EnumOrientation - attribute value

setRemotePipeEndPause

public void setRemotePipeEndPause(double value)
sets attribute RemotePipeEndPause

Parameters:
value - attribute value to set

getRemotePipeEndPause

public double getRemotePipeEndPause()
gets attribute RemotePipeEndPause

Returns:
double - attribute value.

setRemotePipeEndResume

public void setRemotePipeEndResume(double value)
sets attribute RemotePipeEndResume

Parameters:
value - attribute value to set

getRemotePipeEndResume

public double getRemotePipeEndResume()
gets attribute RemotePipeEndResume

Returns:
double - attribute value.

setTransformation

public void setTransformation(JDFMatrix value)
sets attribute Transformation(

Parameters:
value - attribute value to set
Throws:
JDFException

getTransformation

public JDFMatrix getTransformation()
gets string attribute Transformation

Returns:
JDFMatrix - attribute value
Throws:
JDFException - if attribute has not a type JDFMatrix

setDuration

public void setDuration(JDFDuration value)
sets attribute Duration

Parameters:
value - attribute value to set

getDuration

public JDFDuration getDuration()
gets attribute Duration

Returns:
JDFDuration - attribute value.
Throws:
JDFException - if attribute has not a type JDFDuration

setRecommendation

public void setRecommendation(boolean value)
sets attribute Recommendation

Parameters:
value - attribute value to set

getRecommendation

public boolean getRecommendation()
gets attribute Recommendation

Returns:
boolean - attribute value.

setStart

public void setStart(JDFDate value)
sets attribute Start

Parameters:
value - attribute value to set

getStart

public JDFDate getStart()
gets attribute Start

Returns:
JDFDate - attribute value
Throws:
JDFException - if attribute has not a type JDFDate

setStartOffset

public void setStartOffset(JDFDuration value)
sets attribute StartOffset

Parameters:
value - - attribute value to set

getStartOffset

public JDFDuration getStartOffset()
gets attribute StartOffset

Returns:
JDFDuration - attribute value
Throws:
JDFException - if attribute has not a type JDFDuration

getPartMapVector

public VJDFAttributeMap getPartMapVector()
get part map vector

Specified by:
getPartMapVector in interface IAmountPoolContainer
Overrides:
getPartMapVector in class JDFElement
Returns:
VJDFAttributeMap - vector of attribute maps, one for each part

setPartMapVector

public void setPartMapVector(VJDFAttributeMap vParts)
set all parts to those define in vParts

Overrides:
setPartMapVector in class JDFElement
Parameters:
vParts - vector of attribute maps for the parts

setPartMap

public void setPartMap(JDFAttributeMap mPart)
set all parts to those defined in vParts

Overrides:
setPartMap in class JDFElement
Parameters:
mPart - attribute map for the part to set

removePartMap

public void removePartMap(JDFAttributeMap mPart)
remove the part defined in mPart

Overrides:
removePartMap in class JDFElement
Parameters:
mPart - attribute map for the part to remove

hasPartMap

public boolean hasPartMap(JDFAttributeMap mPart)
check whether the part defined in mPart is included

Overrides:
hasPartMap in class JDFElement
Parameters:
mPart - attribute map for the part to remove
Returns:
boolean - returns true if the part exists

matchesString

public boolean matchesString(String namedResLink)
return true if this is moderately well described by namedReslink

Parameters:
namedResLink -
Returns:


Copyright © 2013. All Rights Reserved.