fop 0.94

org.apache.fop.render.ps.extensions
Class PSSetupCode

java.lang.Object
  extended by org.apache.fop.render.ps.extensions.PSSetupCode
All Implemented Interfaces:
java.io.Serializable, ExtensionAttachment, XMLizable

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

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

See Also:
Serialized Form

Field Summary
static java.lang.String CATEGORY
          The category URI for this extension attachment.
 
Constructor Summary
PSSetupCode()
          No-argument contructor.
PSSetupCode(java.lang.String name, java.lang.String content)
          Default constructor.
 
Method Summary
 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()
           
 java.lang.String getName()
           
 void setContent(java.lang.String content)
          Sets the content for the setup code object.
 void setName(java.lang.String name)
          Sets the name of the setup code object.
 void toSAX(org.xml.sax.ContentHandler handler)
          Generates SAX events representing the object's state.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CATEGORY

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

See Also:
Constant Field Values
Constructor Detail

PSSetupCode

public PSSetupCode()
No-argument contructor.


PSSetupCode

public PSSetupCode(java.lang.String name,
                   java.lang.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 Detail

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.

getName

public java.lang.String getName()
Returns:
the name

setName

public void setName(java.lang.String name)
Sets the name of the setup code object.

Parameters:
name - The name to set.

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 interface ExtensionAttachment
Returns:
the category URI
See Also:
ExtensionAttachment.getCategory()

toString

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

toSAX

public void toSAX(org.xml.sax.ContentHandler handler)
           throws org.xml.sax.SAXException
Description copied from interface: XMLizable
Generates SAX events representing the object's state.

Specified by:
toSAX in interface 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)

fop 0.94

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