public static class JDFAmountPool.AmountPoolHelper
extends java.lang.Object
| Constructor and Description |
|---|
AmountPoolHelper() |
| Modifier and Type | Method and Description |
|---|---|
static double |
getAmount(IAmountPoolContainer poolParent,
JDFAttributeMap mPart)
get double attribute Amount, defaults to the value of Amount for the linked partition
|
static JDFAmountPool.AmountMap |
getAmountMap(IAmountPoolContainer poolParent,
VString vPartIDKeys)
get an amountmap for the Amountpool of poolParent
|
static java.lang.String |
getAmountPoolAttribute(IAmountPoolContainer poolParent,
java.lang.String attrib,
java.lang.String nameSpaceURI,
JDFAttributeMap mPart,
int iSkip)
returns the attribute occurrence in PartAmount, or the default in the ResourceLink
|
static java.lang.String |
getAmountPoolAttribute(IAmountPoolContainer poolParent,
java.lang.String attrib,
java.lang.String nameSpaceURI,
VJDFAttributeMap vPart)
returns the attribute occurrence in PartAmount, or the default in the ResourceLink
|
static double |
getAmountPoolDouble(IAmountPoolContainer poolParent,
java.lang.String attName,
JDFAttributeMap mPart)
get the sum of all matching AmountPool/PartAmount/@attName as a double PartAmounts match if all attributes match those in PartAmount, i.e.
|
static double |
getAmountPoolDouble(IAmountPoolContainer poolParent,
java.lang.String attName,
VJDFAttributeMap vPart)
get the exactly matching AmountPool/PartAmount/@AttName as a double
|
static double |
getAmountPoolMinDouble(IAmountPoolContainer poolParent,
java.lang.String attName,
JDFAttributeMap mPart)
get the minimum value of all matching AmountPool/PartAmount/@attName as a double PartAmounts match if all attributes match those in PartAmount, i.e.
|
static double |
getAmountPoolSumDouble(IAmountPoolContainer poolParent,
java.lang.String attName,
VJDFAttributeMap vPart)
gets the sum of all matching tags, with the assumption that no condition defaults to good
|
static double |
getMaxAmount(IAmountPoolContainer poolParent,
JDFAttributeMap mPart)
get double attribute MaxAmount, defaults to getAmount if MinAmount is not set
|
static double |
getMinAmount(IAmountPoolContainer poolParent,
JDFAttributeMap mPart)
get double attribute MinAmount, defaults to getAmount if MinAmount is not set
|
static void |
setAmountPoolAttribute(IAmountPoolContainer poolParent,
java.lang.String attrib,
java.lang.String value,
java.lang.String nameSpaceURI,
JDFAttributeMap mPart)
sets the attribute occurence in the appropriate PartAmount when called for a resourceLink and creates the AmountPool and/or PartAmount if it is not yet there
|
static void |
setAmountPoolAttribute(IAmountPoolContainer poolParent,
java.lang.String attrib,
java.lang.String value,
java.lang.String nameSpaceURI,
VJDFAttributeMap vPart)
sets the attribute occurence in the appropriate PartAmount when called for a resourceLink and creates the AmountPool and/or PartAmount(s) if they are not yet there
|
public static java.lang.String getAmountPoolAttribute(IAmountPoolContainer poolParent, java.lang.String attrib, java.lang.String nameSpaceURI, JDFAttributeMap mPart, int iSkip)
poolParent - the pool parentattrib - the attribute namenameSpaceURI - the XML-namespacemPart - defines which part of this ResourceLink the Amount belongs to. If empty get the ResourceLink root attribute.iSkip - the index of the partAmount to checkpublic static java.lang.String getAmountPoolAttribute(IAmountPoolContainer poolParent, java.lang.String attrib, java.lang.String nameSpaceURI, VJDFAttributeMap vPart)
poolParent - the parent pool to work onattrib - the attribute namenameSpaceURI - the XML-namespacevPart - defines which part of this ResourceLink the Amount belongs to. If null get the ResourceLink root attribute.public static double getAmountPoolMinDouble(IAmountPoolContainer poolParent, java.lang.String attName, JDFAttributeMap mPart)
poolParent - attName - the Attribute name , e.g Amount, ActualAmountmPart - JDFException - if the element can not be cast to doublepublic static double getAmountPoolDouble(IAmountPoolContainer poolParent, java.lang.String attName, JDFAttributeMap mPart)
poolParent - attName - the Attribute name , e.g Amount, ActualAmountmPart - JDFException - if the element can not be cast to doublepublic static double getAmountPoolDouble(IAmountPoolContainer poolParent, java.lang.String attName, VJDFAttributeMap vPart)
poolParent - the parent pool to work onattName - vPart - JDFException - if the element can not be cast to doublepublic static double getAmountPoolSumDouble(IAmountPoolContainer poolParent, java.lang.String attName, VJDFAttributeMap vPart)
poolParent - attName - vPart - public static JDFAmountPool.AmountMap getAmountMap(IAmountPoolContainer poolParent, VString vPartIDKeys)
poolParent - the pool parentvPartIDKeys - public static double getAmount(IAmountPoolContainer poolParent, JDFAttributeMap mPart)
poolParent - the parent pool to work onmPart - partition map to retrieve Amount forpublic static double getMinAmount(IAmountPoolContainer poolParent, JDFAttributeMap mPart)
poolParent - the parent pool to work onmPart - partition map to retrieve MinAmount forpublic static double getMaxAmount(IAmountPoolContainer poolParent, JDFAttributeMap mPart)
poolParent - the parent pool to work onmPart - partition map to retrieve MinAmount forpublic static void setAmountPoolAttribute(IAmountPoolContainer poolParent, java.lang.String attrib, java.lang.String value, java.lang.String nameSpaceURI, VJDFAttributeMap vPart)
poolParent - the parent pool to work onattrib - 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 static void setAmountPoolAttribute(IAmountPoolContainer poolParent, java.lang.String attrib, java.lang.String value, java.lang.String nameSpaceURI, JDFAttributeMap mPart)
poolParent - the parent pool to work onattrib - 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 PartAmount