Class PSSetupCode
- java.lang.Object
-
- org.apache.fop.render.ps.extensions.PSExtensionAttachment
-
- org.apache.fop.render.ps.extensions.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 protected static java.lang.StringELEMENTelement nameprotected java.lang.Stringnamename attribute-
Fields inherited from class org.apache.fop.render.ps.extensions.PSExtensionAttachment
CATEGORY, content
-
-
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.StringgetCategory()This method returns a category URI that allows a processor (layout manager or renderer) to determine if it supports this object.protected java.lang.StringgetElement()java.lang.StringgetName()voidsetName(java.lang.String name)Sets the name of the setup code object.voidtoSAX(org.xml.sax.ContentHandler handler)Generates SAX events representing the object's state.java.lang.StringtoString()-
Methods inherited from class org.apache.fop.render.ps.extensions.PSExtensionAttachment
getContent, getType, setContent
-
-
-
-
Field Detail
-
ELEMENT
protected static final java.lang.String ELEMENT
element name- See Also:
- Constant Field Values
-
name
protected java.lang.String name
name attribute
-
-
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.
-
getCategory
public 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.- Specified by:
getCategoryin interfaceExtensionAttachment- Overrides:
getCategoryin classPSExtensionAttachment- Returns:
- the category URI
- See Also:
ExtensionAttachment.getCategory()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classPSExtensionAttachment- Returns:
- a string representation of this object
- See Also:
Object.toString()
-
getElement
protected java.lang.String getElement()
- Specified by:
getElementin classPSExtensionAttachment- Returns:
- the element name
- See Also:
PSExtensionAttachment.getElement()
-
toSAX
public void toSAX(org.xml.sax.ContentHandler handler) throws org.xml.sax.SAXExceptionGenerates SAX events representing the object's state.- Specified by:
toSAXin interfaceorg.apache.xmlgraphics.util.XMLizable- Overrides:
toSAXin classPSExtensionAttachment- 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)
-
-