View Javadoc

1   /*
2    * This class was automatically generated with 
3    * <a href="http://www.castor.org">Castor 0.9.7</a>, using an XML
4    * Schema.
5    * $Id$
6    */
7   
8   package fr.in2p3.jsaga.adaptor.schema.job.emulator;
9   
10    //---------------------------------/
11   //- Imported classes and packages -/
12  //---------------------------------/
13  
14  import fr.in2p3.jsaga.adaptor.schema.job.emulator.types.JobStatusType;
15  import java.io.IOException;
16  import java.io.Reader;
17  import java.io.Serializable;
18  import java.io.Writer;
19  import java.util.Date;
20  import org.exolab.castor.xml.MarshalException;
21  import org.exolab.castor.xml.Marshaller;
22  import org.exolab.castor.xml.Unmarshaller;
23  import org.exolab.castor.xml.ValidationException;
24  import org.xml.sax.ContentHandler;
25  
26  /**
27   * Class Job.
28   * 
29   * @version $Revision$ $Date$
30   */
31  public class Job implements java.io.Serializable {
32  
33  
34        //--------------------------/
35       //- Class/Member Variables -/
36      //--------------------------/
37  
38      /**
39       * Field _id
40       */
41      private java.lang.String _id;
42  
43      /**
44       * Field _owner
45       */
46      private java.lang.String _owner;
47  
48      /**
49       * Field _name
50       */
51      private java.lang.String _name;
52  
53      /**
54       * Field _status
55       */
56      private fr.in2p3.jsaga.adaptor.schema.job.emulator.types.JobStatusType _status;
57  
58      /**
59       * Field _queueTime
60       */
61      private java.util.Date _queueTime;
62  
63      /**
64       * Field _startTime
65       */
66      private java.util.Date _startTime;
67  
68      /**
69       * Field _endTime
70       */
71      private java.util.Date _endTime;
72  
73  
74        //----------------/
75       //- Constructors -/
76      //----------------/
77  
78      public Job() 
79       {
80          super();
81      } //-- fr.in2p3.jsaga.adaptor.schema.job.emulator.Job()
82  
83  
84        //-----------/
85       //- Methods -/
86      //-----------/
87  
88      /**
89       * Returns the value of field 'endTime'.
90       * 
91       * @return Date
92       * @return the value of field 'endTime'.
93       */
94      public java.util.Date getEndTime()
95      {
96          return this._endTime;
97      } //-- java.util.Date getEndTime() 
98  
99      /**
100      * Returns the value of field 'id'.
101      * 
102      * @return String
103      * @return the value of field 'id'.
104      */
105     public java.lang.String getId()
106     {
107         return this._id;
108     } //-- java.lang.String getId() 
109 
110     /**
111      * Returns the value of field 'name'.
112      * 
113      * @return String
114      * @return the value of field 'name'.
115      */
116     public java.lang.String getName()
117     {
118         return this._name;
119     } //-- java.lang.String getName() 
120 
121     /**
122      * Returns the value of field 'owner'.
123      * 
124      * @return String
125      * @return the value of field 'owner'.
126      */
127     public java.lang.String getOwner()
128     {
129         return this._owner;
130     } //-- java.lang.String getOwner() 
131 
132     /**
133      * Returns the value of field 'queueTime'.
134      * 
135      * @return Date
136      * @return the value of field 'queueTime'.
137      */
138     public java.util.Date getQueueTime()
139     {
140         return this._queueTime;
141     } //-- java.util.Date getQueueTime() 
142 
143     /**
144      * Returns the value of field 'startTime'.
145      * 
146      * @return Date
147      * @return the value of field 'startTime'.
148      */
149     public java.util.Date getStartTime()
150     {
151         return this._startTime;
152     } //-- java.util.Date getStartTime() 
153 
154     /**
155      * Returns the value of field 'status'.
156      * 
157      * @return JobStatusType
158      * @return the value of field 'status'.
159      */
160     public fr.in2p3.jsaga.adaptor.schema.job.emulator.types.JobStatusType getStatus()
161     {
162         return this._status;
163     } //-- fr.in2p3.jsaga.adaptor.schema.job.emulator.types.JobStatusType getStatus() 
164 
165     /**
166      * Method isValid
167      * 
168      * 
169      * 
170      * @return boolean
171      */
172     public boolean isValid()
173     {
174         try {
175             validate();
176         }
177         catch (org.exolab.castor.xml.ValidationException vex) {
178             return false;
179         }
180         return true;
181     } //-- boolean isValid() 
182 
183     /**
184      * Method marshal
185      * 
186      * 
187      * 
188      * @param out
189      */
190     public void marshal(java.io.Writer out)
191         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
192     {
193         
194         Marshaller.marshal(this, out);
195     } //-- void marshal(java.io.Writer) 
196 
197     /**
198      * Method marshal
199      * 
200      * 
201      * 
202      * @param handler
203      */
204     public void marshal(org.xml.sax.ContentHandler handler)
205         throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
206     {
207         
208         Marshaller.marshal(this, handler);
209     } //-- void marshal(org.xml.sax.ContentHandler) 
210 
211     /**
212      * Sets the value of field 'endTime'.
213      * 
214      * @param endTime the value of field 'endTime'.
215      */
216     public void setEndTime(java.util.Date endTime)
217     {
218         this._endTime = endTime;
219     } //-- void setEndTime(java.util.Date) 
220 
221     /**
222      * Sets the value of field 'id'.
223      * 
224      * @param id the value of field 'id'.
225      */
226     public void setId(java.lang.String id)
227     {
228         this._id = id;
229     } //-- void setId(java.lang.String) 
230 
231     /**
232      * Sets the value of field 'name'.
233      * 
234      * @param name the value of field 'name'.
235      */
236     public void setName(java.lang.String name)
237     {
238         this._name = name;
239     } //-- void setName(java.lang.String) 
240 
241     /**
242      * Sets the value of field 'owner'.
243      * 
244      * @param owner the value of field 'owner'.
245      */
246     public void setOwner(java.lang.String owner)
247     {
248         this._owner = owner;
249     } //-- void setOwner(java.lang.String) 
250 
251     /**
252      * Sets the value of field 'queueTime'.
253      * 
254      * @param queueTime the value of field 'queueTime'.
255      */
256     public void setQueueTime(java.util.Date queueTime)
257     {
258         this._queueTime = queueTime;
259     } //-- void setQueueTime(java.util.Date) 
260 
261     /**
262      * Sets the value of field 'startTime'.
263      * 
264      * @param startTime the value of field 'startTime'.
265      */
266     public void setStartTime(java.util.Date startTime)
267     {
268         this._startTime = startTime;
269     } //-- void setStartTime(java.util.Date) 
270 
271     /**
272      * Sets the value of field 'status'.
273      * 
274      * @param status the value of field 'status'.
275      */
276     public void setStatus(fr.in2p3.jsaga.adaptor.schema.job.emulator.types.JobStatusType status)
277     {
278         this._status = status;
279     } //-- void setStatus(fr.in2p3.jsaga.adaptor.schema.job.emulator.types.JobStatusType) 
280 
281     /**
282      * Method unmarshal
283      * 
284      * 
285      * 
286      * @param reader
287      * @return Object
288      */
289     public static java.lang.Object unmarshal(java.io.Reader reader)
290         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
291     {
292         return (fr.in2p3.jsaga.adaptor.schema.job.emulator.Job) Unmarshaller.unmarshal(fr.in2p3.jsaga.adaptor.schema.job.emulator.Job.class, reader);
293     } //-- java.lang.Object unmarshal(java.io.Reader) 
294 
295     /**
296      * Method validate
297      * 
298      */
299     public void validate()
300         throws org.exolab.castor.xml.ValidationException
301     {
302         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
303         validator.validate(this);
304     } //-- void validate() 
305 
306 }