Mercurial > repos > ganjoo > webservice_toolsuite
view WebServiceToolWorkflow/lib/SAWADLParser/src/javax/wadls/xml/WADLWriter.java @ 0:d5cd409b8a18 default tip
Migrated tool version 1.0.0 from old tool shed archive to new tool shed repository
author | ganjoo |
---|---|
date | Tue, 07 Jun 2011 18:00:50 -0400 |
parents | |
children |
line wrap: on
line source
/* * (c) Copyright IBM Corp 2001, 2005 */ package javax.wadls.xml; import java.io.*; import java.net.URISyntaxException; import org.w3c.dom.*; import javax.wadls.*; /** * This interface describes a collection of methods * that allow a WSDL model to be written to a writer * in an XML format that follows the WSDL schema. * * @author Matthew J. Duftler */ public interface WADLWriter { /** * Sets the specified feature to the specified value. * <p> * There are no minimum features that must be supported. * <p> * All feature names must be fully-qualified, Java package style. All * names starting with javax.wsdls. are reserved for features defined * by the JWSDL specification. It is recommended that implementation- * specific features be fully-qualified to match the package name * of that implementation. For example: com.abc.featureName * * @param name the name of the feature to be set. * @param value the value to set the feature to. * @throws IllegalArgumentException if the feature name is not recognized. * @see #getFeature(String) */ public void setFeature(String name, boolean value) throws IllegalArgumentException; /** * Gets the value of the specified feature. * * @param name the name of the feature to get the value of. * @throws IllegalArgumentException if the feature name is not recognized. * @see #setFeature(String, boolean) */ public boolean getFeature(String name) throws IllegalArgumentException; /** * Return a document generated from the specified WSDL model. */ public Document getDocument(Application wadlApp) throws WADLSException, URISyntaxException; /** * Write the specified WSDL definition to the specified Writer. * * @param wsdlDef the WSDL definition to be written. * @param sink the Writer to write the xml to. */ public void writeWADL(Application wadlApp, Writer sink) throws WADLSException, URISyntaxException; /** * Write the specified WSDL definition to the specified OutputStream. * * @param wsdlDef the WSDL definition to be written. * @param sink the OutputStream to write the xml to. */ public void writeWADL(Application wadlApp, OutputStream sink) throws WADLSException, URISyntaxException; }