sk.uniba.euromath.editor
Class InstanceProvider

java.lang.Object
  extended by sk.uniba.euromath.editor.InstanceProvider

public final class InstanceProvider
extends Object

Provides instances of editors and renderers.

Author:
Martin Vysny

Method Summary
 Set<? extends String> getEditableNamespaces()
          Returns set of all namespaces, for which at least one instance of editor can be constructed.
 List<EditorInfo> getEditorsForNamespace(String namespace, EnumSet<ResultEnum> resultTypes)
          Returns all registered editors that are able to process given namespace.
static InstanceProvider getInstance()
          Returns the singleton instance.
 Set<? extends String> getRenderableNamespaces()
          Returns set of all namespaces, for which at least one instance of renderer can be constructed.
 List<RendererInfo> getRenderersForNamespace(String namespace, EnumSet<ResultEnum> resultTypes)
          Returns all registered renderers that are able to process given namespace.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static InstanceProvider getInstance()
Returns the singleton instance.

Returns:
the instance of the object.

getEditorsForNamespace

public List<EditorInfo> getEditorsForNamespace(String namespace,
                                               EnumSet<ResultEnum> resultTypes)
Returns all registered editors that are able to process given namespace.

Parameters:
namespace - source namespace
resultTypes - all kinds of result types in which the document may be offered
Returns:
list of exporters or an empty list if no exporters are registered.

getRenderersForNamespace

public List<RendererInfo> getRenderersForNamespace(String namespace,
                                                   EnumSet<ResultEnum> resultTypes)
Returns all registered renderers that are able to process given namespace.

Parameters:
namespace - source namespace
resultTypes - all kinds of result types in which the document may be offered
Returns:
list of renderers or an empty list if no renderers are registered.

getRenderableNamespaces

public Set<? extends String> getRenderableNamespaces()
Returns set of all namespaces, for which at least one instance of renderer can be constructed.

Returns:
unmodifiable set of namespace URIs.

getEditableNamespaces

public Set<? extends String> getEditableNamespaces()
Returns set of all namespaces, for which at least one instance of editor can be constructed.

Returns:
unmodifiable set of namespace URIs.


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