1 package xdoclet.sdk.xgg.binding;
2
3
4 /***
5 * @author <a href="mailto:aslak.hellesoy at bekk.no">Aslak Hellesøy</a>
6 * @author <a href="mailto:letiemble at users.sourceforge.net">Laurent Etiemble</a>
7 * @created 7 mai 2003
8 * @version $Revision: 1.3 $
9 */
10 public abstract class Binding {
11 private String _regexp = null;
12 private final String _version;
13 private final String _xmlName;
14
15
16 /***
17 *Constructor for the Binding object
18 *
19 * @param xmlName Description of the Parameter
20 * @param version Description of the Parameter
21 */
22 public Binding(String xmlName, String version) {
23 _xmlName = xmlName;
24 _version = version;
25 }
26
27
28 /***
29 * Gets the Java name of the binding
30 *
31 * @return The Java name
32 */
33 public String getJavaName() {
34 return NamingUtils.initialUpper(NamingUtils.getJavaName(getXmlName()));
35 }
36
37
38 /***
39 * Gets the Java type of the binding
40 *
41 * @return The Java type
42 */
43 public abstract String getJavaType();
44
45
46 /***
47 * Gets the regular expression pattern used for validation
48 *
49 * @return The regular expression pattern
50 */
51 public String getRegexp() {
52 return _regexp;
53 }
54
55
56 /***
57 * Gets the version
58 *
59 * @return The version
60 */
61 public String getVersion() {
62 return _version;
63 }
64
65
66 /***
67 * This will return the XML name of the binding. This should
68 * be the actual XML name of the binding as would be seen in an XML
69 * document.
70 *
71 * @return the XML name of the binding.
72 */
73 public String getXmlName() {
74 return _xmlName;
75 }
76
77
78 /***
79 * Sets the regular expression pattern used for validation
80 *
81 * @param regexp The regular expression pattern
82 */
83 public void setRegexp(String regexp) {
84 _regexp = regexp;
85 }
86 }
This page was automatically generated by Maven