1
2
3
4
5
6
7
8 package org.exolab.castor.builder.binding.xml.descriptors;
9
10
11
12
13
14 import org.exolab.castor.builder.binding.xml.AutomaticNamingType;
15
16
17
18
19
20
21 public class AutomaticNamingTypeDescriptor extends org.exolab.castor.xml.util.XMLClassDescriptorImpl {
22
23
24
25
26
27
28
29
30
31 private boolean _elementDefinition;
32
33
34
35
36 private java.lang.String _nsPrefix;
37
38
39
40
41 private java.lang.String _nsURI;
42
43
44
45
46 private java.lang.String _xmlName;
47
48
49
50
51 private org.exolab.castor.xml.XMLFieldDescriptor _identity;
52
53
54
55
56
57
58 public AutomaticNamingTypeDescriptor() {
59 super();
60 _nsURI = "http://www.castor.org/SourceGenerator/Binding";
61 _xmlName = "automaticNamingType";
62 _elementDefinition = false;
63
64
65 setCompositorAsSequence();
66 org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;
67 org.exolab.castor.mapping.FieldHandler handler = null;
68 org.exolab.castor.xml.FieldValidator fieldValidator = null;
69
70
71
72
73
74 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.exolab.castor.builder.binding.xml.Forces.class, "_forces", "forces", org.exolab.castor.xml.NodeType.Element);
75 handler = new org.exolab.castor.xml.XMLFieldHandler() {
76 public java.lang.Object getValue( java.lang.Object object )
77 throws IllegalStateException
78 {
79 AutomaticNamingType target = (AutomaticNamingType) object;
80 return target.getForces();
81 }
82 public void setValue( java.lang.Object object, java.lang.Object value)
83 throws IllegalStateException, IllegalArgumentException
84 {
85 try {
86 AutomaticNamingType target = (AutomaticNamingType) object;
87 target.setForces( (org.exolab.castor.builder.binding.xml.Forces) value);
88 } catch (java.lang.Exception ex) {
89 throw new IllegalStateException(ex.toString());
90 }
91 }
92 public java.lang.Object newInstance(java.lang.Object parent) {
93 return new org.exolab.castor.builder.binding.xml.Forces();
94 }
95 };
96 desc.setSchemaType("org.exolab.castor.builder.binding.xml.Forces");
97 desc.setHandler(handler);
98 desc.setNameSpaceURI("http://www.castor.org/SourceGenerator/Binding");
99 desc.setMultivalued(false);
100 addFieldDescriptor(desc);
101 addSequenceElement(desc);
102
103
104 fieldValidator = new org.exolab.castor.xml.FieldValidator();
105 {
106 }
107 desc.setValidator(fieldValidator);
108
109 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.exolab.castor.builder.binding.xml.Excludes.class, "_excludes", "excludes", org.exolab.castor.xml.NodeType.Element);
110 handler = new org.exolab.castor.xml.XMLFieldHandler() {
111 public java.lang.Object getValue( java.lang.Object object )
112 throws IllegalStateException
113 {
114 AutomaticNamingType target = (AutomaticNamingType) object;
115 return target.getExcludes();
116 }
117 public void setValue( java.lang.Object object, java.lang.Object value)
118 throws IllegalStateException, IllegalArgumentException
119 {
120 try {
121 AutomaticNamingType target = (AutomaticNamingType) object;
122 target.setExcludes( (org.exolab.castor.builder.binding.xml.Excludes) value);
123 } catch (java.lang.Exception ex) {
124 throw new IllegalStateException(ex.toString());
125 }
126 }
127 public java.lang.Object newInstance(java.lang.Object parent) {
128 return new org.exolab.castor.builder.binding.xml.Excludes();
129 }
130 };
131 desc.setSchemaType("org.exolab.castor.builder.binding.xml.Excludes");
132 desc.setHandler(handler);
133 desc.setNameSpaceURI("http://www.castor.org/SourceGenerator/Binding");
134 desc.setMultivalued(false);
135 addFieldDescriptor(desc);
136 addSequenceElement(desc);
137
138
139 fieldValidator = new org.exolab.castor.xml.FieldValidator();
140 {
141 }
142 desc.setValidator(fieldValidator);
143 }
144
145
146
147
148
149
150
151
152
153
154
155 public org.exolab.castor.mapping.AccessMode getAccessMode(
156 ) {
157 return null;
158 }
159
160
161
162
163
164
165
166 public org.exolab.castor.mapping.FieldDescriptor getIdentity(
167 ) {
168 return _identity;
169 }
170
171
172
173
174
175
176 public java.lang.Class getJavaClass(
177 ) {
178 return org.exolab.castor.builder.binding.xml.AutomaticNamingType.class;
179 }
180
181
182
183
184
185
186 public java.lang.String getNameSpacePrefix(
187 ) {
188 return _nsPrefix;
189 }
190
191
192
193
194
195
196
197 public java.lang.String getNameSpaceURI(
198 ) {
199 return _nsURI;
200 }
201
202
203
204
205
206
207
208 public org.exolab.castor.xml.TypeValidator getValidator(
209 ) {
210 return this;
211 }
212
213
214
215
216
217
218 public java.lang.String getXMLName(
219 ) {
220 return _xmlName;
221 }
222
223
224
225
226
227
228
229
230 public boolean isElementDefinition(
231 ) {
232 return _elementDefinition;
233 }
234
235 }