Merge branch 'feature/JAL-3063JAXB' into feature/JAL-3063jaxbNoCastor
[jalview.git] / src / jalview / schemabinding / version2 / SequenceSetProperties.java
1 /*
2  * This class was automatically generated with 
3  * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
4  * Schema.
5  * $Id$
6  */
7
8 package jalview.schemabinding.version2;
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 SequenceSetProperties.
19  * 
20  * @version $Revision$ $Date$
21  */
22 public class SequenceSetProperties implements java.io.Serializable
23 {
24
25   // --------------------------/
26   // - Class/Member Variables -/
27   // --------------------------/
28
29   /**
30    * Field _key.
31    */
32   private java.lang.String _key;
33
34   /**
35    * Field _value.
36    */
37   private java.lang.String _value;
38
39   // ----------------/
40   // - Constructors -/
41   // ----------------/
42
43   public SequenceSetProperties()
44   {
45     super();
46   }
47
48   // -----------/
49   // - Methods -/
50   // -----------/
51
52   /**
53    * Returns the value of field 'key'.
54    * 
55    * @return the value of field 'Key'.
56    */
57   public java.lang.String getKey()
58   {
59     return this._key;
60   }
61
62   /**
63    * Returns the value of field 'value'.
64    * 
65    * @return the value of field 'Value'.
66    */
67   public java.lang.String getValue()
68   {
69     return this._value;
70   }
71
72   /**
73    * Method isValid.
74    * 
75    * @return true if this object is valid according to the schema
76    */
77   public boolean isValid()
78   {
79     try
80     {
81       validate();
82     } catch (org.exolab.castor.xml.ValidationException vex)
83     {
84       return false;
85     }
86     return true;
87   }
88
89   /**
90    * 
91    * 
92    * @param out
93    * @throws org.exolab.castor.xml.MarshalException
94    *           if object is null or if any SAXException is thrown during
95    *           marshaling
96    * @throws org.exolab.castor.xml.ValidationException
97    *           if this object is an invalid instance according to the schema
98    */
99   public void marshal(final java.io.Writer out)
100           throws org.exolab.castor.xml.MarshalException,
101           org.exolab.castor.xml.ValidationException
102   {
103     Marshaller.marshal(this, out);
104   }
105
106   /**
107    * 
108    * 
109    * @param handler
110    * @throws java.io.IOException
111    *           if an IOException occurs during marshaling
112    * @throws org.exolab.castor.xml.ValidationException
113    *           if this object is an invalid instance according to the schema
114    * @throws org.exolab.castor.xml.MarshalException
115    *           if object is null or if any SAXException is thrown during
116    *           marshaling
117    */
118   public void marshal(final org.xml.sax.ContentHandler handler)
119           throws java.io.IOException,
120           org.exolab.castor.xml.MarshalException,
121           org.exolab.castor.xml.ValidationException
122   {
123     Marshaller.marshal(this, handler);
124   }
125
126   /**
127    * Sets the value of field 'key'.
128    * 
129    * @param key
130    *          the value of field 'key'.
131    */
132   public void setKey(final java.lang.String key)
133   {
134     this._key = key;
135   }
136
137   /**
138    * Sets the value of field 'value'.
139    * 
140    * @param value
141    *          the value of field 'value'.
142    */
143   public void setValue(final java.lang.String value)
144   {
145     this._value = value;
146   }
147
148   /**
149    * Method unmarshal.
150    * 
151    * @param reader
152    * @throws org.exolab.castor.xml.MarshalException
153    *           if object is null or if any SAXException is thrown during
154    *           marshaling
155    * @throws org.exolab.castor.xml.ValidationException
156    *           if this object is an invalid instance according to the schema
157    * @return the unmarshaled
158    *         jalview.schemabinding.version2.SequenceSetProperties
159    */
160   public static jalview.schemabinding.version2.SequenceSetProperties unmarshal(
161           final java.io.Reader reader)
162           throws org.exolab.castor.xml.MarshalException,
163           org.exolab.castor.xml.ValidationException
164   {
165     return (jalview.schemabinding.version2.SequenceSetProperties) Unmarshaller
166             .unmarshal(
167                     jalview.schemabinding.version2.SequenceSetProperties.class,
168                     reader);
169   }
170
171   /**
172    * 
173    * 
174    * @throws org.exolab.castor.xml.ValidationException
175    *           if this object is an invalid instance according to the schema
176    */
177   public void validate() throws org.exolab.castor.xml.ValidationException
178   {
179     org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
180     validator.validate(this);
181   }
182
183 }