1
2
3
4
5
6
7
8 package fr.in2p3.jsaga.adaptor.schema.job.emulator.config;
9
10
11
12
13
14 import org.exolab.castor.mapping.AccessMode;
15 import org.exolab.castor.xml.TypeValidator;
16 import org.exolab.castor.xml.XMLFieldDescriptor;
17 import org.exolab.castor.xml.validators.*;
18
19
20
21
22
23
24 public class JobEmulatorConfigDescriptor extends org.exolab.castor.xml.util.XMLClassDescriptorImpl {
25
26
27
28
29
30
31
32
33
34 private java.lang.String nsPrefix;
35
36
37
38
39 private java.lang.String nsURI;
40
41
42
43
44 private java.lang.String xmlName;
45
46
47
48
49 private org.exolab.castor.xml.XMLFieldDescriptor identity;
50
51
52
53
54
55
56 public JobEmulatorConfigDescriptor()
57 {
58 super();
59 nsURI = "http://www.in2p3.fr/jsaga/job-emulator-config";
60 xmlName = "job-emulator-config";
61
62
63 setCompositorAsSequence();
64 org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;
65 org.exolab.castor.mapping.FieldHandler handler = null;
66 org.exolab.castor.xml.FieldValidator fieldValidator = null;
67
68
69
70
71
72 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(fr.in2p3.jsaga.adaptor.schema.job.emulator.config.Server.class, "_serverList", "server", org.exolab.castor.xml.NodeType.Element);
73 handler = new org.exolab.castor.xml.XMLFieldHandler() {
74 public java.lang.Object getValue( java.lang.Object object )
75 throws IllegalStateException
76 {
77 JobEmulatorConfig target = (JobEmulatorConfig) object;
78 return target.getServer();
79 }
80 public void setValue( java.lang.Object object, java.lang.Object value)
81 throws IllegalStateException, IllegalArgumentException
82 {
83 try {
84 JobEmulatorConfig target = (JobEmulatorConfig) object;
85 target.addServer( (fr.in2p3.jsaga.adaptor.schema.job.emulator.config.Server) value);
86 }
87 catch (java.lang.Exception ex) {
88 throw new IllegalStateException(ex.toString());
89 }
90 }
91 public java.lang.Object newInstance( java.lang.Object parent ) {
92 return new fr.in2p3.jsaga.adaptor.schema.job.emulator.config.Server();
93 }
94 };
95 desc.setHandler(handler);
96 desc.setNameSpaceURI("http://www.in2p3.fr/jsaga/job-emulator-config");
97 desc.setMultivalued(true);
98 addFieldDescriptor(desc);
99
100
101 fieldValidator = new org.exolab.castor.xml.FieldValidator();
102 fieldValidator.setMinOccurs(0);
103 {
104 }
105 desc.setValidator(fieldValidator);
106 }
107
108
109
110
111
112
113
114
115
116
117
118
119
120 public org.exolab.castor.mapping.AccessMode getAccessMode()
121 {
122 return null;
123 }
124
125
126
127
128
129
130
131
132 public org.exolab.castor.mapping.ClassDescriptor getExtends()
133 {
134 return null;
135 }
136
137
138
139
140
141
142
143
144 public org.exolab.castor.mapping.FieldDescriptor getIdentity()
145 {
146 return identity;
147 }
148
149
150
151
152
153
154
155
156 public java.lang.Class getJavaClass()
157 {
158 return fr.in2p3.jsaga.adaptor.schema.job.emulator.config.JobEmulatorConfig.class;
159 }
160
161
162
163
164
165
166
167
168 public java.lang.String getNameSpacePrefix()
169 {
170 return nsPrefix;
171 }
172
173
174
175
176
177
178
179
180 public java.lang.String getNameSpaceURI()
181 {
182 return nsURI;
183 }
184
185
186
187
188
189
190
191
192 public org.exolab.castor.xml.TypeValidator getValidator()
193 {
194 return this;
195 }
196
197
198
199
200
201
202
203
204 public java.lang.String getXMLName()
205 {
206 return xmlName;
207 }
208
209 }