net.sf.jooreports.converter
Class DocumentFormat

java.lang.Object
  extended bynet.sf.jooreports.converter.DocumentFormat

public class DocumentFormat
extends Object

Represents a document format ("OpenDocument Text" or "PDF"). Also contains its available export filters.


Constructor Summary
DocumentFormat()
           
DocumentFormat(String name, DocumentFamily family, String mimeType, String extension)
           
DocumentFormat(String name, String mimeType, String extension)
           
 
Method Summary
 String getExportFilter(DocumentFamily family)
           
 Map getExportOptions()
           
 DocumentFamily getFamily()
           
 String getFileExtension()
           
 String getMimeType()
           
 String getName()
           
 boolean isExportableFrom(DocumentFamily family)
           
 boolean isExportableTo(DocumentFormat otherFormat)
           
 boolean isExportOnly()
           
 boolean isImportable()
           
 void setExportFilter(DocumentFamily family, String filter)
           
 void setExportOption(String name, Object value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentFormat

public DocumentFormat()

DocumentFormat

public DocumentFormat(String name,
                      String mimeType,
                      String extension)

DocumentFormat

public DocumentFormat(String name,
                      DocumentFamily family,
                      String mimeType,
                      String extension)
Method Detail

getName

public String getName()

getFamily

public DocumentFamily getFamily()

getMimeType

public String getMimeType()

getFileExtension

public String getFileExtension()

getExportFilter

public String getExportFilter(DocumentFamily family)

isImportable

public boolean isImportable()

isExportOnly

public boolean isExportOnly()

isExportableTo

public boolean isExportableTo(DocumentFormat otherFormat)

isExportableFrom

public boolean isExportableFrom(DocumentFamily family)

setExportFilter

public void setExportFilter(DocumentFamily family,
                            String filter)

setExportOption

public void setExportOption(String name,
                            Object value)

getExportOptions

public Map getExportOptions()