Class JDFAmountPool

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, IStreamWriter, org.w3c.dom.Element, org.w3c.dom.ElementTraversal, org.w3c.dom.events.EventTarget, org.w3c.dom.Node, org.w3c.dom.NodeList, org.w3c.dom.TypeInfo

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

      • JDFAmountPool

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

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

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

      • setPartAttribute

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

        public java.lang.String getPartAttribute​(java.lang.String attrib,
                                                 java.lang.String nameSpaceURI,
                                                 JDFAttributeMap part)
        Parameters:
        attrib -
        nameSpaceURI -
        part -
        Returns:
      • getPartAttribute

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

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

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

        public java.lang.String toString()
        toString
        Overrides:
        toString in class KElement
        Returns:
        String
        See Also:
        Object.toString()
      • 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