Class PSSetupCode

  • All Implemented Interfaces:
    ExtensionAttachment, org.apache.xmlgraphics.util.XMLizable

    public class PSSetupCode
    extends PSExtensionAttachment
    This is the pass-through value object for the PostScript extension.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.String ATT_NAME  
      protected static java.lang.String ELEMENT
      element name
      protected java.lang.String name
      name attribute
    • Constructor Summary

      Constructors 
      Constructor Description
      PSSetupCode()
      No-argument contructor.
      PSSetupCode​(java.lang.String name, java.lang.String content)
      Default constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getCategory()
      This method returns a category URI that allows a processor (layout manager or renderer) to determine if it supports this object.
      protected java.lang.String getElement()  
      java.lang.String getName()  
      void setName​(java.lang.String name)
      Sets the name of the setup code object.
      void toSAX​(org.xml.sax.ContentHandler handler)
      Generates SAX events representing the object's state.
      java.lang.String toString()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • name

        protected java.lang.String name
        name attribute
    • Constructor Detail

      • PSSetupCode

        public PSSetupCode()
        No-argument contructor.
      • PSSetupCode

        public PSSetupCode​(java.lang.String name,
                           java.lang.String content)
        Default constructor.
        Parameters:
        name - the name of the setup code object, may be null
        content - the content of the setup code object
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns:
        the name
      • setName

        public void setName​(java.lang.String name)
        Sets the name of the setup code object.
        Parameters:
        name - The name to set.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class PSExtensionAttachment
        Returns:
        a string representation of this object
        See Also:
        Object.toString()
      • toSAX

        public void toSAX​(org.xml.sax.ContentHandler handler)
                   throws org.xml.sax.SAXException
        Generates SAX events representing the object's state.
        Specified by:
        toSAX in interface org.apache.xmlgraphics.util.XMLizable
        Overrides:
        toSAX in class PSExtensionAttachment
        Parameters:
        handler - ContentHandler instance to send the SAX events to
        Throws:
        org.xml.sax.SAXException - if there's a problem generating the SAX events
        See Also:
        XMLizable.toSAX(org.xml.sax.ContentHandler)