|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sk.uniba.euromath.gene.InstanceProvider
public final class InstanceProvider
Provides instances of coordinators, exporters and graph builders.
Method Summary | |
---|---|
GraphNode |
getAdjustedGraph(TransformationInfo view,
String coordinatorId)
Tries to adjust given view to be able to get accepted by given coordinator. |
Set<String> |
getCoordinatorIds()
Returns IDs of all registered coordinators (outputClassId). |
CoordinatorInfo |
getCoordinatorInfo(String coordinatorId)
Returns the information about output document class. |
List<ExporterInfo> |
getExportersForNamespace(String namespace)
Returns all registered exporters that are able to process given namespace. |
List<ExporterInfo> |
getExportersForNamespace(String namespace,
EnumSet<ResultEnum> resultTypes)
Returns all registered exporters that are able to process given namespace with given source type. |
static InstanceProvider |
getInstance()
Returns the singleton instance. |
ExportGraphBuilder |
newBuilder()
Produces new graph builder. |
ICoordinator |
newCoordinator(String outputClassId,
ICoordinatorFactory factory,
XMLAccess xmlAccess)
Returns the coordinator for given output class and prepares it for export. |
ICoordinator |
newCoordinator(String outputClassId,
XMLAccess xmlAccess)
Returns the coordinator for given output class and prepares it for export. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static InstanceProvider getInstance()
public List<ExporterInfo> getExportersForNamespace(String namespace)
namespace
- source namespace
null
if no exporters are
registered.public List<ExporterInfo> getExportersForNamespace(String namespace, EnumSet<ResultEnum> resultTypes)
namespace
- source namespace.resultTypes
- all kinds of result types in which the document may be
offered
null
- may be
empty.public ExportGraphBuilder newBuilder()
public ICoordinator newCoordinator(String outputClassId, XMLAccess xmlAccess)
outputClassId
- the document class (coordinator id) that shall be
produced.xmlAccess
- the instance of the document
public ICoordinator newCoordinator(String outputClassId, ICoordinatorFactory factory, XMLAccess xmlAccess)
Returns the coordinator for given output class and prepares it for export. Returned coordinator instance is not yet configured.
Serves primarily for instantiating custom coordinators, such as the editor framework coordinator.
outputClassId
- the document class (coordinator id) that shall be
produced.xmlAccess
- the instance of the documentfactory
- the factory producing the coordinator.
public GraphNode getAdjustedGraph(TransformationInfo view, String coordinatorId)
view
- the transformation graphcoordinatorId
- the export document class.
null
if
the info cannot be adjusted. In such case, user should be queried for a
new view object.public CoordinatorInfo getCoordinatorInfo(String coordinatorId)
coordinatorId
- the document class (coordinator identifier)
null
.public Set<String> getCoordinatorIds()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |