org.apache.tuscany.core.loader.assembly
Class ImportWSDLLoader
java.lang.Object
org.apache.tuscany.core.loader.assembly.AbstractLoader
org.apache.tuscany.core.loader.assembly.ImportWSDLLoader
- All Implemented Interfaces:
- StAXElementLoader
public class ImportWSDLLoader
- extends AbstractLoader
Loader that handles <import.wsdl> elements.
- Version:
- $Rev$ $Date$
Method Summary |
javax.xml.namespace.QName |
getXMLType()
Returns the QName of the element that this implementation handles. |
org.apache.tuscany.model.assembly.ImportWSDL |
load(javax.xml.stream.XMLStreamReader reader,
LoaderContext loaderContext)
Build the model object for an element in an XML stream. |
protected javax.wsdl.Definition |
loadDefinition(java.lang.String namespace,
java.lang.String location,
org.apache.tuscany.common.resource.ResourceLoader resourceLoader)
|
void |
setWsdlRegistry(WSDLDefinitionRegistry wsdlRegistry)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImportWSDLLoader
public ImportWSDLLoader()
setWsdlRegistry
public void setWsdlRegistry(WSDLDefinitionRegistry wsdlRegistry)
getXMLType
public javax.xml.namespace.QName getXMLType()
- Description copied from class:
AbstractLoader
- Returns the QName of the element that this implementation handles.
- Specified by:
getXMLType
in class AbstractLoader
- Returns:
- the QName of the element that this implementation handles
load
public org.apache.tuscany.model.assembly.ImportWSDL load(javax.xml.stream.XMLStreamReader reader,
LoaderContext loaderContext)
throws javax.xml.stream.XMLStreamException,
ConfigurationLoadException
- Description copied from interface:
StAXElementLoader
- Build the model object for an element in an XML stream.
When this method returns the stream will be positioned on the corresponding END_ELEMENT.
- Parameters:
reader
- the XML stream reader positioned on the applicable START_ELEMENTloaderContext
- the context for the load operation
- Returns:
- the model object for that element
- Throws:
javax.xml.stream.XMLStreamException
ConfigurationLoadException
loadDefinition
protected javax.wsdl.Definition loadDefinition(java.lang.String namespace,
java.lang.String location,
org.apache.tuscany.common.resource.ResourceLoader resourceLoader)
throws MissingResourceException,
SidefileLoadException
- Throws:
MissingResourceException
SidefileLoadException
-