0
|
1
|
|
2 package javax.wadls;
|
|
3
|
|
4 import java.net.URISyntaxException;
|
|
5 import java.util.List;
|
|
6 import java.util.Map;
|
|
7
|
|
8 import javax.wadls.extensions.ElementExtensible;
|
|
9 import javax.wadls.extensions.schema.Schema;
|
|
10 import javax.wadls.Application;
|
|
11 import javax.wadls.ModelReference;
|
|
12 import javax.wadls.WADLSException;
|
|
13 import javax.xml.namespace.QName;
|
|
14
|
|
15 import org.w3c.dom.Element;
|
|
16
|
|
17 /**
|
|
18 * This interface represents the <types> section of a WSDL document.
|
|
19 *
|
|
20 * @author Zixin Wu (wuzixin@uga.edu)
|
|
21 * @author Matthew J. Duftler (duftler@us.ibm.com)
|
|
22 */
|
|
23 public interface Grammars extends java.io.Serializable,ModelReferenceExtensible
|
|
24 {public List getTopLevelSchemas();
|
|
25
|
|
26 /**
|
|
27 * Get the DOM elements of all the schemas in this Types.
|
|
28 * @return A list of DOM elements of all the schemas in this Types.
|
|
29 */
|
|
30 public Map getSchemas();
|
|
31
|
|
32 public void setSchemas(Map allSchemas);
|
|
33
|
|
34
|
|
35
|
|
36 /**
|
|
37 * Get the DOM element of the first schema in this Types.
|
|
38 * @return The DOM element of the first schema in this Types.
|
|
39 */
|
|
40 public Schema getFirstSchema();
|
|
41
|
|
42 public ModelReference getModelReference(Element startElement, String path, Application app) throws WADLSException, URISyntaxException;
|
|
43
|
|
44 /**
|
|
45 * Set the modelReference on the element located by the given path.
|
|
46 * @param startElement The starting element of the path
|
|
47 * @param path
|
|
48 * @param modelReference The desired modelReference
|
|
49 */
|
|
50 public void addModelReference(Element startElement, String path, ModelReference modelReference) throws WADLSException;
|
|
51
|
|
52 public void setModelReferences(Element startElement, String path, List<ModelReference> refs) throws WADLSException;
|
|
53
|
|
54 /**
|
|
55 * Get the LiftingSchemaMapping on the element located by the given path.
|
|
56 * @param startElement The starting element of the path
|
|
57 * @param path
|
|
58 * @return The schemaMapping value
|
|
59 */
|
|
60 public String getLiftingSchemaMapping(Element startElement, String path) throws WADLSException;
|
|
61
|
|
62 /**
|
|
63 * Set the LiftingSchemaMapping on the element located by the given path.
|
|
64 * @param startElement The starting element of the path
|
|
65 * @param path
|
|
66 * @param schemaMapping The desired schemaMapping
|
|
67 */
|
|
68 public void setLiftingSchemaMapping(Element startElement, String path, String schemaMapping) throws WADLSException;
|
|
69
|
|
70 /**
|
|
71 * Get the LiftingSchemaMapping on the element located by the given path.
|
|
72 * @param startElement The starting element of the path
|
|
73 * @param path
|
|
74 * @return The schemaMapping value
|
|
75 */
|
|
76 public String getLoweringSchemaMapping(Element startElement, String path) throws WADLSException;
|
|
77
|
|
78 /**
|
|
79 * Set the LiftingSchemaMapping on the element located by the given path.
|
|
80 * @param startElement The starting element of the path
|
|
81 * @param path
|
|
82 * @param schemaMapping The desired schemaMapping
|
|
83 */
|
|
84 public void setLoweringSchemaMapping(Element startElement, String path, String schemaMapping) throws WADLSException;
|
|
85
|
|
86 /**
|
|
87 * Set the documentation element for this document. This dependency
|
|
88 * on org.w3c.dom.Element should eventually be removed when a more
|
|
89 * appropriate way of representing this information is employed.
|
|
90 *
|
|
91 * @param docEl the documentation element
|
|
92 */
|
|
93 public void setDocumentationElement(Element docEl);
|
|
94
|
|
95 /**
|
|
96 * Get the documentation element. This dependency on org.w3c.dom.Element
|
|
97 * should eventually be removed when a more appropriate way of
|
|
98 * representing this information is employed.
|
|
99 *
|
|
100 * @return the documentation element
|
|
101 */
|
|
102 public Element getDocumentationElement();
|
|
103 } |