Mercurial > repos > ganjoo > webservice_toolsuite
diff WebServiceToolWorkflow/lib/SAWADLParser/src/javax/wadls/Grammars.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 diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/WebServiceToolWorkflow/lib/SAWADLParser/src/javax/wadls/Grammars.java Tue Jun 07 18:00:50 2011 -0400 @@ -0,0 +1,103 @@ + +package javax.wadls; + +import java.net.URISyntaxException; +import java.util.List; +import java.util.Map; + +import javax.wadls.extensions.ElementExtensible; +import javax.wadls.extensions.schema.Schema; +import javax.wadls.Application; +import javax.wadls.ModelReference; +import javax.wadls.WADLSException; +import javax.xml.namespace.QName; + +import org.w3c.dom.Element; + +/** + * This interface represents the <types> section of a WSDL document. + * + * @author Zixin Wu (wuzixin@uga.edu) + * @author Matthew J. Duftler (duftler@us.ibm.com) + */ +public interface Grammars extends java.io.Serializable,ModelReferenceExtensible +{public List getTopLevelSchemas(); + +/** + * Get the DOM elements of all the schemas in this Types. + * @return A list of DOM elements of all the schemas in this Types. + */ +public Map getSchemas(); + +public void setSchemas(Map allSchemas); + + + +/** + * Get the DOM element of the first schema in this Types. + * @return The DOM element of the first schema in this Types. + */ +public Schema getFirstSchema(); + +public ModelReference getModelReference(Element startElement, String path, Application app) throws WADLSException, URISyntaxException; + +/** + * Set the modelReference on the element located by the given path. + * @param startElement The starting element of the path + * @param path + * @param modelReference The desired modelReference + */ +public void addModelReference(Element startElement, String path, ModelReference modelReference) throws WADLSException; + +public void setModelReferences(Element startElement, String path, List<ModelReference> refs) throws WADLSException; + +/** + * Get the LiftingSchemaMapping on the element located by the given path. + * @param startElement The starting element of the path + * @param path + * @return The schemaMapping value + */ +public String getLiftingSchemaMapping(Element startElement, String path) throws WADLSException; + +/** + * Set the LiftingSchemaMapping on the element located by the given path. + * @param startElement The starting element of the path + * @param path + * @param schemaMapping The desired schemaMapping + */ +public void setLiftingSchemaMapping(Element startElement, String path, String schemaMapping) throws WADLSException; + +/** + * Get the LiftingSchemaMapping on the element located by the given path. + * @param startElement The starting element of the path + * @param path + * @return The schemaMapping value + */ +public String getLoweringSchemaMapping(Element startElement, String path) throws WADLSException; + +/** + * Set the LiftingSchemaMapping on the element located by the given path. + * @param startElement The starting element of the path + * @param path + * @param schemaMapping The desired schemaMapping + */ +public void setLoweringSchemaMapping(Element startElement, String path, String schemaMapping) throws WADLSException; + +/** + * Set the documentation element for this document. This dependency + * on org.w3c.dom.Element should eventually be removed when a more + * appropriate way of representing this information is employed. + * + * @param docEl the documentation element + */ +public void setDocumentationElement(Element docEl); + +/** + * Get the documentation element. This dependency on org.w3c.dom.Element + * should eventually be removed when a more appropriate way of + * representing this information is employed. + * + * @return the documentation element + */ +public Element getDocumentationElement(); +} \ No newline at end of file