org.apache.tuscany.sca.interfacedef.wsdl.xml
Class WSDLDocumentProcessor

java.lang.Object
  extended by org.apache.tuscany.sca.interfacedef.wsdl.xml.WSDLDocumentProcessor
All Implemented Interfaces:
ArtifactProcessor<WSDLDefinition>, URLArtifactProcessor<WSDLDefinition>

public class WSDLDocumentProcessor
extends java.lang.Object
implements URLArtifactProcessor<WSDLDefinition>

An ArtifactProcessor for WSDL documents.


Field Summary
static javax.xml.namespace.QName WSDL11
           
static javax.xml.namespace.QName WSDL11_IMPORT
           
static javax.xml.namespace.QName XSD
           
 
Constructor Summary
WSDLDocumentProcessor(ModelFactoryExtensionPoint modelFactories, Monitor monitor)
           
 
Method Summary
 java.lang.String getArtifactType()
          Returns the type of artifact handled by this artifact processor.
 java.lang.Class<WSDLDefinition> getModelType()
          Returns the type of model handled by this artifact processor.
protected  WSDLDefinition indexRead(java.net.URL doc)
          Read the namespace for the WSDL definition and inline schemas
 WSDLDefinition read(java.net.URL contributionURL, java.net.URI artifactURI, java.net.URL artifactURL)
          Reads a model from a URL.
 void resolve(WSDLDefinition model, ModelResolver resolver)
          Resolve references from this model to other models.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WSDL11

public static final javax.xml.namespace.QName WSDL11

WSDL11_IMPORT

public static final javax.xml.namespace.QName WSDL11_IMPORT

XSD

public static final javax.xml.namespace.QName XSD
Constructor Detail

WSDLDocumentProcessor

public WSDLDocumentProcessor(ModelFactoryExtensionPoint modelFactories,
                             Monitor monitor)
Method Detail

read

public WSDLDefinition read(java.net.URL contributionURL,
                           java.net.URI artifactURI,
                           java.net.URL artifactURL)
                    throws ContributionReadException
Description copied from interface: URLArtifactProcessor
Reads a model from a URL.

Specified by:
read in interface URLArtifactProcessor<WSDLDefinition>
Parameters:
contributionURL - Contribution location URL
artifactURI - Artifact URI
artifactURL - Artifact location URL
Returns:
A model representation of the input.
Throws:
ContributionReadException

resolve

public void resolve(WSDLDefinition model,
                    ModelResolver resolver)
             throws ContributionResolveException
Description copied from interface: ArtifactProcessor
Resolve references from this model to other models. For example references from a composite to another one, or references from a composite to a WSDL model.

Specified by:
resolve in interface ArtifactProcessor<WSDLDefinition>
Parameters:
model - The model to resolve
resolver - The resolver to use to resolve referenced models
Throws:
ContributionResolveException

getArtifactType

public java.lang.String getArtifactType()
Description copied from interface: URLArtifactProcessor
Returns the type of artifact handled by this artifact processor.

Specified by:
getArtifactType in interface URLArtifactProcessor<WSDLDefinition>
Returns:
The type of artifact handled by this artifact processor

getModelType

public java.lang.Class<WSDLDefinition> getModelType()
Description copied from interface: ArtifactProcessor
Returns the type of model handled by this artifact processor.

Specified by:
getModelType in interface ArtifactProcessor<WSDLDefinition>
Returns:
The type of model handled by this artifact processor

indexRead

protected WSDLDefinition indexRead(java.net.URL doc)
                            throws java.lang.Exception
Read the namespace for the WSDL definition and inline schemas

Parameters:
doc -
Returns:
Throws:
java.io.IOException
javax.xml.stream.XMLStreamException
java.lang.Exception