com.ibm.wsspi.ar

Class ArtifactURIResolver

  1. java.lang.Object
  2. extended byorg.eclipse.emf.common.notify.impl.AdapterImpl
  3. extended bycom.ibm.wsspi.ar.ArtifactURIResolver
All implemented interfaces:
org.eclipse.emf.common.notify.Adapter, org.eclipse.emf.common.notify.Adapter.Internal, org.eclipse.wst.wsdl.internal.util.WSDLModelLocator, org.eclipse.xsd.util.XSDSchemaLocationResolver

  1. public class ArtifactURIResolver
  2. extends org.eclipse.emf.common.notify.impl.AdapterImpl
  3. implements org.eclipse.xsd.util.XSDSchemaLocationResolver, org.eclipse.wst.wsdl.internal.util.WSDLModelLocator
Resolves the federated view of a WSDL and XSD based on the URI. A federated view of a WSDL merges all the WSDL documents that participate in the same target namespace into one view and ensures the ResourceSet contains the models for the WSDLs as well as all the referenced XSDs.
Since:
6.0.0.0

Nested Class Summary

Modifier and Type Class and Description
  1. protected static class
ArtifactURIResolver.ResolverFactory
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter
org.eclipse.emf.common.notify.Adapter.Internal

Field Summary

Modifier and Type Field and Description
  1. static
  2. java.lang.String
COPYRIGHT
Fields inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl
target

Constructor Summary

Constructor and Description
ArtifactURIResolver()

Method Summary

Modifier and Type Method and Description
  1. static
  2. org.eclipse.emf.common.notify.AdapterFactory
getFactory()
Return the custom AdapterFactoryImpl for XSDSchemaLocationResolver.
  1. boolean
isAdapterForType(java.lang.Object type)
  1. java.lang.String
resolveSchemaLocation(org.eclipse.xsd.XSDSchema xsdSchema,java.lang.String namespaceURI,java.lang.String schemaLocationURI)
  1. java.lang.String
resolveURI(java.lang.String baseURI,java.lang.String namespaceURI,java.lang.String location)
Locates the document given the target namespace.
Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl
getTarget, notifyChanged, setTarget, unsetTarget
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

  1. public static final java.lang.String COPYRIGHT
See Also:

Constructor Detail

ArtifactURIResolver

  1. public ArtifactURIResolver()

Method Detail

resolveURI

  1. public java.lang.String resolveURI( java.lang.String baseURI,
  2. java.lang.String namespaceURI,
  3. java.lang.String location)
Locates the document given the target namespace. The baseURI parameter is not used since we depend on the ArtifactLoader to locate the document by target namespace.
Specified by:
resolveURI in interface org.eclipse.wst.wsdl.internal.util.WSDLModelLocator
Parameters:
baseURI - The base hierarchical URI where this document can be resolved against. Not used within WPS.
namespaceURI - Target namespace of the document.
location - Location hint where the document may be found.
Returns:
An "artifact" protocol URI which points to all the WSDLs and XSDs which participate in the target namespace. If no results are found, returns the namespaceURI passed in.
See Also:
WSDLModelLocator.resolveURI(java.lang.String, java.lang.String, java.lang.String)

resolveSchemaLocation

  1. public java.lang.String resolveSchemaLocation( org.eclipse.xsd.XSDSchema xsdSchema,
  2. java.lang.String namespaceURI,
  3. java.lang.String schemaLocationURI)
Specified by:
resolveSchemaLocation in interface org.eclipse.xsd.util.XSDSchemaLocationResolver
See Also:
XSDSchemaLocationResolver.resolveSchemaLocation(org.eclipse.xsd.XSDSchema, java.lang.String, java.lang.String)

isAdapterForType

  1. public boolean isAdapterForType( java.lang.Object type)
Specified by:
isAdapterForType in interface org.eclipse.emf.common.notify.Adapter
Overrides:
isAdapterForType in class org.eclipse.emf.common.notify.impl.AdapterImpl

getFactory

  1. public static org.eclipse.emf.common.notify.AdapterFactory getFactory( )
Return the custom AdapterFactoryImpl for XSDSchemaLocationResolver.
Returns:
RESOLVER_FACTORY