Class JDFPart

  • 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 JDFPart
    extends JDFAutoPart
    See Also:
    Serialized Form
    • Constructor Detail

      • JDFPart

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

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

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

      • toString

        public java.lang.String toString()
        toString()
        Overrides:
        toString in class KElement
        Returns:
        String
        See Also:
        Object.toString()
      • getPartMap

        public JDFAttributeMap getPartMap()
        gets a map of all Partition key value pairs, empty if no partition keys exist
        Overrides:
        getPartMap in class JDFElement
        Returns:
        JDFAttributeMap
      • guessPartIDKeys

        public VString guessPartIDKeys()
        heuristically guess the partidkey order
        Returns:
      • setPartMap

        public void setPartMap​(JDFAttributeMap mPart)
        sets the attributes of this to partmap removes all other attributes
        Overrides:
        setPartMap in class JDFElement
        Parameters:
        mPart - attribute map for the part to set
      • matchesPart

        @Deprecated
        public static boolean matchesPart​(java.lang.String key,
                                          java.lang.String resourceValue,
                                          java.lang.String linkValue)
        Deprecated.
        use 4 parameter version
        check whether the partition values match partversions match if either only one token is specified, and the large list contains that token or vice versa
        Parameters:
        key - the partition key
        resourceValue - the value of key in the resource
        linkValue - the value of key in the part element or ref
        Returns:
        boolean: true if linkValue matches the value or list in resourceValue
      • matchesPart

        public static boolean matchesPart​(java.lang.String key,
                                          java.lang.String resourceValue,
                                          VString linkValues,
                                          boolean strictPartVersion)
        check whether the partition values match partversions match if either only one token is specified, and the large list contains that token or vice versa
        Parameters:
        key - the partition key
        resourceValue - the value of key in the resource
        linkValues - the value of key in the part element or ref
        strictPartVersion - if true, partversion strings MUST match exactly, else token matching applies
        Returns:
        boolean: true if linkValue matches the value or list in resourceValue
      • matchesPart

        public static boolean matchesPart​(java.lang.String key,
                                          java.lang.String resourceValue,
                                          java.lang.String linkValue,
                                          boolean strictPartVersion)
        check whether the partition values match partversions match if either only one token is specified, and the large list contains that token or vice versa
        Parameters:
        key - the partition key
        resourceValue - the value of key in the resource
        linkValue - the value of key in the part element or ref
        strictPartVersion - if true, partversion strings MUST match exactly, else token matching applies
        Returns:
        boolean: true if linkValue matches the value or list in resourceValue
      • matchesPartVersion

        public static boolean matchesPartVersion​(java.lang.String resourceValue,
                                                 java.lang.String linkValue)
      • overlapPartMap

        @Deprecated
        public static boolean overlapPartMap​(JDFAttributeMap resourceMap,
                                             JDFAttributeMap linkMap)
        Deprecated.
        use 3 parameter version
        overlapMap - identical keys must have the same values in both maps
        similar to JDFAttribute.overlapMap, but uses matchesPart instead of equals for the comparison
        Parameters:
        resourceMap - the map to compare
        linkMap - the map to compare
        Returns:
        boolean: true if identical keys have the same values in both maps
      • overlapPartMap

        public static boolean overlapPartMap​(JDFAttributeMap resourceMap,
                                             JDFAttributeMap linkMap,
                                             boolean strictPartVersion)
        overlapMap - identical keys must have the same values in both maps
        similar to JDFAttribute.overlapMap, but uses matchesPart instead of equals for the comparison
        Parameters:
        resourceMap - the map to compare
        linkMap - the map to compare
        strictPartVersion - if true, partversion strings MUST match exactly, else token matching applies
        Returns:
        boolean: true if identical keys have the same values in both maps
      • subPartMap

        public static boolean subPartMap​(JDFAttributeMap resourceMap,
                                         JDFAttributeMap linkMap,
                                         boolean strictPartVersion)
        overlapMap - identical keys must have the same values in both maps
        similar to JDFAttribute.overlapMap, but uses matchesPart instead of equals for the comparison
        Parameters:
        resourceMap - the map to compare
        linkMap - the map to compare
        strictPartVersion - if true, partversion strings MUST match exactly, else token matching applies
        Returns:
        boolean: true if identical keys have the same values in both maps and all keys specified in linkMap exist in resourceMap
      • overlapPartMap

        public static boolean overlapPartMap​(JDFAttributeMap resourceMap,
                                             VJDFAttributeMap vLinkMap,
                                             boolean strictPartVersion)
        overlapMap - identical keys must have the same values in both maps
        similar to JDFAttribute.overlapMap, but uses matchesPart instead of equals for the comparison
        Parameters:
        resourceMap - the map to compare
        vLinkMap - the vector of maps to compare
        strictPartVersion - if true, partversion strings MUST match exactly, else token matching applies
        Returns:
        boolean: true if identical keys have the same values in both maps
      • setMetadata

        public void setMetadata​(int iMetaData,
                                java.lang.String value)
        (36) set attribute Metadata0-9 convenience method
        Parameters:
        value - the value to set MetaData(i) to -
        iMetaData - int from 0 to 10 that defines which metadata partition key is wanted
      • getFastparts

        public static java.util.Set<java.lang.String> getFastparts()
        Returns:
        the fastparts