sk.uniba.euromath.gene.builtin
Class CoordinatorFactoryImpl

java.lang.Object
  extended by sk.uniba.euromath.gene.builtin.CoordinatorFactoryImpl
All Implemented Interfaces:
ICoordinatorFactory

public final class CoordinatorFactoryImpl
extends Object
implements ICoordinatorFactory

Produces default coordinators.

Author:
Martin Vysny

Field Summary
static String OUTPUT_CLASS_LATEX
           Denotes the preddefined LaTeX document output class.
static String OUTPUT_CLASS_XHTML
           Denotes the preddefined XHTML document output class.
 
Fields inherited from interface sk.uniba.euromath.gene.ICoordinatorFactory
EXTENSION_POINT_ID
 
Constructor Summary
CoordinatorFactoryImpl()
           
 
Method Summary
 ICoordinator create(String outputClass, XMLAccess xmlAccess, ExportHelper context)
          Creates the coordinator that exports a particular document class.
 boolean equals(Object obj)
           
 List<CoordinatorInfo> getCoordinators()
          Returns the information about all known output document classes.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OUTPUT_CLASS_XHTML

public static final String OUTPUT_CLASS_XHTML

Denotes the preddefined XHTML document output class. This class expects that all nametrees present in the document can be transformed into a format accepted by the web browsers:

See Also:
Constant Field Values

OUTPUT_CLASS_LATEX

public static final String OUTPUT_CLASS_LATEX

Denotes the preddefined LaTeX document output class. This class expects that all nametrees present in the document can be transformed into the LaTeX file format:

See Also:
Constant Field Values
Constructor Detail

CoordinatorFactoryImpl

public CoordinatorFactoryImpl()
Method Detail

create

public ICoordinator create(String outputClass,
                           XMLAccess xmlAccess,
                           ExportHelper context)
Description copied from interface: ICoordinatorFactory
Creates the coordinator that exports a particular document class.

Specified by:
create in interface ICoordinatorFactory
Parameters:
outputClass - the class of documents that this coordinator produces. It may be one of preddefined constants or a custom one. If the coordinator does not support this class then it must throw an exception.
xmlAccess - this document is about to be serialized.
context - the context object for coordinator.
Returns:
the coordinator instance.

getCoordinators

public List<CoordinatorInfo> getCoordinators()
Description copied from interface: ICoordinatorFactory
Returns the information about all known output document classes.

Specified by:
getCoordinators in interface ICoordinatorFactory
Returns:
all document types, that can be exported.

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright 2003-2003-2006 null. All Rights Reserved.