|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.emf.ecore.resource.impl.ResourceFactoryRegistryImpl
An extensible implementation of a resource factory registry.
| Field Summary | |
protected Map |
extensionToFactoryMap
The extension map. |
protected Map |
protocolToFactoryMap
The protocol map. |
| Fields inherited from interface org.eclipse.emf.ecore.resource.Resource.Factory.Registry |
DEFAULT_EXTENSION, INSTANCE |
| Constructor Summary | |
ResourceFactoryRegistryImpl()
Creates an instance. |
|
| Method Summary | |
protected Resource.Factory |
delegatedGetFactory(URI uri)
Returns the resource factory appropriate for the given URI, when standard alternatives fail. |
Map |
getExtensionToFactoryMap()
Returns a map from file extension to
Resource.Factory
or Resource.Factory.Descriptor.
|
Resource.Factory |
getFactory(URI uri)
Returns the resource factory appropriate for the given URI. |
Map |
getProtocolToFactoryMap()
Returns a map from protocol to
Resource.Factory
or Resource.Factory.Descriptor. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Map protocolToFactoryMap
protected Map extensionToFactoryMap
| Constructor Detail |
public ResourceFactoryRegistryImpl()
| Method Detail |
public Resource.Factory getFactory(URI uri)
This implementation does the typical thing.
It will delegate to delegatedGetFactory(URI)
in the case that the typical behaviour doesn't produce a result;
clients are encouraged to override that method only.
getFactory in interface Resource.Factory.Registryuri - the URI.
ResourceSet.createResource(URI)protected Resource.Factory delegatedGetFactory(URI uri)
This implementation returns null;
clients are encouraged to override it.
uri - the URI.
getFactory(URI)public Map getExtensionToFactoryMap()
Resource.Factory.Registryfile extension to
Resource.Factory
or Resource.Factory.Descriptor.
The default file extension "*"
can be registered as a default that matches any file extension.
This is typically reserved for a default factory that supports XMI serialization;
clients are strongly discouraged from using this feature in the global registry,
particularly those that must function effectively within an Eclipse environment.
getExtensionToFactoryMap in interface Resource.Factory.RegistryResource.Factory.Registry.DEFAULT_EXTENSIONpublic Map getProtocolToFactoryMap()
Resource.Factory.Registryprotocol to
Resource.Factory
or Resource.Factory.Descriptor.
getProtocolToFactoryMap in interface Resource.Factory.Registry
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||