sk.baka.xml.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

Method Summary
 ICoordinator create(String outputClassId)
          Creates the coordinator that exports a particular document class.
 Set<CoordinatorInfo> getCoordinators()
          Returns the information about all known output document classes.
 

Method Detail

create

ICoordinator create(String outputClassId)
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.
Returns:
the coordinator instance.
Throws:
IllegalArgumentException - if the output class is not supported by this coordinator.

getCoordinators

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

Returns:
all document types, that can be exported.


Copyright © 2006 Martin Vysny - baka. All Rights Reserved.