fop 1.1

org.apache.fop.render.pdf.extensions
Class PDFEmbeddedFileExtensionAttachment

java.lang.Object
  extended by org.apache.fop.render.pdf.extensions.PDFExtensionAttachment
      extended by org.apache.fop.render.pdf.extensions.PDFEmbeddedFileExtensionAttachment
All Implemented Interfaces:
ExtensionAttachment, org.apache.xmlgraphics.util.XMLizable

public class PDFEmbeddedFileExtensionAttachment
extends PDFExtensionAttachment

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


Field Summary
protected static java.lang.String ELEMENT
          element name
 
Fields inherited from class org.apache.fop.render.pdf.extensions.PDFExtensionAttachment
CATEGORY
 
Constructor Summary
PDFEmbeddedFileExtensionAttachment()
          No-argument contructor.
PDFEmbeddedFileExtensionAttachment(java.lang.String filename, java.lang.String src, java.lang.String desc)
          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 getDesc()
          Returns the file description.
protected  java.lang.String getElement()
           
 java.lang.String getFilename()
          Returns the file name.
 java.lang.String getSrc()
          Returns the source URI of the file.
 void setDesc(java.lang.String desc)
          Sets the description of the file.
 void setFilename(java.lang.String name)
          Sets the file name.
 void setSrc(java.lang.String src)
          Sets the source URI of the file.
 void toSAX(org.xml.sax.ContentHandler handler)
          
 java.lang.String toString()
          
 
Methods inherited from class org.apache.fop.render.pdf.extensions.PDFExtensionAttachment
getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ELEMENT

protected static final java.lang.String ELEMENT
element name

See Also:
Constant Field Values
Constructor Detail

PDFEmbeddedFileExtensionAttachment

public PDFEmbeddedFileExtensionAttachment()
No-argument contructor.


PDFEmbeddedFileExtensionAttachment

public PDFEmbeddedFileExtensionAttachment(java.lang.String filename,
                                          java.lang.String src,
                                          java.lang.String desc)
Default constructor.

Parameters:
filename - the name of the file
src - the location of the file
desc - the description of the file
Method Detail

getFilename

public java.lang.String getFilename()
Returns the file name.

Returns:
the file name

setFilename

public void setFilename(java.lang.String name)
Sets the file name.

Parameters:
name - The file name to set.

getDesc

public java.lang.String getDesc()
Returns the file description.

Returns:
the description

setDesc

public void setDesc(java.lang.String desc)
Sets the description of the file.

Parameters:
desc - the description to set

getSrc

public java.lang.String getSrc()
Returns the source URI of the file.

Returns:
the source URI

setSrc

public void setSrc(java.lang.String src)
Sets the source URI of the file.

Parameters:
src - the source URI

getCategory

public 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.

Specified by:
getCategory in interface ExtensionAttachment
Overrides:
getCategory in class PDFExtensionAttachment
Returns:
the category URI
See Also:
ExtensionAttachment.getCategory()

toString

public java.lang.String toString()

Overrides:
toString in class PDFExtensionAttachment
Returns:
a string representation of this object
See Also:
Object.toString()

getElement

protected java.lang.String getElement()
Specified by:
getElement in class PDFExtensionAttachment
Returns:
the element name

toSAX

public void toSAX(org.xml.sax.ContentHandler handler)
           throws org.xml.sax.SAXException

Throws:
org.xml.sax.SAXException

fop 1.1

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