org.apache.woden.internal
Class BaseWSDLWriter

java.lang.Object
  extended by org.apache.woden.internal.BaseWSDLWriter
All Implemented Interfaces:
WSDLWriter

public abstract class BaseWSDLWriter
extends java.lang.Object
implements WSDLWriter

This abstract class contains properties and methods common to WSDLWriter implementations. This abstract class implements methods of the WSDLWriter interface that are common across all concrete Writer implementations such as setting and getting features and properties, ExtensionRegistry.

Author:
Sagara Gunathunga (sagara.gunathunga@gmail.com)

Field Summary
protected  WriterFeatures features
           
protected  WSDLContext fWsdlContext
           
 
Constructor Summary
BaseWSDLWriter(WSDLContext wsdlContext)
           
 
Method Summary
 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.
 void setExtensionRegistry(ExtensionRegistry extReg)
           
 void setFactoryImplName(java.lang.String factoryImplName)
           
 void setFeature(java.lang.String name, boolean value)
           
 void setProperty(java.lang.String name, java.lang.Object value)
          Set a named property to the specified object.
 
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.WSDLWriter
writeWSDL, writeWSDL
 

Field Detail

fWsdlContext

protected WSDLContext fWsdlContext

features

protected final WriterFeatures features
Constructor Detail

BaseWSDLWriter

public BaseWSDLWriter(WSDLContext wsdlContext)
Method Detail

getErrorReporter

public ErrorReporter getErrorReporter()
Returns:
Returns the fErrorReporter.

getFactory

protected WSDLFactory getFactory()
                          throws WSDLException
Get the cached WSDLFactory if there is one, otherwise create and cache a new one. TODO see setFactoryImplName todo

Returns:
Returns a.
Throws:
WSDLException

setFactoryImplName

public void setFactoryImplName(java.lang.String factoryImplName)

getFactoryImplName

public java.lang.String getFactoryImplName()
Returns:
the WSDLFactory implementation classname

setExtensionRegistry

public void setExtensionRegistry(ExtensionRegistry extReg)

getExtensionRegistry

public ExtensionRegistry getExtensionRegistry()

setFeature

public void setFeature(java.lang.String name,
                       boolean value)
Specified by:
setFeature in interface WSDLWriter

getFeature

public boolean getFeature(java.lang.String name)
Returns the on/off setting of the named feature, represented as a boolean.

Specified by:
getFeature in interface WSDLWriter
Parameters:
name - the name of the feature to get the value of
Returns:
a boolean representing the on/off state of the named feature
Throws:
java.lang.IllegalArgumentException - if the feature name is not recognized.

setProperty

public void setProperty(java.lang.String name,
                        java.lang.Object value)
Set a named property to the specified object.

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

Parameters:
name - the name of the property to be set
value - an Object representing the value to set the property to
Throws:
java.lang.IllegalArgumentException - if the property name is not recognized.

getProperty

public java.lang.Object getProperty(java.lang.String name)
Returns the value of the named property.

Parameters:
name - the name of the property to get the value of
Returns:
an Object representing the property's value
Throws:
java.lang.IllegalArgumentException - if the property name is not recognized.


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