JAligner

jaligner.formats
Class FormatFactory

java.lang.Object
  extended byjaligner.formats.FormatFactory

public class FormatFactory
extends java.lang.Object

Formats factory.

Author:
Ahmed Moustafa (ahmed@users.sf.net)

Method Summary
 Format getFormat(java.lang.String id)
          Returns an instance of Format.
 java.util.Collection getFormats()
          Returns a list of registered formats
static FormatFactory getInstance()
          Returns an instance for FormatFactory.
 void registerFormat(Format format)
          Registers format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static FormatFactory getInstance()
Returns an instance for FormatFactory.

Returns:
FormatFactory

registerFormat

public void registerFormat(Format format)
Registers format.

Parameters:
format - instance of format

getFormat

public Format getFormat(java.lang.String id)
Returns an instance of Format.

Parameters:
id - format id
Returns:
Format or null if id not found

getFormats

public java.util.Collection getFormats()
Returns a list of registered formats

Returns:
Collection

JAligner

Ahmed Moustafa (ahmed@users.sf.net)SourceForge.net
The source code of JAligner is licensed under The GNU General Public License (GPL)