Class JDFPart

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

public class JDFPart extends JDFAutoPart
See Also:
  • Constructor Details

    • JDFPart

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

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

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

    • toString

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

      public static VString guessPartIDKeys(JDFAttributeMap map)
    • 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(String key, String resourceValue, 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(String key, 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(String key, String resourceValue, 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(String resourceValue, 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
    • getTheAttributeInfo

      protected AttributeInfo getTheAttributeInfo()
      Overrides:
      getTheAttributeInfo in class JDFAutoPart
      Returns:
      See Also:
    • getTheElementInfo

      protected ElementInfo getTheElementInfo()
      Overrides:
      getTheElementInfo in class JDFElement
      Returns:
      See Also:
    • setMetadata

      public void setMetadata(int iMetaData, 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 Set<String> getFastparts()
      Returns:
      the fastparts