1 package xdoclet.sdk.xgg.binding;
2
3
4 /***
5 * Interface to be implemented by element children
6 *
7 *
8 * @author <a href="mailto:aslak.hellesoy at bekk.no">Aslak Hellesøy</a>
9 * @author <a href="mailto:letiemble at users.sourceforge.net">Laurent Etiemble</a>
10 * @created 7 mai 2003
11 * @version $Revision: 1.4 $
12 */
13 public interface Child {
14 /***
15 * Gets the XML name of the child
16 *
17 * @return The XML name
18 */
19 String getXmlName();
20
21
22 /***
23 * Gets the Java name of the child
24 *
25 * @return The Java name
26 */
27 String getJavaName();
28
29
30 /***
31 * Gets the Java type of the child
32 *
33 * @return The Java type
34 */
35 String getJavaType();
36
37
38 /***
39 * Gets the version
40 *
41 * @return The version
42 */
43 String getVersion();
44
45
46 /***
47 * Returns whether or not this sub element is an attribute
48 *
49 * @return True if it is an attribute
50 */
51 boolean isAttribute();
52
53
54 /***
55 * Gets the container element of the child
56 *
57 * @return The container element
58 */
59 Element getContainer();
60
61
62 /***
63 * Gets the cardinality related to the child
64 *
65 * @return The cardinality holder
66 */
67 Cardinality getCardinality();
68
69
70 /***
71 * Returns whether or not this sub element has a many cardinality
72 *
73 * @return True if it has a many cardinality
74 */
75 boolean isMany();
76
77 /***
78 * Returns an id based on the class name and the xml name.
79 * Used to distinguish SubElement and Attribute with same xml name.
80 * @return
81 */
82 String getId();
83 }
This page was automatically generated by Maven