public abstract class BaseComponentExtensionContext extends Object implements ComponentExtensionContext
getProperties
and getProperty
methods
abstract, for subclasses to implement.
Implementors of WSDL 2.0 extensions may extend this class to reuse common behaviour for accessing the parent component and the extension namespace. It provides a constructor which subclasses should call that stores the parent component and extension namespace.
Modifier and Type | Field and Description |
---|---|
protected ErrorReporter |
errorReporter |
Modifier | Constructor and Description |
---|---|
protected |
BaseComponentExtensionContext(WSDLComponent parent,
URI extNamespace,
ErrorReporter errorReporter)
Constructor accepts the parent component, the extension namespace and an error reporter.
|
Modifier and Type | Method and Description |
---|---|
URI |
getNamespace() |
WSDLComponent |
getParent() |
abstract ExtensionProperty[] |
getProperties() |
abstract ExtensionProperty |
getProperty(String propertyName) |
protected ExtensionProperty |
newExtensionProperty(String name,
Object content)
A factory-type method for instantiating and initialising ExtensionProperty objects.
|
protected ErrorReporter errorReporter
protected BaseComponentExtensionContext(WSDLComponent parent, URI extNamespace, ErrorReporter errorReporter)
Normal behaviour is for these 3 parameters to be provided by the ExtensionRegistry when it calls this constructor. Woden client code should not need to call this constructor directly. However, this assumes that extension properties from the required namespace have been registered in the ExtensionRegistry. This is done automatically by Woden for the extensions defined by the WSDL 2.0 Recommendation (SOAP, HTTP, RPC, WSDLX), but implementors of other WSDL 2.0 extensions must ensure they register their extension properties so that this constructor gets called by the ExtensionRegistry.
parent
- WSDLComponent containing these extension propertiesextNamespace
- extension namespace URIerrorReporter
- ErrorReporter available to subclasses for reporting errorsNullPointerException
- if any of the parameters are nullpublic WSDLComponent getParent()
getParent
in interface ComponentExtensionContext
ComponentExtensionContext.getParent()
public URI getNamespace()
getNamespace
in interface ComponentExtensionContext
ComponentExtensionContext.getNamespace()
public abstract ExtensionProperty[] getProperties()
getProperties
in interface ComponentExtensionContext
ComponentExtensionContext.getProperties()
public abstract ExtensionProperty getProperty(String propertyName)
getProperty
in interface ComponentExtensionContext
ComponentExtensionContext.getProperty(java.lang.String)
protected ExtensionProperty newExtensionProperty(String name, Object content)
NullPointerException
- if the name
parameter is null.Copyright © 2005-2013 Apache Software Foundation. All Rights Reserved.