Class JDFAmountPool

java.lang.Object
org.apache.xerces.dom.NodeImpl
org.apache.xerces.dom.ChildNode
org.apache.xerces.dom.ParentNode
org.apache.xerces.dom.ElementImpl
All Implemented Interfaces:
Serializable, Cloneable, IStreamWriter, Element, ElementTraversal, EventTarget, Node, NodeList, TypeInfo

public class JDFAmountPool extends JDFAutoAmountPool
This class represents a JDF-AuditPool
See Also:
  • Constructor Details

    • JDFAmountPool

      public JDFAmountPool(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String qualifiedName)
      Constructor for JDFAmountPool
      Parameters:
      myOwnerDocument -
      qualifiedName -
    • JDFAmountPool

      public JDFAmountPool(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String myNamespaceURI, String qualifiedName)
      Constructor for JDFAmountPool
      Parameters:
      myOwnerDocument -
      myNamespaceURI -
      qualifiedName -
    • JDFAmountPool

      public JDFAmountPool(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String myNamespaceURI, String qualifiedName, String myLocalName)
      Constructor for JDFAmountPool
      Parameters:
      myOwnerDocument -
      myNamespaceURI -
      qualifiedName -
      myLocalName -
  • Method Details

    • setPartAttribute

      public void setPartAttribute(String attrib, String value, String nameSpaceURI, VJDFAttributeMap vPart)
      set an attribute in the appropriate PartAmount
      Parameters:
      attrib -
      value -
      nameSpaceURI -
      vPart -
    • getPartAttribute

      public String getPartAttribute(String attrib, String nameSpaceURI, JDFAttributeMap part)
      Parameters:
      attrib -
      nameSpaceURI -
      part -
      Returns:
    • getPartAttribute

      public String getPartAttribute(String attrib, String nameSpaceURI, VJDFAttributeMap vPart)
      Parameters:
      attrib -
      nameSpaceURI -
      vPart -
      Returns:
    • setPartAttribute

      public void setPartAttribute(String attrib, String value, String nameSpaceURI, JDFAttributeMap part)
      Parameters:
      attrib -
      value -
      nameSpaceURI -
      part -
    • removePartAmount

      public void removePartAmount(JDFAttributeMap mPart)
      Parameters:
      mPart -
    • toString

      public String toString()
      toString
      Overrides:
      toString in class KElement
      Returns:
      String
      See Also:
    • getMatchingPartAmount

      public JDFPartAmount getMatchingPartAmount(JDFAttributeMap mPart)
      Get a PartAmount that fits to the filter defined by mPart
      Parameters:
      mPart - filter for the part to set the status
      Returns:
      the PartAmount that fits
    • getPartAmount

      public JDFPartAmount getPartAmount(JDFAttributeMap mPart)
      Get a PartAmount that exactly equals the filter defined by mPart
      Parameters:
      mPart - filter for the part to set the status
      Returns:
      the PartAmount that fits
    • getPartAmount

      public JDFPartAmount getPartAmount(VJDFAttributeMap vPart)
      Get a PartAmount that fits to the filter defined by vPart
      Parameters:
      vPart - filter for the part to set the status
      Returns:
      the PartAmount that fits
    • getPartAmount

      public JDFPartAmount getPartAmount(JDFAttributeMap mPart, int iSkip)
      Get a PartAmount that fits to the filter defined by mPart
      Parameters:
      mPart - filter for the part to set the status
      iSkip - the iSkip'th element to get
      Returns:
      the PartAmount that fits
    • getPartAmount

      @Deprecated public JDFPartAmount getPartAmount(JDFAttributeMap mPart, boolean bCreate)
      Deprecated.
      use either getPartAmount or getCreatePartAmount
      Get a PartAmount that fits to the filter defined by mPart
      Parameters:
      mPart - filter for the part to set the status
      bCreate -
      Returns:
      the PartAmount that fits
    • getPartAmountVector

      @Deprecated public VElement getPartAmountVector(VJDFAttributeMap vmPart, boolean bCreate)
      Deprecated.
      use getMatchingPartAmountVector default: GetPartAmountVector(VJDFAttributeMap vmPart, false)
      Get a vector of PartAmount that fits to the filter defined by mPart
      Parameters:
      vmPart - filter vector for the part to set the status
      bCreate -
      Returns:
      the PartAmount that fits
    • reducePartAmounts

      public void reducePartAmounts(VJDFAttributeMap keepList)
      remove all partAmounts that are not specified in keepList
      Parameters:
      keepList - partAmounts to keep
    • getAmountMap

      public JDFAmountPool.AmountMap getAmountMap(VString vPartIDKeys)
      get an AmountMap for this Amountpool
      Parameters:
      vPartIDKeys -
      Returns:
      the AmountMap for the Amountpool, null if no amountpool exists
    • appendPartAmount

      public JDFPartAmount appendPartAmount(JDFAttributeMap mPart)
      Append JDFPartAmount element
      Parameters:
      mPart - JDFAttributeMap to append
      Returns:
    • appendPartAmount

      public JDFPartAmount appendPartAmount(VJDFAttributeMap vPart)
      Append JDFPartAmount elements
      Parameters:
      vPart - vector of partAmounts to append
      Returns:
    • getCreatePartAmount

      public JDFPartAmount getCreatePartAmount(JDFAttributeMap mPart)
      get JDFPartAmount specified by mPart, create a new one if it doesn't exist
      Parameters:
      mPart - JDFPartAmount to get/create
      Returns:
    • getCreatePartAmount

      public JDFPartAmount getCreatePartAmount(VJDFAttributeMap vPart)
      get JDFPartAmount specified by mPart, create a new one if it doesn't exist
      Parameters:
      vPart - JDFPartAmount to get/create
      Returns:
    • getMatchingPartAmountVector

      public VElement getMatchingPartAmountVector(JDFAttributeMap mPart)
      Get a vector of PartAmounts which are supersets of the filter defined by mPart
      i.e. mPart is a submap of all returned elements
      Parameters:
      mPart - filter vector for the part to set the status
      Returns:
      VElement - the vector of PartAmount elements that fit, null if nothing matches
    • getPartMapVector

      public VJDFAttributeMap getPartMapVector()
      Description copied from class: JDFElement
      GetPartMapVector returns a vector of partmaps, null if no parts are present
      Overrides:
      getPartMapVector in class JDFElement
      Returns:
      Vector
      See Also: