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 * a region from start to end inclusive
20 * @version $Revision$ $Date$
22 public class MapListFrom implements java.io.Serializable
25 // --------------------------/
26 // - Class/Member Variables -/
27 // --------------------------/
35 * keeps track of state for field: _start
37 private boolean _has_start;
45 * keeps track of state for field: _end
47 private boolean _has_end;
64 public void deleteEnd()
66 this._has_end = false;
71 public void deleteStart()
73 this._has_start = false;
77 * Returns the value of field 'end'.
79 * @return the value of field 'End'.
87 * Returns the value of field 'start'.
89 * @return the value of field 'Start'.
99 * @return true if at least one End has been added
101 public boolean hasEnd()
103 return this._has_end;
109 * @return true if at least one Start has been added
111 public boolean hasStart()
113 return this._has_start;
119 * @return true if this object is valid according to the schema
121 public boolean isValid()
126 } catch (org.exolab.castor.xml.ValidationException vex)
137 * @throws org.exolab.castor.xml.MarshalException
138 * if object is null or if any SAXException is thrown during
140 * @throws org.exolab.castor.xml.ValidationException
141 * if this object is an invalid instance according to the schema
143 public void marshal(final java.io.Writer out)
144 throws org.exolab.castor.xml.MarshalException,
145 org.exolab.castor.xml.ValidationException
147 Marshaller.marshal(this, out);
154 * @throws java.io.IOException
155 * if an IOException occurs during marshaling
156 * @throws org.exolab.castor.xml.ValidationException
157 * if this object is an invalid instance according to the schema
158 * @throws org.exolab.castor.xml.MarshalException
159 * if object is null or if any SAXException is thrown during
162 public void marshal(final org.xml.sax.ContentHandler handler)
163 throws java.io.IOException,
164 org.exolab.castor.xml.MarshalException,
165 org.exolab.castor.xml.ValidationException
167 Marshaller.marshal(this, handler);
171 * Sets the value of field 'end'.
174 * the value of field 'end'.
176 public void setEnd(final int end)
179 this._has_end = true;
183 * Sets the value of field 'start'.
186 * the value of field 'start'.
188 public void setStart(final int start)
191 this._has_start = true;
198 * @throws org.exolab.castor.xml.MarshalException
199 * if object is null or if any SAXException is thrown during
201 * @throws org.exolab.castor.xml.ValidationException
202 * if this object is an invalid instance according to the schema
203 * @return the unmarshaled jalview.schemabinding.version2.MapListFrom
205 public static jalview.schemabinding.version2.MapListFrom unmarshal(
206 final java.io.Reader reader)
207 throws org.exolab.castor.xml.MarshalException,
208 org.exolab.castor.xml.ValidationException
210 return (jalview.schemabinding.version2.MapListFrom) Unmarshaller
211 .unmarshal(jalview.schemabinding.version2.MapListFrom.class,
218 * @throws org.exolab.castor.xml.ValidationException
219 * if this object is an invalid instance according to the schema
221 public void validate() throws org.exolab.castor.xml.ValidationException
223 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
224 validator.validate(this);