0
|
1 package javax.wadls;
|
|
2
|
|
3 import java.net.URI;
|
|
4 import java.net.URISyntaxException;
|
|
5
|
|
6 /**
|
|
7 * This interface represents a ModelReference.
|
|
8 *
|
|
9 * @author Zixin Wu (wuzixin@uga.edu)
|
|
10 *
|
|
11 */
|
|
12 public interface ModelReference {
|
|
13
|
|
14 /**
|
|
15 * Get the concept of this modelReference.
|
|
16 * @return The concept of this modelReference.
|
|
17 */
|
|
18 public String getConcept();
|
|
19
|
|
20 /**
|
|
21 * Set the concept of this modelReference.
|
|
22 * @param concept The desired concept of this modelReference.
|
|
23 */
|
|
24 public void setConcept(String concept);
|
|
25
|
|
26 /**
|
|
27 * Get the prefix of this modelReference
|
|
28 * @return The prefix of this modelReference
|
|
29 */
|
|
30 public String getPrefix();
|
|
31
|
|
32 /**
|
|
33 * Set the prefix of the ontology used in this modelReference
|
|
34 * @param prefix The desired prefix of the ontology used in this modelReference
|
|
35 */
|
|
36 public void setPrefix(String prefix);
|
|
37
|
|
38 /**
|
|
39 * Get the namespace of the ontology used in this modelReference
|
|
40 * @return The namespace of the ontology used in this modelReference
|
|
41 */
|
|
42 public URI getNamespace();
|
|
43
|
|
44 /**
|
|
45 * Set the namespace of the ontology used in this modelReference
|
|
46 * @param nameSpace The desired namespace of the ontology used in this modelReference
|
|
47 */
|
|
48 public void setNamespace(String nameSpace)
|
|
49 throws URISyntaxException;
|
|
50
|
|
51 /**
|
|
52 * Get the parent object of this modelReference
|
|
53 * @return The parent object of this modelReference
|
|
54 */
|
|
55 public Object getParent();
|
|
56
|
|
57 /**
|
|
58 * Set the parent object of this modelReference
|
|
59 * @param parent The desired parent object of this modelReference
|
|
60 */
|
|
61 public void setParent(Object parent);
|
|
62
|
|
63 /**
|
|
64 * Set the value of this modelReference by parsing the formatted string.
|
|
65 * @param modelReferenceAsString The formatted string
|
|
66 * @param def WSDLS definition
|
|
67 * @throws URISyntaxException
|
|
68 * @throws WSDLSException
|
|
69 */
|
|
70 public void valueOf(String modelReferenceAsString, Application app) throws URISyntaxException, WADLSException;
|
|
71
|
|
72 /**
|
|
73 * Return a formatted string representing this modelReference.
|
|
74 * @return A formatted string representing this modelReference.
|
|
75 */
|
|
76 public String value();
|
|
77 } |