org.eclipse.wst.wsdl.util
Class WSDLResourceFactoryRegistry
java.lang.Object
org.eclipse.wst.wsdl.util.WSDLResourceFactoryRegistry
- All Implemented Interfaces:
- org.eclipse.emf.ecore.resource.Resource.Factory.Registry
public class WSDLResourceFactoryRegistry
- extends java.lang.Object
- implements org.eclipse.emf.ecore.resource.Resource.Factory.Registry
This class provides support for the loading of WSDL or XSD resource from
URI's that don't end with .xsd or .wsdl extensions.
These URI's foil EMF's standard resource loading mechanism wich assumes that
a resource type can always be deduced from the file extension.
Code Example:
ResourceSet resourceSet = new ResourceSetImpl();
WSDLResourceFactoryRegistry registry = new WSDLResourceFactoryRegistry(Resource.Factory.Registry.INSTANCE);
resourceSet.setResourceFactoryRegistry(registry);
Note: This class/interface is part of an interim API that is still under development and expected to
change significantly before reaching stability. It is being made available at this early stage to solicit feedback
from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
(repeatedly) as the API evolves.
- Since:
- 1.0
Fields inherited from interface org.eclipse.emf.ecore.resource.Resource.Factory.Registry |
DEFAULT_EXTENSION, INSTANCE |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WSDLResourceFactoryRegistry
public WSDLResourceFactoryRegistry(org.eclipse.emf.ecore.resource.Resource.Factory.Registry parent)
getExtensionToFactoryMap
public java.util.Map getExtensionToFactoryMap()
- Specified by:
getExtensionToFactoryMap
in interface org.eclipse.emf.ecore.resource.Resource.Factory.Registry
getProtocolToFactoryMap
public java.util.Map getProtocolToFactoryMap()
- Specified by:
getProtocolToFactoryMap
in interface org.eclipse.emf.ecore.resource.Resource.Factory.Registry
getFactory
public org.eclipse.emf.ecore.resource.Resource.Factory getFactory(org.eclipse.emf.common.util.URI uri)
- Specified by:
getFactory
in interface org.eclipse.emf.ecore.resource.Resource.Factory.Registry