org.apache.woden.internal
Class DOMWSDLReader

java.lang.Object
  extended by org.apache.woden.internal.BaseWSDLReader
      extended by org.apache.woden.internal.DOMWSDLReader
All Implemented Interfaces:
WSDLReader

public class DOMWSDLReader
extends BaseWSDLReader

Implements the WSDLReader behaviour for DOM-based parsing.

Author:
John Kaputin (jkaputin@apache.org)

Field Summary
 
Fields inherited from class org.apache.woden.internal.BaseWSDLReader
features, fWsdlContext
 
Fields inherited from interface org.apache.woden.WSDLReader
FEATURE_CONTINUE_ON_ERROR, FEATURE_VALIDATION, FEATURE_VERBOSE, PROPERTY_TYPE_SYSTEM_API, PROPERTY_XML_PARSER_API, TYPE_XSD_2001
 
Method Summary
protected  javax.xml.parsers.DocumentBuilder createDocumentBuilder(javax.xml.parsers.DocumentBuilderFactory factory, org.xml.sax.EntityResolver entityResolver, org.xml.sax.ErrorHandler errorHandler)
          Create a JAXP DocumentBuilder will use for parsing XML documents.
protected  javax.xml.parsers.DocumentBuilderFactory createDocumentBuilderFactory(boolean namespaceAware)
          Create the JAXP DocumentBuilderFactory instance.Use JAXP 1.2 API for validation.
 WSDLSource createWSDLSource()
           
protected  XMLElement createXMLElement(java.lang.Object elem)
           
protected  DescriptionElement getWSDLFromLocation(java.lang.String locationURI, DescriptionElement desc, java.util.Map wsdlModules)
           
protected  void parseExtensionAttributes(XMLElement extEl, java.lang.Class wsdlClass, WSDLElement wsdlObj, DescriptionElement desc)
           
protected  void parseNamespaceDeclarations(XMLElement xmlElem, WSDLElement wsdlElem)
           
protected  void parseSchemaForXMLSchema(DescriptionElement desc)
           
protected  Schema parseSchemaImport(XMLElement importEl, DescriptionElement desc)
           
protected  Schema parseSchemaInline(XMLElement schemaEl, DescriptionElement desc)
           
 Description readWSDL(java.lang.String wsdlURI)
           
 Description readWSDL(WSDLSource wsdlSource)
           
 
Methods inherited from class org.apache.woden.internal.BaseWSDLReader
getErrorReporter, getExtensionRegistry, getFactory, getFactoryImplName, getFeature, getProperty, getURI, getURIResolver, parseDescription, parseDocumentation, parseExtensionElement, resolveURI, resolveURI, setExtensionRegistry, setFactoryImplName, setFeature, setProperty, setURIResolver
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createWSDLSource

public WSDLSource createWSDLSource()

readWSDL

public Description readWSDL(java.lang.String wsdlURI)
                     throws WSDLException
Throws:
WSDLException

readWSDL

public Description readWSDL(WSDLSource wsdlSource)
                     throws WSDLException
Throws:
WSDLException

parseSchemaInline

protected Schema parseSchemaInline(XMLElement schemaEl,
                                   DescriptionElement desc)
                            throws WSDLException
Specified by:
parseSchemaInline in class BaseWSDLReader
Throws:
WSDLException

parseSchemaImport

protected Schema parseSchemaImport(XMLElement importEl,
                                   DescriptionElement desc)
                            throws WSDLException
Specified by:
parseSchemaImport in class BaseWSDLReader
Throws:
WSDLException

parseExtensionAttributes

protected void parseExtensionAttributes(XMLElement extEl,
                                        java.lang.Class wsdlClass,
                                        WSDLElement wsdlObj,
                                        DescriptionElement desc)
                                 throws WSDLException
Specified by:
parseExtensionAttributes in class BaseWSDLReader
Throws:
WSDLException

createXMLElement

protected XMLElement createXMLElement(java.lang.Object elem)
Specified by:
createXMLElement in class BaseWSDLReader

parseNamespaceDeclarations

protected void parseNamespaceDeclarations(XMLElement xmlElem,
                                          WSDLElement wsdlElem)
                                   throws WSDLException
Specified by:
parseNamespaceDeclarations in class BaseWSDLReader
Throws:
WSDLException

parseSchemaForXMLSchema

protected void parseSchemaForXMLSchema(DescriptionElement desc)
                                throws WSDLException
Overrides:
parseSchemaForXMLSchema in class BaseWSDLReader
Throws:
WSDLException

getWSDLFromLocation

protected DescriptionElement getWSDLFromLocation(java.lang.String locationURI,
                                                 DescriptionElement desc,
                                                 java.util.Map wsdlModules)
                                          throws WSDLException
Specified by:
getWSDLFromLocation in class BaseWSDLReader
Throws:
WSDLException

createDocumentBuilderFactory

protected javax.xml.parsers.DocumentBuilderFactory createDocumentBuilderFactory(boolean namespaceAware)
                                                                         throws javax.xml.parsers.ParserConfigurationException,
                                                                                WSDLException
Create the JAXP DocumentBuilderFactory instance.Use JAXP 1.2 API for validation.

Parameters:
namespaceAware - whether the returned factory is to provide support for XML namespaces
Returns:
the JAXP DocumentBuilderFactory
Throws:
javax.xml.parsers.ParserConfigurationException - if we failed to build a proper DocumentBuilderFactory
WSDLException

createDocumentBuilder

protected javax.xml.parsers.DocumentBuilder createDocumentBuilder(javax.xml.parsers.DocumentBuilderFactory factory,
                                                                  org.xml.sax.EntityResolver entityResolver,
                                                                  org.xml.sax.ErrorHandler errorHandler)
                                                           throws javax.xml.parsers.ParserConfigurationException
Create a JAXP DocumentBuilder will use for parsing XML documents.

Parameters:
factory - the JAXP DocumentBuilderFactory that the DocumentBuilder should be created with
entityResolver - the SAX EntityResolver to use
errorHandler - the SAX ErrorHandler to use
Returns:
the JAXP DocumentBuilder
Throws:
javax.xml.parsers.ParserConfigurationException - if thrown by JAXP methods


Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.