sk.uniba.euromath.gene
Interface ICoordinatorFactory

All Known Implementing Classes:
CoordinatorFactoryImpl

public interface ICoordinatorFactory

Produces coordinator instances. Must be equal only to factory with same class. hashCode() must be implemented correctly aswell, to reflect this behaviour. It must be instantiable using the zero-argument public constructor.

Author:
Martin Vysny

Field Summary
static String EXTENSION_POINT_ID
          ID of extension point for coordinator factory instances.
 
Method Summary
 ICoordinator create(String outputClassId, XMLAccess xmlAccess, ExportHelper context)
          Creates the coordinator that exports a particular document class.
 List<CoordinatorInfo> getCoordinators()
          Returns the information about all known output document classes.
 

Field Detail

EXTENSION_POINT_ID

static final String EXTENSION_POINT_ID
ID of extension point for coordinator factory instances.

See Also:
Constant Field Values
Method Detail

create

ICoordinator create(String outputClassId,
                    XMLAccess xmlAccess,
                    ExportHelper context)
Creates the coordinator that exports a particular document class.

Parameters:
outputClassId - 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.
Throws:
IllegalArgumentException - if the output class is not supported by this coordinator.

getCoordinators

List<CoordinatorInfo> getCoordinators()
Returns the information about all known output document classes.

Returns:
all document types, that can be exported.


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