Class JDFSeparationList

  • 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
    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:
    Serialized Form
    • Field Detail

      • SEPARATIONS_CMYK

        public static final VString SEPARATIONS_CMYK
    • Constructor Detail

      • JDFSeparationList

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

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

        public JDFSeparationList​(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
                                 java.lang.String myNamespaceURI,
                                 java.lang.String qualifiedName,
                                 java.lang.String myLocalName)
        Constructor for JDFSeparationList
        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()
      • 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​(java.util.List<java.lang.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​(java.util.List<java.lang.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​(java.util.List<java.lang.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​(java.lang.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​(java.lang.String sep)
        append a separationspec with a given name to this
        Parameters:
        sep - the separation name
      • getSeparationSpec

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

        public int removeSeparation​(java.lang.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 java.lang.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​(java.util.List<java.lang.String> seps)
        Parameters:
        seps -