com.fatwire.transformer.common
Interface TransformerFormatRepository


public interface TransformerFormatRepository

This is basically repository which keeps the information about the possible output transformerformat So this is an inventory of possible output format and possible transformer for the each output format It also has a responsibility to tell correct transformer to to be used. TransformFacotry uses it create an instance of DocumentTranformer.


Method Summary
 TransformerFormat getFormatByExtension(java.lang.String extension)
          Return the Output type TransformerFormat object from the repository specified by file extension.
 TransformerFormat getFormatByMimetype(java.lang.String mimetype)
          Return the TransformerFormat object from the repository specified by file mimetype
 Transformer getValidTransformer(java.lang.String inputFileExtention, java.lang.String outputFileExtention)
          Returns the valid transformer...based on the input and output file type or otherwise throw an exception saying no valid transformer found This keeps all the information needed to transform a document
 

Method Detail

getFormatByExtension

TransformerFormat getFormatByExtension(java.lang.String extension)
Return the Output type TransformerFormat object from the repository specified by file extension. This can be used basically to

Parameters:
extension - - File extension of the output file type
Returns:
TransformerFormat object based on file extension

getFormatByMimetype

TransformerFormat getFormatByMimetype(java.lang.String mimetype)
Return the TransformerFormat object from the repository specified by file mimetype

Parameters:
mimetype - - mimetype of the output file
Returns:
TransformerFormat object based on mine type extension

getValidTransformer

Transformer getValidTransformer(java.lang.String inputFileExtention,
                                java.lang.String outputFileExtention)
                                throws TransformerNotFoundException
Returns the valid transformer...based on the input and output file type or otherwise throw an exception saying no valid transformer found This keeps all the information needed to transform a document

Parameters:
inputFileExtention - -- input file extension (optional)
outputFileExtention - -- output file extension
Returns:
Transformer object need to transform a document..
Throws:
TransformerNotFoundException


Copyright (c) 2003 - 2011 FatWire Corporation All Rights Reserved.