|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.woden.internal.BaseWSDLReader
public abstract class BaseWSDLReader
This abstract class contains properties and methods common to WSDLReader implementations.
TODO a Template Inheritance pattern that ensures WSDL validation gets invoked (if turned on by some property) after the subclass has parsed the WSDL. Note, this class is currently WSDL version-independent and XML parser-independent; should try to keep it that way.
Field Summary | |
---|---|
protected ReaderFeatures |
features
|
protected WSDLContext |
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 |
Constructor Summary | |
---|---|
protected |
BaseWSDLReader(WSDLContext wsdlContext)
|
Method Summary | |
---|---|
protected abstract XMLElement |
createXMLElement(java.lang.Object elem)
Returns an XMLElement object representing the specified element object. |
ErrorReporter |
getErrorReporter()
|
ExtensionRegistry |
getExtensionRegistry()
|
protected WSDLFactory |
getFactory()
Get the cached WSDLFactory if there is one, otherwise create and cache a new one. |
java.lang.String |
getFactoryImplName()
|
boolean |
getFeature(java.lang.String name)
Returns the on/off setting of the named feature, represented as a boolean. |
java.lang.Object |
getProperty(java.lang.String name)
Returns the value of the named property. |
protected java.net.URI |
getURI(java.lang.String anyURI)
|
URIResolver |
getURIResolver()
Find the current URI Resolver |
protected abstract DescriptionElement |
getWSDLFromLocation(java.lang.String locationURI,
DescriptionElement desc,
java.util.Map wsdlModules)
|
protected DescriptionElement |
parseDescription(java.lang.String documentBaseURI,
XMLElement descEl,
java.util.Map wsdlModules)
|
protected DocumentationElement |
parseDocumentation(XMLElement docEl,
DescriptionElement desc,
DocumentableElement parent)
|
protected abstract void |
parseExtensionAttributes(XMLElement extEl,
java.lang.Class wsdlClass,
WSDLElement wsdlObj,
DescriptionElement desc)
|
protected ExtensionElement |
parseExtensionElement(java.lang.Class parentType,
WSDLElement parent,
XMLElement el,
DescriptionElement desc)
|
protected abstract void |
parseNamespaceDeclarations(XMLElement xmlElem,
WSDLElement wsdlElem)
|
protected void |
parseSchemaForXMLSchema(DescriptionElement desc)
|
protected abstract Schema |
parseSchemaImport(XMLElement importEl,
DescriptionElement desc)
|
protected abstract Schema |
parseSchemaInline(XMLElement schemaEl,
DescriptionElement desc)
|
protected java.lang.String |
resolveURI(java.lang.String uri)
|
protected java.net.URI |
resolveURI(java.net.URI uri)
|
void |
setExtensionRegistry(ExtensionRegistry extReg)
Set the extension registry to the specified registry reference. |
void |
setFactoryImplName(java.lang.String factoryImplName)
Stores the name of the WSDLFactory implementation class to be used for any subsequent WSDLFactory requests, first discarding any cached factory object. |
void |
setFeature(java.lang.String name,
boolean value)
Set a named feature on or off with a boolean. |
void |
setProperty(java.lang.String name,
java.lang.Object value)
Set a named property to the specified object. |
void |
setURIResolver(URIResolver resolver)
Provides the capability of setting a custom URI Resolver. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.woden.WSDLReader |
---|
createWSDLSource, readWSDL, readWSDL |
Field Detail |
---|
protected WSDLContext fWsdlContext
protected final ReaderFeatures features
Constructor Detail |
---|
protected BaseWSDLReader(WSDLContext wsdlContext) throws WSDLException
WSDLException
Method Detail |
---|
public ErrorReporter getErrorReporter()
getErrorReporter
in interface WSDLReader
protected WSDLFactory getFactory() throws WSDLException
WSDLException
public void setFactoryImplName(java.lang.String factoryImplName)
setFactoryImplName
in interface WSDLReader
factoryImplName
- the WSDLFactory implementation classnamepublic java.lang.String getFactoryImplName()
getFactoryImplName
in interface WSDLReader
public void setExtensionRegistry(ExtensionRegistry extReg)
WSDLReader
setExtensionRegistry
in interface WSDLReader
extReg
- an ExtensionRegistrypublic ExtensionRegistry getExtensionRegistry()
getExtensionRegistry
in interface WSDLReader
public void setFeature(java.lang.String name, boolean value)
All feature names should be fully-qualified, Java package style to avoid name clashes. All names starting with org.apache.woden. are reserved for features defined by the Woden implementation. Features specific to other implementations should be fully-qualified to match the package name structure of that implementation. For example: com.abc.featureName
setFeature
in interface WSDLReader
name
- the name of the feature to be setvalue
- a boolean value where true sets the feature on, false sets it off
java.lang.IllegalArgumentException
- if the feature name is not recognized.public boolean getFeature(java.lang.String name)
getFeature
in interface WSDLReader
name
- the name of the feature to get the value of
java.lang.IllegalArgumentException
- if the feature name is not recognized.public void setProperty(java.lang.String name, java.lang.Object value)
All property names should be fully-qualified, Java package style to avoid name clashes. All names starting with org.apache.woden. are reserved for properties defined by the Woden implementation. Properties specific to other implementations should be fully-qualified to match the package name structure of that implementation. For example: com.abc.propertyName
setProperty
in interface WSDLReader
name
- the name of the property to be setvalue
- an Object representing the value to set the property to
java.lang.IllegalArgumentException
- if the property name is not recognized.public java.lang.Object getProperty(java.lang.String name)
getProperty
in interface WSDLReader
name
- the name of the property to get the value of
java.lang.IllegalArgumentException
- if the property name is not recognized.protected DescriptionElement parseDescription(java.lang.String documentBaseURI, XMLElement descEl, java.util.Map wsdlModules) throws WSDLException
WSDLException
protected DocumentationElement parseDocumentation(XMLElement docEl, DescriptionElement desc, DocumentableElement parent) throws WSDLException
WSDLException
protected abstract Schema parseSchemaImport(XMLElement importEl, DescriptionElement desc) throws WSDLException
WSDLException
protected abstract Schema parseSchemaInline(XMLElement schemaEl, DescriptionElement desc) throws WSDLException
WSDLException
protected ExtensionElement parseExtensionElement(java.lang.Class parentType, WSDLElement parent, XMLElement el, DescriptionElement desc) throws WSDLException
WSDLException
protected abstract void parseExtensionAttributes(XMLElement extEl, java.lang.Class wsdlClass, WSDLElement wsdlObj, DescriptionElement desc) throws WSDLException
WSDLException
protected abstract void parseNamespaceDeclarations(XMLElement xmlElem, WSDLElement wsdlElem) throws WSDLException
WSDLException
protected void parseSchemaForXMLSchema(DescriptionElement desc) throws WSDLException
WSDLException
protected abstract XMLElement createXMLElement(java.lang.Object elem) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
- if elem is not a type recognized by the
WSDLReader implementation.protected java.net.URI getURI(java.lang.String anyURI) throws WSDLException
WSDLException
protected abstract DescriptionElement getWSDLFromLocation(java.lang.String locationURI, DescriptionElement desc, java.util.Map wsdlModules) throws WSDLException
WSDLException
public void setURIResolver(URIResolver resolver)
setURIResolver
in interface WSDLReader
resolver
- the custom URIResolver
java.lang.NullPointerException
- if the 'resolver' parameter is null.protected java.net.URI resolveURI(java.net.URI uri) throws WSDLException
WSDLException
protected java.lang.String resolveURI(java.lang.String uri)
public URIResolver getURIResolver()
getURIResolver
in interface WSDLReader
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |