Class PSExtensionAttachment
- java.lang.Object
-
- org.apache.fop.render.ps.extensions.PSExtensionAttachment
-
- All Implemented Interfaces:
ExtensionAttachment
,org.apache.xmlgraphics.util.XMLizable
- Direct Known Subclasses:
PSCommentAfter
,PSCommentBefore
,PSPageTrailerCodeBefore
,PSSetPageDevice
,PSSetupCode
public abstract class PSExtensionAttachment extends java.lang.Object implements ExtensionAttachment, org.apache.xmlgraphics.util.XMLizable
This is the pass-through value object for the PostScript extension.
-
-
Constructor Summary
Constructors Constructor Description PSExtensionAttachment()
No-argument contructor.PSExtensionAttachment(java.lang.String content)
Default constructor.
-
Method Summary
All Methods Instance Methods Abstract 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.java.lang.String
getContent()
protected abstract java.lang.String
getElement()
java.lang.String
getType()
void
setContent(java.lang.String content)
Sets the content for the setup code object.void
toSAX(org.xml.sax.ContentHandler handler)
Generates SAX events representing the object's state.java.lang.String
toString()
-
-
-
Field Detail
-
content
protected java.lang.String content
extension node content
-
CATEGORY
public static final java.lang.String CATEGORY
The category URI for this extension attachment.- See Also:
- Constant Field Values
-
-
Method Detail
-
getCategory
public java.lang.String getCategory()
Description copied from interface:ExtensionAttachment
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
- Returns:
- the category URI
- See Also:
ExtensionAttachment.getCategory()
-
getContent
public java.lang.String getContent()
- Returns:
- the content
-
setContent
public void setContent(java.lang.String content)
Sets the content for the setup code object.- Parameters:
content
- The content to set.
-
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 interfaceorg.apache.xmlgraphics.util.XMLizable
- 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)
-
getType
public java.lang.String getType()
- Returns:
- type name
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- Returns:
- a string representation of this object
- See Also:
Object.toString()
-
getElement
protected abstract java.lang.String getElement()
- Returns:
- element
-
-