2 * This class was automatically generated with
\r
3 * <a href="http://www.castor.org">Castor 0.9.9M2</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 java.io.IOException;
\r
15 import java.io.Reader;
\r
16 import java.io.Serializable;
\r
17 import java.io.Writer;
\r
18 import org.exolab.castor.xml.MarshalException;
\r
19 import org.exolab.castor.xml.Marshaller;
\r
20 import org.exolab.castor.xml.Unmarshaller;
\r
21 import org.exolab.castor.xml.ValidationException;
\r
22 import org.xml.sax.ContentHandler;
\r
25 * From: Offset to first
\r
26 * position in dataset sequence record that
\r
27 * this database entry maps to To: Offset
\r
28 * to last position in dataset sequence
\r
29 * record that this database entry maps to
\r
30 * Start: Offset to first last position in
\r
31 * database entry that first (or offset)
\r
32 * position in sequence maps to End: Offset
\r
33 * to last position in database entry that
\r
34 * last (offset) position in sequence maps
\r
37 * @version $Revision$ $Date$
\r
39 public class Map extends uk.ac.vamsas.objects.core.MapList
\r
40 implements java.io.Serializable
\r
51 } //-- uk.ac.vamsas.objects.core.Map()
\r
59 * Note: hashCode() has not been overriden
\r
64 public boolean equals(java.lang.Object obj)
\r
69 if (super.equals(obj)==false)
\r
72 if (obj instanceof Map) {
\r
74 Map temp = (Map)obj;
\r
78 } //-- boolean equals(java.lang.Object)
\r
87 public boolean isValid()
\r
92 catch (org.exolab.castor.xml.ValidationException vex) {
\r
96 } //-- boolean isValid()
\r
105 public void marshal(java.io.Writer out)
\r
106 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
109 Marshaller.marshal(this, out);
\r
110 } //-- void marshal(java.io.Writer)
\r
119 public void marshal(org.xml.sax.ContentHandler handler)
\r
120 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
123 Marshaller.marshal(this, handler);
\r
124 } //-- void marshal(org.xml.sax.ContentHandler)
\r
134 public static uk.ac.vamsas.objects.core.MapList unmarshal(java.io.Reader reader)
\r
135 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
137 return (uk.ac.vamsas.objects.core.Map) Unmarshaller.unmarshal(uk.ac.vamsas.objects.core.Map.class, reader);
\r
138 } //-- uk.ac.vamsas.objects.core.MapList unmarshal(java.io.Reader)
\r
144 public void validate()
\r
145 throws org.exolab.castor.xml.ValidationException
\r
147 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
148 validator.validate(this);
\r
149 } //-- void validate()
\r