com.ibm.wsspi.ar

Class ArtifactURIResolver

  • java.lang.Object
    • org.eclipse.emf.common.notify.impl.AdapterImpl
      • com.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


    public class ArtifactURIResolver
    extends org.eclipse.emf.common.notify.impl.AdapterImpl
    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

      Nested Classes 
      Modifier and Type Class and Description
      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

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

        target
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      static org.eclipse.emf.common.notify.AdapterFactory getFactory()
      Return the custom AdapterFactoryImpl for XSDSchemaLocationResolver.
      boolean isAdapterForType(java.lang.Object type) 
      java.lang.String resolveSchemaLocation(org.eclipse.xsd.XSDSchema xsdSchema, java.lang.String namespaceURI, java.lang.String schemaLocationURI) 
      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
    • Constructor Detail

      • ArtifactURIResolver

        public ArtifactURIResolver()
    • Method Detail

      • resolveURI

        public java.lang.String resolveURI(java.lang.String baseURI,
                                  java.lang.String namespaceURI,
                                  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

        public java.lang.String resolveSchemaLocation(org.eclipse.xsd.XSDSchema xsdSchema,
                                             java.lang.String namespaceURI,
                                             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

        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

        public static org.eclipse.emf.common.notify.AdapterFactory getFactory()
        Return the custom AdapterFactoryImpl for XSDSchemaLocationResolver.
        Returns:
        RESOLVER_FACTORY
IBM Business Process ManagerTM
Release 8