View Javadoc

1   /*
2    * This class was automatically generated with 
3    * <a href="http://www.castor.org">Castor 1.1.2.1</a>, using an XML
4    * Schema.
5    * $Id$
6    */
7   
8   package org.sourceforge.mbeanmonitoring.report.castor;
9   
10    //---------------------------------/
11   //- Imported classes and packages -/
12  //---------------------------------/
13  
14  import org.exolab.castor.xml.Marshaller;
15  import org.exolab.castor.xml.Unmarshaller;
16  
17  /**
18   * Class Element.
19   * 
20   * @version $Revision$ $Date$
21   */
22  public class Element implements java.io.Serializable {
23  
24  
25        //--------------------------/
26       //- Class/Member Variables -/
27      //--------------------------/
28  
29      /**
30       * Field _name.
31       */
32      private java.lang.String _name;
33  
34  
35        //----------------/
36       //- Constructors -/
37      //----------------/
38  
39      public Element() {
40          super();
41      }
42  
43  
44        //-----------/
45       //- Methods -/
46      //-----------/
47  
48      /**
49       * Returns the value of field 'name'.
50       * 
51       * @return the value of field 'Name'.
52       */
53      public java.lang.String getName(
54      ) {
55          return this._name;
56      }
57  
58      /**
59       * Method isValid.
60       * 
61       * @return true if this object is valid according to the schema
62       */
63      public boolean isValid(
64      ) {
65          try {
66              validate();
67          } catch (org.exolab.castor.xml.ValidationException vex) {
68              return false;
69          }
70          return true;
71      }
72  
73      /**
74       * 
75       * 
76       * @param out
77       * @throws org.exolab.castor.xml.MarshalException if object is
78       * null or if any SAXException is thrown during marshaling
79       * @throws org.exolab.castor.xml.ValidationException if this
80       * object is an invalid instance according to the schema
81       */
82      public void marshal(
83              final java.io.Writer out)
84      throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
85          Marshaller.marshal(this, out);
86      }
87  
88      /**
89       * 
90       * 
91       * @param handler
92       * @throws java.io.IOException if an IOException occurs during
93       * marshaling
94       * @throws org.exolab.castor.xml.ValidationException if this
95       * object is an invalid instance according to the schema
96       * @throws org.exolab.castor.xml.MarshalException if object is
97       * null or if any SAXException is thrown during marshaling
98       */
99      public void marshal(
100             final org.xml.sax.ContentHandler handler)
101     throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
102         Marshaller.marshal(this, handler);
103     }
104 
105     /**
106      * Sets the value of field 'name'.
107      * 
108      * @param name the value of field 'name'.
109      */
110     public void setName(
111             final java.lang.String name) {
112         this._name = name;
113     }
114 
115     /**
116      * Method unmarshal.
117      * 
118      * @param reader
119      * @throws org.exolab.castor.xml.MarshalException if object is
120      * null or if any SAXException is thrown during marshaling
121      * @throws org.exolab.castor.xml.ValidationException if this
122      * object is an invalid instance according to the schema
123      * @return the unmarshaled
124      * org.sourceforge.mbeanmonitoring.report.castor.Element
125      */
126     public static org.sourceforge.mbeanmonitoring.report.castor.Element unmarshal(
127             final java.io.Reader reader)
128     throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
129         return (org.sourceforge.mbeanmonitoring.report.castor.Element) Unmarshaller.unmarshal(org.sourceforge.mbeanmonitoring.report.castor.Element.class, reader);
130     }
131 
132     /**
133      * 
134      * 
135      * @throws org.exolab.castor.xml.ValidationException if this
136      * object is an invalid instance according to the schema
137      */
138     public void validate(
139     )
140     throws org.exolab.castor.xml.ValidationException {
141         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
142         validator.validate(this);
143     }
144 
145 }