org.apache.fop.render.ps.extensions

Class PSExtensionAttachment

Implemented Interfaces:
ExtensionAttachment, XMLizable
Known Direct Subclasses:
PSCommentAfter, PSCommentBefore, PSSetPageDevice, PSSetupCode

public abstract class PSExtensionAttachment
extends java.lang.Object
implements ExtensionAttachment, XMLizable

This is the pass-through value object for the PostScript extension.

Field Summary

static String
CATEGORY
The category URI for this extension attachment.
protected String
content
extension node content

Constructor Summary

PSExtensionAttachment()
No-argument contructor.
PSExtensionAttachment(String content)
Default constructor.

Method Summary

String
getCategory()
String
getContent()
protected abstract String
getElement()
String
getType()
void
setContent(String content)
Sets the content for the setup code object.
void
toSAX(ContentHandler handler)
Generates SAX events representing the object's state.
String
toString()

Field Details

CATEGORY

public static final String CATEGORY
The category URI for this extension attachment.

content

protected String content
extension node content

Constructor Details

PSExtensionAttachment

public PSExtensionAttachment()
No-argument contructor.

PSExtensionAttachment

public PSExtensionAttachment(String content)
Default constructor.
Parameters:
content - the content of the setup code object

Method Details

getCategory

public String getCategory()
Specified by:
getCategory in interface ExtensionAttachment
Returns:
the category URI

getContent

public String getContent()
Returns:
the content

getElement

protected abstract String getElement()
Returns:
element

getType

public String getType()
Returns:
type name

setContent

public void setContent(String content)
Sets the content for the setup code object.
Parameters:
content - The content to set.

toSAX

public void toSAX(ContentHandler handler)
            throws SAXException
Generates SAX events representing the object's state.
Parameters:
handler - ContentHandler instance to send the SAX events to
See Also:
org.apache.fop.util.XMLizable.toSAX(org.xml.sax.ContentHandler)

toString

public String toString()
Returns:
a string representation of this object
See Also:
java.lang.Object.toString()

Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.