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 String
element nameprotected String
name 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 String
getName()
void
Sets the name of the setup code object.void
toSAX
(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:
getCategory
in interfaceExtensionAttachment
- Overrides:
getCategory
in classPSExtensionAttachment
- Returns:
- the category URI
- See Also:
-
toString
- Overrides:
toString
in classPSExtensionAttachment
- Returns:
- a string representation of this object
- See Also:
-
getElement
- Specified by:
getElement
in classPSExtensionAttachment
- Returns:
- the element name
- See Also:
-
toSAX
Generates SAX events representing the object's state.- Specified by:
toSAX
in interfaceorg.apache.xmlgraphics.util.XMLizable
- Overrides:
toSAX
in classPSExtensionAttachment
- Parameters:
handler
- ContentHandler instance to send the SAX events to- Throws:
SAXException
- if there's a problem generating the SAX events- See Also:
-
XMLizable.toSAX(org.xml.sax.ContentHandler)
-