|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xerces.dom.NodeImpl
org.apache.xerces.dom.ChildNode
org.apache.xerces.dom.ParentNode
org.apache.xerces.dom.ElementImpl
org.apache.xerces.dom.ElementNSImpl
org.cip4.jdflib.core.KElement
org.cip4.jdflib.core.JDFElement
org.cip4.jdflib.auto.JDFAutoResourceInfo
org.cip4.jdflib.jmf.JDFResourceInfo
public class JDFResourceInfo
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.cip4.jdflib.auto.JDFAutoResourceInfo |
|---|
JDFAutoResourceInfo.EnumCommandResult, JDFAutoResourceInfo.EnumLevel |
| Nested classes/interfaces inherited from class org.cip4.jdflib.core.JDFElement |
|---|
JDFElement.EnumBoolean, JDFElement.EnumNamedColor, JDFElement.EnumNodeStatus, JDFElement.EnumOrientation, 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.TypeInfo |
|---|
DERIVATION_EXTENSION, DERIVATION_LIST, DERIVATION_RESTRICTION, DERIVATION_UNION |
| Constructor Summary | |
|---|---|
JDFResourceInfo(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
String qualifiedName)
Constructor for JDFResourceInfo |
|
JDFResourceInfo(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
String myNamespaceURI,
String qualifiedName)
Constructor for JDFResourceInfo |
|
JDFResourceInfo(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
String myNamespaceURI,
String qualifiedName,
String myLocalName)
Constructor for JDFResourceInfo |
|
| Method Summary | |
|---|---|
JDFResource |
appendResource(String resName)
append resource |
static JDFResourceInfo |
createResourceInfo(JDFMessage parent,
JDFResourceLink resourceLink,
boolean copyResource)
create a resourceInfo in parent based on resourceLink |
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 searche PartAmount elements |
double |
getAmountPoolDouble(String attName,
VJDFAttributeMap vPart)
get the exactly matching AmountPool/PartAmount/@AttName as a double |
double |
getAmountPoolSumDouble(String attName,
VJDFAttributeMap vPart)
|
JDFResource |
getCreateResource(String resName)
get the resource defined by resName |
VString |
getInvalidElements(JDFElement.EnumValidationLevel level,
boolean bIgnorePrivate,
int nMax)
Method getInvalidElements default: GetInvalidElements(level, true, 999999) |
JDFResource |
getLinkRoot()
getLinkRoot - gets the root resource of the target based on ResourceName, if available |
VJDFAttributeMap |
getPartMapVector()
get part map vector |
String |
getProductID()
if a Resource is available, return it's ProductID if no productID is available, return null |
JDFResource |
getResource(String resName)
get resource defined by resName |
String |
getResourceID()
if a Resource is available, return it's ID |
String |
getResourceName()
if a Resource is available, return it's name, null if none is available |
VElement |
getResourceVector()
get all resources |
JDFResource.EnumResStatus |
getResStatus()
if a Resource is available, return it's status |
protected ElementInfo |
getTheElementInfo()
|
VString |
getUnknownElements(boolean bIgnorePrivate,
int nMax)
return a vector of unknown element nodenames default: getUnknownElements(true, 999999) |
boolean |
hasPartMap(JDFAttributeMap mPart)
check whether the part defined in mPart is included |
protected boolean |
matchersRQP(String resourceName,
JDFResourceQuParams rqp)
the matching against rqp is not completely implemented |
boolean |
matches(Object subset)
do i match a resource name, type or resourcequparams? |
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 |
setLink(JDFResourceLink resourceLink,
boolean copyResource)
fill a ResourceInfo from resourceLink |
void |
setLink(JDFResourceLink resourceLink,
JDFResourceQuParams rqp)
sets all relevant parameters of this to the values specified in resourceLink or its linked resource or JDF node |
void |
setPartMap(JDFAttributeMap mPart)
set all parts to those defined by mPart |
void |
setPartMapVector(VJDFAttributeMap vParts)
set all parts to those defined by vParts |
void |
setProcessUsage(JDFNode.EnumProcessUsage processUsage)
set ProcessUsage to the enum processusage |
String |
toString()
toString() |
| 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 |
|---|
getAmountPool, getAttribute, getCreateAmountPool, 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 |
|---|
public JDFResourceInfo(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
String qualifiedName)
myOwnerDocument - qualifiedName -
public JDFResourceInfo(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
String myNamespaceURI,
String qualifiedName)
myOwnerDocument - myNamespaceURI - qualifiedName -
public JDFResourceInfo(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
String myNamespaceURI,
String qualifiedName,
String myLocalName)
myOwnerDocument - myNamespaceURI - qualifiedName - myLocalName - | Method Detail |
|---|
public static JDFResourceInfo createResourceInfo(JDFMessage parent,
JDFResourceLink resourceLink,
boolean copyResource)
parent - resourceLink - copyResource - if true, also copy the referenced resource
protected ElementInfo getTheElementInfo()
getTheElementInfo in class JDFAutoResourceInfopublic String toString()
toString in class JDFAutoResourceInfoObject.toString()public JDFResource getCreateResource(String resName)
resName
resName - name of the resource to get/create
public JDFResource getResource(String resName)
resName
resName - name of the resource to get
public VElement getResourceVector()
public JDFResource appendResource(String resName)
resName - name of the resource to append
public VString getUnknownElements(boolean bIgnorePrivate,
int nMax)
default: getUnknownElements(true, 999999)
getUnknownElements in class JDFElementbIgnorePrivate - used by JDFElement during the validationnMax - maximum number of elements to get
public VString getInvalidElements(JDFElement.EnumValidationLevel level,
boolean bIgnorePrivate,
int nMax)
default: GetInvalidElements(level, true, 999999)
getInvalidElements in class JDFElementlevel - validation levelbIgnorePrivate - nMax - maximum number of elements to get
public VJDFAttributeMap getPartMapVector()
getPartMapVector in interface IAmountPoolContainergetPartMapVector 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 to look for
public void setLink(JDFResourceLink resourceLink,
boolean copyResource)
resourceLink - copyResource - if true, also copy the referenced resource
public void setLink(JDFResourceLink resourceLink,
JDFResourceQuParams rqp)
resourceLink - the resourceLink to extract the information fromrqp - parameterspublic void setProcessUsage(JDFNode.EnumProcessUsage processUsage)
processUsage - public String getProductID()
getProductID in class JDFAutoResourceInfoJDFAutoResourceInfo.getProductID()public String getResourceID()
getResourceID in class JDFAutoResourceInfoJDFAutoResourceInfo.getResourceID()public String getResourceName()
getResourceName in class JDFAutoResourceInfoJDFAutoResourceInfo.getResourceName()public JDFResource.EnumResStatus getResStatus()
getResStatus in class JDFAutoResourceInfoJDFAutoResourceInfo.getResStatus()public JDFResource getLinkRoot()
getLinkRoot in interface IAmountPoolContainer
public void setActualAmount(double value,
JDFAttributeMap mPart)
value - the value to set ActualAmount tomPart - the part map of AmountPool/PartAmount
public void setAmount(double value,
JDFAttributeMap mPart)
value - amount to setmPart - partition map to set amount for
public 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 attribute
JDFException - when called directly on a PartAmount
public 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 PartAmount
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.
public double getAmountPoolDouble(String attName,
JDFAttributeMap mPart)
attName - the Attribute name , e.g Amount, ActualAmountmPart -
JDFException - if the element can not be cast to double
public double getAmountPoolDouble(String attName,
VJDFAttributeMap vPart)
attName - vPart -
JDFException - if the element can not be cast to double
public double getAmountPoolSumDouble(String attName,
VJDFAttributeMap vPart)
attName - vPart -
public boolean matches(Object subset)
matches in interface IMatchessubset - the object to filter against
IMatches.matches(java.lang.Object)
protected boolean matchersRQP(String resourceName,
JDFResourceQuParams rqp)
resourceName - rqp -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||