Class JDFAncestorPool

  • 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 JDFAncestorPool
    extends JDFAutoAncestorPool
    Description: This class represents an JDFAncestorPool
    See Also:
    Serialized Form
    • Constructor Detail

      • JDFAncestorPool

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

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

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

      • getAncestorAttribute

        public java.lang.String getAncestorAttribute​(java.lang.String attrib,
                                                     java.lang.String nameSpaceURI,
                                                     java.lang.String def)
        searches for the first attribute occurence in the ancestor elements
        Parameters:
        attrib - the attribute name
        nameSpaceURI - the XML-namespace
        def - the default if it does not exist
        Returns:
        value of attribute found, value of def if not available
        Since:
        180502
      • getAncestorElement

        @Deprecated
        public KElement getAncestorElement​(java.lang.String element,
                                           java.lang.String nameSpaceURI)
        Deprecated.
        Parameters:
        element -
        nameSpaceURI -
        Returns:
        an element
      • getAncestorElement

        public KElement getAncestorElement​(java.lang.String element,
                                           java.lang.String nameSpaceURI,
                                           java.lang.String xPath)
        searches for the first element occurence in the ancestor elements
        Parameters:
        element - the element name
        nameSpaceURI - the XML-namespace of the element
        xPath - the xpath of a required attribute
        Returns:
        value of attribute found, empty string if not available
        Since:
        290502
      • hasAncestorElement

        public boolean hasAncestorElement​(java.lang.String attrib,
                                          java.lang.String nameSpaceURI)
        true id a non default occurence in the ancestor elements exists
        Parameters:
        attrib - the attribute name
        nameSpaceURI - the XML-namespace
        Returns:
        value of attribute found, empty string if not available
        Since:
        180502
      • getLinkedResources

        public VElement getLinkedResources​(JDFAttributeMap mResAtt,
                                           boolean bFollowRefs)
        Get the linked resources matching some conditions
        Parameters:
        mResAtt - map of Resource attributes to search for
        bFollowRefs - true if internal references shall be followed
        Returns:
        vResource: vector with all elements matching the conditions default: GetLinkedResources(new JDFAttributeMap(), false)
      • copyNodeData

        @Deprecated
        public void copyNodeData​(JDFNode parentNode)
        Deprecated.
        use public void copyNodeData (JDFNode parentNode, false, false) instead
        Copy all data from rootNode into the Ancestor elements of this
        Parameters:
        parentNode - the closest parent Node that contains the information to be copied
      • copyNodeData

        public void copyNodeData​(JDFNode parentNode,
                                 boolean bCopyNodeInfo,
                                 boolean bCopyCustomerInfo,
                                 boolean bCopyComments)
        Copy all data from parentNode into the ancestor elements of this
        Parameters:
        parentNode - the closest parent Node that contains the information to be copied
        bCopyNodeInfo - if true, also copy the NodeInfo into the ancestor
        bCopyCustomerInfo - if true, also copy the CustomerInfo into the ancestor
        bCopyComments - if true, also copy the comments and generalID elements into the ancestor
      • getPoolChildren

        public VElement getPoolChildren​(JDFAttributeMap mAttrib)
        Gets all children with the attribute out of the pool
        Parameters:
        mAttrib - the attribute to search for
        Returns:
        VElement: a vector with all elements in the pool matching the conditions default: GetPoolChildren(null)
      • getPoolChild

        public JDFAncestor getPoolChild​(int i,
                                        JDFAttributeMap mAttrib)
        get a child from the pool matching the parameters
        Parameters:
        i - the index of the child or -1 to make a new one.
        mAttrib - an attribute to search for
        Returns:
        JDFAncestor: the pool child matching the above conditions default: GetPoolChild(i, null)
      • setPartMapVector

        public void setPartMapVector​(VJDFAttributeMap vParts)
        set all parts to those define in vParts
        Overrides:
        setPartMapVector in class JDFElement
        Parameters:
        vParts - vector of attribute maps for the parts
      • setPartMap

        public void setPartMap​(JDFAttributeMap mPart)
        set all parts to those define in vParts
        Overrides:
        setPartMap in class JDFElement
        Parameters:
        mPart - attribute map for the part to set
      • removePartMap

        public void removePartMap​(JDFAttributeMap mPart)
        remove the part defined in mPart
        Overrides:
        removePartMap in class JDFElement
        Parameters:
        mPart - attribute map for the part to remove
      • hasPartMap

        public boolean hasPartMap​(JDFAttributeMap mPart)
        check whether the part defined in mPart is included
        Overrides:
        hasPartMap in class JDFElement
        Parameters:
        mPart - attribute map for the part to remove
        Returns:
        true if the part exists
      • hasAncestorAttribute

        public boolean hasAncestorAttribute​(java.lang.String attrib,
                                            java.lang.String nameSpaceURI)
        check whether a defined attribute exists in the ancestor elements
        Parameters:
        attrib - the attribute name to look for
        nameSpaceURI - the XML-namespace to search in
        Returns:
        value of attribute found, empty string if not available
        Since:
        180502
      • getAncestorElementAttribute

        public java.lang.String getAncestorElementAttribute​(java.lang.String element,
                                                            java.lang.String attrib,
                                                            java.lang.String nameSpaceURI,
                                                            java.lang.String def)
        searches for the first attribute occurence in the ancestor elements subelements
        e.g. the JobPriority in NodeInfo
        Parameters:
        element - node name to look in
        attrib - the attribute name
        nameSpaceURI - the XML-namespace
        def - the default if it does not exist
        Returns:
        value of attribute found, empty string if not available
        Since:
        200503
      • isPartitioned

        public boolean isPartitioned()
        check whether the Ancestor pool contains any part elements
        Returns:
        true if the pool comtains part elements