1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.geronimo.ews.ws4j2ee.context.wsdl;
18
19 import javax.xml.namespace.QName;
20
21 /***
22 * <p>This is basically the org.apache.axis.ElementDecl (code cut and pasted).
23 * this represent a <element> entry in the schema.</p>
24 */
25 public class ElementInfo {
26
27 private QName name;
28
29 private QName type;
30
31 private int minOccurs = 0;
32 private int maxOccurs = 1;
33
34 private boolean nillable = false;
35
36
37
38 private boolean anyElement = false;
39
40 public ElementInfo() {
41 }
42
43 public ElementInfo(QName name, QName type) {
44 this.type = type;
45 this.name = name;
46 }
47
48 public QName getType() {
49 return type;
50 }
51
52 public void setType(QName type) {
53 this.type = type;
54 }
55
56 public QName getName() {
57 return name;
58 }
59
60 public void setName(QName name) {
61 this.name = name;
62 }
63
64 public boolean getMinOccursIs0() {
65 return (minOccurs == 0);
66 }
67
68 public void setNillable(boolean nillable) {
69 this.nillable = nillable;
70 }
71
72 public boolean getNillable() {
73 return nillable;
74 }
75
76 /***
77 * @return
78 */
79 public int getMaxOccurs() {
80 return maxOccurs;
81 }
82
83 /***
84 * @return
85 */
86 public int getMinOccurs() {
87 return minOccurs;
88 }
89
90 /***
91 * @param i
92 */
93 public void setMaxOccurs(int i) {
94 maxOccurs = i;
95 }
96
97 /***
98 * @param i
99 */
100 public void setMinOccurs(int i) {
101 minOccurs = i;
102 }
103
104 }