1
2
3
4
5
6
7
8 package fr.in2p3.jsaga.engine.schema.config;
9
10
11
12
13
14 import java.io.IOException;
15 import java.io.Reader;
16 import java.io.Serializable;
17 import java.io.Writer;
18 import org.exolab.castor.xml.MarshalException;
19 import org.exolab.castor.xml.Marshaller;
20 import org.exolab.castor.xml.Unmarshaller;
21 import org.exolab.castor.xml.ValidationException;
22 import org.xml.sax.ContentHandler;
23
24
25
26
27
28
29 public class Context extends fr.in2p3.jsaga.engine.schema.config.ObjectType
30 implements java.io.Serializable
31 {
32
33
34
35
36
37
38
39
40
41 private java.lang.String _name;
42
43
44
45
46 private java.lang.String _type;
47
48
49
50
51 private java.lang.String _impl;
52
53
54
55
56 private java.lang.String _usage;
57
58
59
60
61
62
63 public Context()
64 {
65 super();
66 }
67
68
69
70
71
72
73
74
75
76
77
78
79 public java.lang.String getImpl()
80 {
81 return this._impl;
82 }
83
84
85
86
87
88
89
90 public java.lang.String getName()
91 {
92 return this._name;
93 }
94
95
96
97
98
99
100
101 public java.lang.String getType()
102 {
103 return this._type;
104 }
105
106
107
108
109
110
111
112 public java.lang.String getUsage()
113 {
114 return this._usage;
115 }
116
117
118
119
120
121
122
123
124 public boolean isValid()
125 {
126 try {
127 validate();
128 }
129 catch (org.exolab.castor.xml.ValidationException vex) {
130 return false;
131 }
132 return true;
133 }
134
135
136
137
138
139
140
141
142 public void marshal(java.io.Writer out)
143 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
144 {
145
146 Marshaller.marshal(this, out);
147 }
148
149
150
151
152
153
154
155
156 public void marshal(org.xml.sax.ContentHandler handler)
157 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
158 {
159
160 Marshaller.marshal(this, handler);
161 }
162
163
164
165
166
167
168 public void setImpl(java.lang.String impl)
169 {
170 this._impl = impl;
171 }
172
173
174
175
176
177
178 public void setName(java.lang.String name)
179 {
180 this._name = name;
181 }
182
183
184
185
186
187
188 public void setType(java.lang.String type)
189 {
190 this._type = type;
191 }
192
193
194
195
196
197
198 public void setUsage(java.lang.String usage)
199 {
200 this._usage = usage;
201 }
202
203
204
205
206
207
208
209
210
211 public static java.lang.Object unmarshal(java.io.Reader reader)
212 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
213 {
214 return (fr.in2p3.jsaga.engine.schema.config.Context) Unmarshaller.unmarshal(fr.in2p3.jsaga.engine.schema.config.Context.class, reader);
215 }
216
217
218
219
220
221 public void validate()
222 throws org.exolab.castor.xml.ValidationException
223 {
224 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
225 validator.validate(this);
226 }
227
228 }