com.dynalivery.saffron.client
Class FormatOptions

java.lang.Object
  extended bycom.dynalivery.saffron.client.FormatOptions
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
EditableFormatOptions, HTMLFormatOptions, PDFFormatOptions, RasterFormatOptions, RTFFormatOptions, SVGFormatOptions

public abstract class FormatOptions
extends java.lang.Object
implements java.io.Serializable

This class defines the formatting options for a Saffron export.

See Also:
Serialized Form

Field Summary
protected  int fileType
          the output file type (e.g.
 
Constructor Summary
FormatOptions(int fileType)
          Creates new FormatOptions
 
Method Summary
 int getFileType()
          Returns the output file type (e.g.
abstract  byte[] getXML()
          Returns an XML String representation of the format options, if any
 void setFileType(int fileType)
          Sets the output file type
 java.lang.String toString()
          Creates display string for format options.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fileType

protected int fileType
the output file type (e.g. FileType.PDF)

Constructor Detail

FormatOptions

public FormatOptions(int fileType)
              throws InvalidParameterException
Creates new FormatOptions

Parameters:
fileType - the output file type (e.g. FileType.PDF)
Throws:
InvalidParameterException
Method Detail

getFileType

public int getFileType()
Returns the output file type (e.g. FileType.PDF)

Returns:
the output file type (e.g. FileType.PDF)

setFileType

public void setFileType(int fileType)
                 throws InvalidParameterException
Sets the output file type

Parameters:
fileType - the output file type (e.g. FileType.PDF)
Throws:
InvalidParameterException

getXML

public abstract byte[] getXML()
                       throws InvalidParameterException
Returns an XML String representation of the format options, if any

Returns:
an XML String representation of the format options, if any
Throws:
InvalidParameterException

toString

public java.lang.String toString()
Creates display string for format options. Must be overridden in subclasses.

Returns:
display string for format options. Must be overridden in subclasses.