2 * This class was automatically generated with
3 * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
8 package jalview.schemabinding.version2;
10 //---------------------------------/
11 //- Imported classes and packages -/
12 //---------------------------------/
14 import org.exolab.castor.xml.Marshaller;
15 import org.exolab.castor.xml.Unmarshaller;
18 * Class SecondaryStructure.
20 * @version $Revision$ $Date$
22 public class SecondaryStructure implements java.io.Serializable
25 // --------------------------/
26 // - Class/Member Variables -/
27 // --------------------------/
32 private java.lang.String _title;
35 * id attribute of Annotation in vamsasModel for the secondary structure
36 * annotation shown in the viewer
39 private java.lang.String _annotationId;
42 * if true the RNA structure is shown with gaps, if false without
45 private boolean _gapped;
48 * keeps track of state for field: _gapped
50 private boolean _has_gapped;
53 * name of the project jar entry that holds the VARNA viewer state for the
57 private java.lang.String _viewerState;
63 public SecondaryStructure()
74 public void deleteGapped()
76 this._has_gapped = false;
80 * Returns the value of field 'annotationId'. The field 'annotationId' has the
81 * following description: id attribute of Annotation in vamsasModel for the
82 * secondary structure annotation shown in the viewer
85 * @return the value of field 'AnnotationId'.
87 public java.lang.String getAnnotationId()
89 return this._annotationId;
93 * Returns the value of field 'gapped'. The field 'gapped' has the following
94 * description: if true the RNA structure is shown with gaps, if false without
97 * @return the value of field 'Gapped'.
99 public boolean getGapped()
105 * Returns the value of field 'title'.
107 * @return the value of field 'Title'.
109 public java.lang.String getTitle()
115 * Returns the value of field 'viewerState'. The field 'viewerState' has the
116 * following description: name of the project jar entry that holds the VARNA
117 * viewer state for the structure
120 * @return the value of field 'ViewerState'.
122 public java.lang.String getViewerState()
124 return this._viewerState;
130 * @return true if at least one Gapped has been added
132 public boolean hasGapped()
134 return this._has_gapped;
138 * Returns the value of field 'gapped'. The field 'gapped' has the following
139 * description: if true the RNA structure is shown with gaps, if false without
142 * @return the value of field 'Gapped'.
144 public boolean isGapped()
152 * @return true if this object is valid according to the schema
154 public boolean isValid()
159 } catch (org.exolab.castor.xml.ValidationException vex)
170 * @throws org.exolab.castor.xml.MarshalException
171 * if object is null or if any SAXException is thrown during
173 * @throws org.exolab.castor.xml.ValidationException
174 * if this object is an invalid instance according to the schema
176 public void marshal(final java.io.Writer out)
177 throws org.exolab.castor.xml.MarshalException,
178 org.exolab.castor.xml.ValidationException
180 Marshaller.marshal(this, out);
187 * @throws java.io.IOException
188 * if an IOException occurs during marshaling
189 * @throws org.exolab.castor.xml.ValidationException
190 * if this object is an invalid instance according to the schema
191 * @throws org.exolab.castor.xml.MarshalException
192 * if object is null or if any SAXException is thrown during
195 public void marshal(final org.xml.sax.ContentHandler handler)
196 throws java.io.IOException,
197 org.exolab.castor.xml.MarshalException,
198 org.exolab.castor.xml.ValidationException
200 Marshaller.marshal(this, handler);
204 * Sets the value of field 'annotationId'. The field 'annotationId' has the
205 * following description: id attribute of Annotation in vamsasModel for the
206 * secondary structure annotation shown in the viewer
209 * @param annotationId
210 * the value of field 'annotationId'.
212 public void setAnnotationId(final java.lang.String annotationId)
214 this._annotationId = annotationId;
218 * Sets the value of field 'gapped'. The field 'gapped' has the following
219 * description: if true the RNA structure is shown with gaps, if false without
223 * the value of field 'gapped'.
225 public void setGapped(final boolean gapped)
227 this._gapped = gapped;
228 this._has_gapped = true;
232 * Sets the value of field 'title'.
235 * the value of field 'title'.
237 public void setTitle(final java.lang.String title)
243 * Sets the value of field 'viewerState'. The field 'viewerState' has the
244 * following description: name of the project jar entry that holds the VARNA
245 * viewer state for the structure
249 * the value of field 'viewerState'.
251 public void setViewerState(final java.lang.String viewerState)
253 this._viewerState = viewerState;
260 * @throws org.exolab.castor.xml.MarshalException
261 * if object is null or if any SAXException is thrown during
263 * @throws org.exolab.castor.xml.ValidationException
264 * if this object is an invalid instance according to the schema
265 * @return the unmarshaled jalview.schemabinding.version2.SecondaryStructure
267 public static jalview.schemabinding.version2.SecondaryStructure unmarshal(
268 final java.io.Reader reader)
269 throws org.exolab.castor.xml.MarshalException,
270 org.exolab.castor.xml.ValidationException
272 return (jalview.schemabinding.version2.SecondaryStructure) Unmarshaller
274 jalview.schemabinding.version2.SecondaryStructure.class,
281 * @throws org.exolab.castor.xml.ValidationException
282 * if this object is an invalid instance according to the schema
284 public void validate() throws org.exolab.castor.xml.ValidationException
286 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
287 validator.validate(this);