org.apache.fop.render.ps.extensions

Class PSSetupCode

Implemented Interfaces:
ExtensionAttachment, Serializable, XMLizable

public class PSSetupCode
extends java.lang.Object
implements ExtensionAttachment, Serializable, XMLizable

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

Field Summary

static String
CATEGORY
The category URI for this extension attachment.

Constructor Summary

PSSetupCode()
No-argument contructor.
PSSetupCode(String name, String content)
Default constructor.

Method Summary

String
getCategory()
String
getContent()
String
getName()
void
setContent(String content)
Sets the content for the setup code object.
void
setName(String name)
Sets the name of the setup code object.
void
toSAX(ContentHandler handler)
String
toString()

Field Details

CATEGORY

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

Constructor Details

PSSetupCode

public PSSetupCode()
No-argument contructor.

PSSetupCode

public PSSetupCode(String name,
                   String content)
Default constructor.
Parameters:
name - the name of the setup code object, may be null
content - the content of the setup code object

Method Details

getCategory

public String getCategory()
Specified by:
getCategory in interface ExtensionAttachment

getContent

public String getContent()
Returns:
the content

getName

public String getName()
Returns:
the name

setContent

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

setName

public void setName(String name)
Sets the name of the setup code object.
Parameters:
name - The name to set.

toSAX

public void toSAX(ContentHandler handler)
            throws SAXException
Specified by:
toSAX in interface XMLizable
See Also:
org.apache.fop.util.XMLizable.toSAX(org.xml.sax.ContentHandler)

toString

public String toString()
See Also:
java.lang.Object.toString()

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