Class JDFColorPool

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 JDFColorPool extends JDFAutoColorPool
See Also:
  • Constructor Details

    • JDFColorPool

      public JDFColorPool(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String qualifiedName) throws DOMException
      Constructor for JDFColorPool
      Parameters:
      myOwnerDocument -
      qualifiedName -
      Throws:
      DOMException
    • JDFColorPool

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

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

    • toString

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

      public void removeColor(String strColorName)
      Parameters:
      strColorName -
    • isValid

      public boolean isValid(JDFElement.EnumValidationLevel level)
      typesafe validator
      Overrides:
      isValid in class JDFResource
      Parameters:
      level - validation level
      Returns:
      boolean true if this is valid
    • hasDuplicateColors

      @Deprecated public boolean hasDuplicateColors()
      Deprecated.
      use getDuplicateColors()==null
      does this ColorPool have Color elements with identical Name or RawName eattributes return false if no Color elements with identical Name or RawName tags exist
      Returns:
    • getDuplicateColors

      public VString getDuplicateColors()
      does this ColorPool have Color elements with identical Name or RawName eattributes return false if no Color elements with identical Name or RawName tags exist
      Returns:
    • getColorWithName

      public JDFColor getColorWithName(String colorName)
      Get the Color Element with Name=name
      Parameters:
      colorName - the name of the color
      Returns:
      JDFColor the color with the matching name, or null if no matching element exists
    • getColorWith8BitName

      public JDFColor getColorWith8BitName(String rawName)
      Get the Color Element with RawName=rawName or Name=rawName in the momentary encoding
      Parameters:
      rawName - the 8 bit representation of the rawName of the color
      Returns:
      JDFColor the color with the matching name, null if no matching element exists
    • getColorWithRawName

      public JDFColor getColorWithRawName(String rawName)
      Get the Color Element with RawName=rawName
      Parameters:
      rawName - the 8 bit representation of the rawName of the color
      Returns:
      JDFColor the color with the matching name or null if no matching element exists
    • appendColorWithName

      public JDFColor appendColorWithName(String colorName, String rawName)
      Append a Color Element with RawName=rawName and Name = Name
      Parameters:
      colorName - the name of the color
      rawName - he 8 bit representation of the rawName of the color
      Returns:
      JDFColor the color with the matching name, or null f no matching element exists
    • getCreateColorWithName

      public JDFColor getCreateColorWithName(String colorName, String rawName)
      Get an existing or append a Color Element with RawName=rawName and Name = Name
      Parameters:
      colorName - the name of the color
      rawName - he 8 bit representation of the rawName of the color
      Returns:
      JDFColor the color with the matching name or null JDFColor if no matching element exists