org.apache.fop.render.ps.extensions

Class PSSetupCode

Implemented Interfaces:
ExtensionAttachment, XMLizable

public class PSSetupCode
extends PSExtensionAttachment

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

Field Summary

protected static String
ELEMENT
element name
protected String
name
name attribute

Fields inherited from class org.apache.fop.render.ps.extensions.PSExtensionAttachment

CATEGORY, content

Constructor Summary

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

Method Summary

String
getCategory()
protected String
getElement()
String
getName()
void
setName(String name)
Sets the name of the setup code object.
void
toSAX(ContentHandler handler)
String
toString()

Methods inherited from class org.apache.fop.render.ps.extensions.PSExtensionAttachment

getCategory, getContent, getElement, getType, setContent, toSAX, toString

Field Details

ELEMENT

protected static final String ELEMENT
element name

name

protected String name
name attribute

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
Overrides:
getCategory in interface PSExtensionAttachment

getElement

protected String getElement()
Overrides:
getElement in interface PSExtensionAttachment
Returns:
the element name

getName

public String getName()
Returns:
the name

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
Overrides:
toSAX in interface PSExtensionAttachment

toString

public String toString()
Overrides:
toString in interface PSExtensionAttachment

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