2 * This class was automatically generated with
\r
3 * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
\r
8 package uk.ac.vamsas.objects.core;
\r
10 //---------------------------------/
\r
11 //- Imported classes and packages -/
\r
12 //---------------------------------/
\r
14 import org.exolab.castor.xml.Marshaller;
\r
15 import org.exolab.castor.xml.Unmarshaller;
\r
18 * From: Offset to first
\r
19 * position in dataset sequence record that
\r
20 * this database entry maps to To: Offset
\r
21 * to last position in dataset sequence
\r
22 * record that this database entry maps to
\r
23 * Start: Offset to first last position in
\r
24 * database entry that first (or offset)
\r
25 * position in sequence maps to End: Offset
\r
26 * to last position in database entry that
\r
27 * last (offset) position in sequence maps
\r
30 * @version $Revision$ $Date$
\r
32 public class Map extends uk.ac.vamsas.objects.core.MapList
\r
33 implements java.io.Serializable
\r
51 * Overrides the java.lang.Object.equals method.
\r
54 * @return true if the objects are equal.
\r
56 public boolean equals(
\r
57 final java.lang.Object obj) {
\r
61 if (super.equals(obj)==false)
\r
64 if (obj instanceof Map) {
\r
72 * Overrides the java.lang.Object.hashCode method.
\r
74 * The following steps came from <b>Effective Java Programming
\r
75 * Language Guide</b> by Joshua Bloch, Chapter 3
\r
77 * @return a hash code value for the object.
\r
79 public int hashCode(
\r
81 int result = super.hashCode();
\r
91 * @return true if this object is valid according to the schema
\r
93 public boolean isValid(
\r
97 } catch (org.exolab.castor.xml.ValidationException vex) {
\r
107 * @throws org.exolab.castor.xml.MarshalException if object is
\r
108 * null or if any SAXException is thrown during marshaling
\r
109 * @throws org.exolab.castor.xml.ValidationException if this
\r
110 * object is an invalid instance according to the schema
\r
112 public void marshal(
\r
113 final java.io.Writer out)
\r
114 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
115 Marshaller.marshal(this, out);
\r
122 * @throws java.io.IOException if an IOException occurs during
\r
124 * @throws org.exolab.castor.xml.ValidationException if this
\r
125 * object is an invalid instance according to the schema
\r
126 * @throws org.exolab.castor.xml.MarshalException if object is
\r
127 * null or if any SAXException is thrown during marshaling
\r
129 public void marshal(
\r
130 final org.xml.sax.ContentHandler handler)
\r
131 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
132 Marshaller.marshal(this, handler);
\r
136 * Method unmarshal.
\r
139 * @throws org.exolab.castor.xml.MarshalException if object is
\r
140 * null or if any SAXException is thrown during marshaling
\r
141 * @throws org.exolab.castor.xml.ValidationException if this
\r
142 * object is an invalid instance according to the schema
\r
143 * @return the unmarshaled uk.ac.vamsas.objects.core.MapList
\r
145 public static uk.ac.vamsas.objects.core.MapList unmarshal(
\r
146 final java.io.Reader reader)
\r
147 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
148 return (uk.ac.vamsas.objects.core.MapList) Unmarshaller.unmarshal(uk.ac.vamsas.objects.core.Map.class, reader);
\r
154 * @throws org.exolab.castor.xml.ValidationException if this
\r
155 * object is an invalid instance according to the schema
\r
157 public void validate(
\r
159 throws org.exolab.castor.xml.ValidationException {
\r
160 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
161 validator.validate(this);
\r