View Javadoc

1   /*
2    * This class was automatically generated with 
3    * <a href="http://www.castor.org">Castor 0.9.5.3</a>, using an XML
4    * Schema.
5    * $Id$
6    */
7   
8   package org.hardcode.juf.update;
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 Feature.
26   * 
27   * @version $Revision$ $Date$
28   */
29  public class Feature implements java.io.Serializable {
30  
31  
32        //--------------------------/
33       //- Class/Member Variables -/
34      //--------------------------/
35  
36      /***
37       * internal content storage
38       */
39      private java.lang.String _content = "";
40  
41  
42        //----------------/
43       //- Constructors -/
44      //----------------/
45  
46      public Feature() {
47          super();
48          setContent("");
49      } //-- org.hardcode.juf.update.Feature()
50  
51  
52        //-----------/
53       //- Methods -/
54      //-----------/
55  
56      /***
57       * Returns the value of field 'content'. The field 'content'
58       * has the following description: internal content storage
59       * 
60       * @return the value of field 'content'.
61       */
62      public java.lang.String getContent()
63      {
64          return this._content;
65      } //-- java.lang.String getContent() 
66  
67      /***
68       * Method isValid
69       */
70      public boolean isValid()
71      {
72          try {
73              validate();
74          }
75          catch (org.exolab.castor.xml.ValidationException vex) {
76              return false;
77          }
78          return true;
79      } //-- boolean isValid() 
80  
81      /***
82       * Method marshal
83       * 
84       * @param out
85       */
86      public void marshal(java.io.Writer out)
87          throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
88      {
89          
90          Marshaller.marshal(this, out);
91      } //-- void marshal(java.io.Writer) 
92  
93      /***
94       * Method marshal
95       * 
96       * @param handler
97       */
98      public void marshal(org.xml.sax.ContentHandler handler)
99          throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
100     {
101         
102         Marshaller.marshal(this, handler);
103     } //-- void marshal(org.xml.sax.ContentHandler) 
104 
105     /***
106      * Sets the value of field 'content'. The field 'content' has
107      * the following description: internal content storage
108      * 
109      * @param content the value of field 'content'.
110      */
111     public void setContent(java.lang.String content)
112     {
113         this._content = content;
114     } //-- void setContent(java.lang.String) 
115 
116     /***
117      * Method unmarshal
118      * 
119      * @param reader
120      */
121     public static java.lang.Object unmarshal(java.io.Reader reader)
122         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
123     {
124         return (org.hardcode.juf.update.Feature) Unmarshaller.unmarshal(org.hardcode.juf.update.Feature.class, reader);
125     } //-- java.lang.Object unmarshal(java.io.Reader) 
126 
127     /***
128      * Method validate
129      */
130     public void validate()
131         throws org.exolab.castor.xml.ValidationException
132     {
133         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
134         validator.validate(this);
135     } //-- void validate() 
136 
137 }