|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cip4.jdflib.pool.JDFAmountPool.AmountPoolHelper
public static class JDFAmountPool.AmountPoolHelper
| Constructor Summary | |
|---|---|
JDFAmountPool.AmountPoolHelper()
|
|
| Method Summary | |
|---|---|
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 String |
getAmountPoolAttribute(IAmountPoolContainer poolParent,
String attrib,
String nameSpaceURI,
JDFAttributeMap mPart,
int iSkip)
returns the attribute occurrence in PartAmount, or the default in the ResourceLink |
static String |
getAmountPoolAttribute(IAmountPoolContainer poolParent,
String attrib,
String nameSpaceURI,
VJDFAttributeMap vPart)
returns the attribute occurrence in PartAmount, or the default in the ResourceLink |
static double |
getAmountPoolDouble(IAmountPoolContainer poolParent,
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 |
static double |
getAmountPoolDouble(IAmountPoolContainer poolParent,
String attName,
VJDFAttributeMap vPart)
get the exactly matching AmountPool/PartAmount/@AttName as a double |
static double |
getAmountPoolMinDouble(IAmountPoolContainer poolParent,
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,
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,
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 |
static void |
setAmountPoolAttribute(IAmountPoolContainer poolParent,
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JDFAmountPool.AmountPoolHelper()
| Method Detail |
|---|
public static String getAmountPoolAttribute(IAmountPoolContainer poolParent,
String attrib,
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 check
public static String getAmountPoolAttribute(IAmountPoolContainer poolParent,
String attrib,
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,
String attName,
JDFAttributeMap mPart)
poolParent - attName - the Attribute name , e.g Amount, ActualAmountmPart -
JDFException - if the element can not be cast to double
public static double getAmountPoolDouble(IAmountPoolContainer poolParent,
String attName,
JDFAttributeMap mPart)
poolParent - attName - the Attribute name , e.g Amount, ActualAmountmPart -
JDFException - if the element can not be cast to double
public static double getAmountPoolDouble(IAmountPoolContainer poolParent,
String attName,
VJDFAttributeMap vPart)
poolParent - the parent pool to work onattName - vPart -
JDFException - if the element can not be cast to double
public static double getAmountPoolSumDouble(IAmountPoolContainer poolParent,
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 for
public static double getMinAmount(IAmountPoolContainer poolParent,
JDFAttributeMap mPart)
poolParent - the parent pool to work onmPart - partition map to retrieve MinAmount for
public static double getMaxAmount(IAmountPoolContainer poolParent,
JDFAttributeMap mPart)
poolParent - the parent pool to work onmPart - partition map to retrieve MinAmount for
public static void setAmountPoolAttribute(IAmountPoolContainer poolParent,
String attrib,
String value,
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 PartAmount
public static void setAmountPoolAttribute(IAmountPoolContainer poolParent,
String attrib,
String value,
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 attribute
JDFException - when called directly on a PartAmount
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||