Class JDFSeparationList

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
Direct Known Subclasses:
JDFTrappingOrder

public class JDFSeparationList extends JDFAutoSeparationList
This class represents a list of SeparationSpec elements it allows high level string manipulation of the separation names by hiding the fact that the separations are written in SeparationSpec/@Name
See Also:
  • Field Details

    • SEPARATIONS_CMYK

      public static final VString SEPARATIONS_CMYK
  • Constructor Details

    • JDFSeparationList

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

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

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

    • toString

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

      public VString getSeparations()
      Get a list of all separation names in the SeparationSpec elements
      Returns:
      the vector of separation names - empty VString if no separations are present
    • getSeparationList

      public StringArray getSeparationList()
      Get a list of all separation names in the SeparationSpec elements
      Returns:
      the vector of separation names - empty VString if no separations are present
    • setSeparations

      public void setSeparations(List<String> vSeps)
      set all separation names in the SeparationSpec elements, remove any prior elements
      Parameters:
      vSeps - the vector of separation names to set
    • setSeparations

      public void setSeparations(VString vSeps)
      set all separation names in the SeparationSpec elements, remove any prior elements
      Parameters:
      vSeps - the vector of separation names to set
    • appendSeparations

      public void appendSeparations(VString vSeps)
    • appendSeparations

      public void appendSeparations(List<String> vSeps)
      append all separation names in the SeparationSpec elements without removing any prior elements
      Parameters:
      vSeps - the vector of separation names to append
    • ensureSeparations

      public void ensureSeparations(VString vSeps)
    • ensureSeparations

      public void ensureSeparations(List<String> vSeps)
      ensure all separation names in the SeparationSpec elements without removing any prior elements
      Parameters:
      vSeps - the vector of separation names to append
    • setCMYK

      public void setCMYK()
      convenience utility to set to cmyk
    • getCreateSeparation

      public JDFSeparationSpec getCreateSeparation(String sep)
      append a separationspec with a given name to this if it does not yet exist
      Parameters:
      sep - the separation name
    • appendSeparation

      public JDFSeparationSpec appendSeparation(String sep)
      append a separationspec with a given name to this
      Parameters:
      sep - the separation name
    • getSeparationSpec

      public JDFSeparationSpec getSeparationSpec(String sep)
      get the separationSpec for a given separartion
      Parameters:
      sep -
      Returns:
    • removeSeparation

      public int removeSeparation(String sep)
      remove a separationspec with a given name from this
      Parameters:
      sep - the separation name
      Returns:
      int the index of the removed separation; -1 if none found
    • getSeparation

      public String getSeparation(int iSkip)
      Get the n'th separation name in the SeparationSpec elements
      Parameters:
      iSkip - the index of the SeparationSpec
      Returns:
      separation names, null if iSkip > nSeparations
    • unify

      public VString unify()
      ensure that all separations are unique
      Returns:
      the unified vector of separation names
    • removeSeparations

      public void removeSeparations(List<String> seps)
      Parameters:
      seps -