public class ModelConverterRegistry
extends java.lang.Object
IModelConverters and their IModelConverterDescriptions.| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<IModelConverter> |
fModelConverters
The registered model converters.
|
static ModelConverterRegistry |
INSTANCE
Singleton instance.
|
| Constructor and Description |
|---|
ModelConverterRegistry() |
| Modifier and Type | Method and Description |
|---|---|
IModelConverterDescription |
getConverterDescription(IModelConverter converter)
Returns the IModelConverterDescription for the specified
converter |
java.util.Collection<IModelConverterDescription> |
getConverterDescriptions(IMetaModelDescriptor targetResourceVersion)
Returns the descriptions of all the IModelConverters which target at
targetResourceVersion. |
java.util.List<IModelConverter> |
getConverters()
Gets the registered converters.
|
IModelConverter |
getLoadConverter(org.eclipse.emf.ecore.xmi.XMLResource xmlResource,
java.util.Map<?,?> options) |
IModelConverter |
getSaveConverter(org.eclipse.emf.ecore.xmi.XMLResource xmlResource,
java.util.Map<?,?> options) |
protected void |
init()
Reads the platform extension registry to initialize the model converter registry.
|
void |
reset()
Resets the converters to null, so that the registry will be read again next time the converters will be accessed.
|
public static final ModelConverterRegistry INSTANCE
protected java.util.List<IModelConverter> fModelConverters
protected void init()
public void reset()
public java.util.List<IModelConverter> getConverters()
public IModelConverter getLoadConverter(org.eclipse.emf.ecore.xmi.XMLResource xmlResource, java.util.Map<?,?> options)
public IModelConverter getSaveConverter(org.eclipse.emf.ecore.xmi.XMLResource xmlResource, java.util.Map<?,?> options)
public IModelConverterDescription getConverterDescription(IModelConverter converter)
converterconverter - The IModelConverter for which the IModelConverterDescription is to be retrieved.converter.public java.util.Collection<IModelConverterDescription> getConverterDescriptions(IMetaModelDescriptor targetResourceVersion)
targetResourceVersion.targetResourceVersion - The target resource version of the IModelConverters whom's descriptions are to be returned.targetResourceVersion.