org.apache.woden.internal
Class BaseWSDLSource

java.lang.Object
  extended by org.apache.woden.internal.BaseWSDLSource
All Implemented Interfaces:
WSDLSource
Direct Known Subclasses:
DOMWSDLSource

public abstract class BaseWSDLSource
extends java.lang.Object
implements WSDLSource

This abstract class implements methods of the WSDLSource interface that are common across all concrete implementations. The only method on this interface that is specific to each concrete implementation is the setSource method and this method is declared abstract on this class.

Author:
John Kaputin (jkaputin@apache.org)

Field Summary
protected  ErrorReporter fErrorReporter
           
protected  java.lang.Object fSource
           
 
Constructor Summary
protected BaseWSDLSource(ErrorReporter errorReporter)
           
 
Method Summary
 java.net.URI getBaseURI()
           
 java.lang.Object getSource()
          Returns the implementation specific object representing the WSDL source (for example, a DOM Element or Document or an Axiom OMElement).
 void setBaseURI(java.net.URI baseURI)
          Store the base URI of the WSDL source document.
abstract  void setSource(java.lang.Object wsdlSource)
          Store the specified source object representing the WSDL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fSource

protected java.lang.Object fSource

fErrorReporter

protected ErrorReporter fErrorReporter
Constructor Detail

BaseWSDLSource

protected BaseWSDLSource(ErrorReporter errorReporter)
Method Detail

setSource

public abstract void setSource(java.lang.Object wsdlSource)
Description copied from interface: WSDLSource
Store the specified source object representing the WSDL.

Specified by:
setSource in interface WSDLSource
Parameters:
wsdlSource - the WSDL source object

getSource

public java.lang.Object getSource()
Description copied from interface: WSDLSource
Returns the implementation specific object representing the WSDL source (for example, a DOM Element or Document or an Axiom OMElement). The caller should cast this object to the appropriate type to use its interface.

Specified by:
getSource in interface WSDLSource
Returns:
the Object representing the WSDL source

setBaseURI

public void setBaseURI(java.net.URI baseURI)
Description copied from interface: WSDLSource
Store the base URI of the WSDL source document.

Specified by:
setBaseURI in interface WSDLSource
Parameters:
baseURI - the URI of the WSDL document.

getBaseURI

public java.net.URI getBaseURI()
Specified by:
getBaseURI in interface WSDLSource
Returns:
the base URI of the WSDL


Copyright © 2007. All Rights Reserved.