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
This is the pass-through value object for the PostScript extension.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringelement nameprotected Stringname attributeFields inherited from class org.apache.fop.render.ps.extensions.PSExtensionAttachment
CATEGORY, content -
Constructor Summary
ConstructorsConstructorDescriptionNo-argument contructor.PSSetupCode(String name, String content) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionThis method returns a category URI that allows a processor (layout manager or renderer) to determine if it supports this object.protected StringgetName()voidSets the name of the setup code object.voidtoSAX(ContentHandler handler) Generates SAX events representing the object's state.toString()Methods inherited from class org.apache.fop.render.ps.extensions.PSExtensionAttachment
getContent, getType, setContent
-
Field Details
-
ELEMENT
element name- See Also:
-
name
name attribute
-
-
Constructor Details
-
PSSetupCode
public PSSetupCode()No-argument contructor. -
PSSetupCode
Default constructor.- Parameters:
name- the name of the setup code object, may be nullcontent- the content of the setup code object
-
-
Method Details
-
getName
- Returns:
- the name
-
setName
Sets the name of the setup code object.- Parameters:
name- The name to set.
-
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:
-
toString
- Overrides:
toStringin classPSExtensionAttachment- Returns:
- a string representation of this object
- See Also:
-
getElement
- Specified by:
getElementin classPSExtensionAttachment- Returns:
- the element name
- See Also:
-
toSAX
Generates 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:
SAXException- if there's a problem generating the SAX events- See Also:
-