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.engine.schema.config;
9   
10    //---------------------------------/
11   //- Imported classes and packages -/
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   * Class MonitorService.
26   * 
27   * @version $Revision$ $Date$
28   */
29  public class MonitorService extends fr.in2p3.jsaga.engine.schema.config.ObjectType 
30  implements java.io.Serializable
31  {
32  
33  
34        //--------------------------/
35       //- Class/Member Variables -/
36      //--------------------------/
37  
38      /**
39       * Field _impl
40       */
41      private java.lang.String _impl;
42  
43      /**
44       * Field _url
45       */
46      private java.lang.String _url;
47  
48  
49        //----------------/
50       //- Constructors -/
51      //----------------/
52  
53      public MonitorService() 
54       {
55          super();
56      } //-- fr.in2p3.jsaga.engine.schema.config.MonitorService()
57  
58  
59        //-----------/
60       //- Methods -/
61      //-----------/
62  
63      /**
64       * Returns the value of field 'impl'.
65       * 
66       * @return String
67       * @return the value of field 'impl'.
68       */
69      public java.lang.String getImpl()
70      {
71          return this._impl;
72      } //-- java.lang.String getImpl() 
73  
74      /**
75       * Returns the value of field 'url'.
76       * 
77       * @return String
78       * @return the value of field 'url'.
79       */
80      public java.lang.String getUrl()
81      {
82          return this._url;
83      } //-- java.lang.String getUrl() 
84  
85      /**
86       * Method isValid
87       * 
88       * 
89       * 
90       * @return boolean
91       */
92      public boolean isValid()
93      {
94          try {
95              validate();
96          }
97          catch (org.exolab.castor.xml.ValidationException vex) {
98              return false;
99          }
100         return true;
101     } //-- boolean isValid() 
102 
103     /**
104      * Method marshal
105      * 
106      * 
107      * 
108      * @param out
109      */
110     public void marshal(java.io.Writer out)
111         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
112     {
113         
114         Marshaller.marshal(this, out);
115     } //-- void marshal(java.io.Writer) 
116 
117     /**
118      * Method marshal
119      * 
120      * 
121      * 
122      * @param handler
123      */
124     public void marshal(org.xml.sax.ContentHandler handler)
125         throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
126     {
127         
128         Marshaller.marshal(this, handler);
129     } //-- void marshal(org.xml.sax.ContentHandler) 
130 
131     /**
132      * Sets the value of field 'impl'.
133      * 
134      * @param impl the value of field 'impl'.
135      */
136     public void setImpl(java.lang.String impl)
137     {
138         this._impl = impl;
139     } //-- void setImpl(java.lang.String) 
140 
141     /**
142      * Sets the value of field 'url'.
143      * 
144      * @param url the value of field 'url'.
145      */
146     public void setUrl(java.lang.String url)
147     {
148         this._url = url;
149     } //-- void setUrl(java.lang.String) 
150 
151     /**
152      * Method unmarshal
153      * 
154      * 
155      * 
156      * @param reader
157      * @return Object
158      */
159     public static java.lang.Object unmarshal(java.io.Reader reader)
160         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
161     {
162         return (fr.in2p3.jsaga.engine.schema.config.MonitorService) Unmarshaller.unmarshal(fr.in2p3.jsaga.engine.schema.config.MonitorService.class, reader);
163     } //-- java.lang.Object unmarshal(java.io.Reader) 
164 
165     /**
166      * Method validate
167      * 
168      */
169     public void validate()
170         throws org.exolab.castor.xml.ValidationException
171     {
172         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
173         validator.validate(this);
174     } //-- void validate() 
175 
176 }