org.apache.fop.render.ps.extensions

Class PSSetPageDevice

Implemented Interfaces:
ExtensionAttachment, XMLizable

public class PSSetPageDevice
extends PSExtensionAttachment

Element for postscript setpagedevice instruction This is a an extension which provides a pass-through value dictionary object for the postscript setpagedevice instruction.

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

PSSetPageDevice()
constructor
PSSetPageDevice(String content)
default constructor
PSSetPageDevice(String name, String content)
constructor

Method Summary

protected String
getElement()
String
getName()
void
setName(String name)
Sets the name of the setup code object.
void
toSAX(ContentHandler handler)
Generates SAX events representing the object's state.
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

PSSetPageDevice

public PSSetPageDevice()
constructor

PSSetPageDevice

public PSSetPageDevice(String content)
default constructor
Parameters:
content - set page device dictionary

PSSetPageDevice

public PSSetPageDevice(String name,
                       String content)
constructor
Parameters:
name - name attribute of this setpagedevice content
content - set page device dictionary

Method Details

getElement

protected String getElement()
Overrides:
getElement in interface PSExtensionAttachment
Returns:
a string representation of this object

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
Generates SAX events representing the object's state.
Overrides:
toSAX in interface PSExtensionAttachment
Parameters:
handler - ContentHandler instance to send the SAX events to
See Also:
org.apache.xmlgraphics.util.XMLizable.toSAX(org.xml.sax.ContentHandler)

toString

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

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