refactored org to uk
[vamsas.git] / src / uk / ac / vamsas / objects / core / Map.java
1 /*\r
2  * This class was automatically generated with \r
3  * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
4  * Schema.\r
5  * $Id$\r
6  */\r
7 \r
8 package uk.ac.vamsas.objects.core;\r
9 \r
10   //---------------------------------/\r
11  //- Imported classes and packages -/\r
12 //---------------------------------/\r
13 \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
23 \r
24 /**\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
35  *  to \r
36  * \r
37  * @version $Revision$ $Date$\r
38  */\r
39 public class Map extends uk.ac.vamsas.objects.core.MapList \r
40 implements java.io.Serializable\r
41 {\r
42 \r
43 \r
44       //----------------/\r
45      //- Constructors -/\r
46     //----------------/\r
47 \r
48     public Map() \r
49      {\r
50         super();\r
51     } //-- uk.ac.vamsas.objects.core.Map()\r
52 \r
53 \r
54       //-----------/\r
55      //- Methods -/\r
56     //-----------/\r
57 \r
58     /**\r
59      * Note: hashCode() has not been overriden\r
60      * \r
61      * @param obj\r
62      * @return boolean\r
63      */\r
64     public boolean equals(java.lang.Object obj)\r
65     {\r
66         if ( this == obj )\r
67             return true;\r
68         \r
69         if (super.equals(obj)==false)\r
70             return false;\r
71         \r
72         if (obj instanceof Map) {\r
73         \r
74             Map temp = (Map)obj;\r
75             return true;\r
76         }\r
77         return false;\r
78     } //-- boolean equals(java.lang.Object) \r
79 \r
80     /**\r
81      * Method isValid\r
82      * \r
83      * \r
84      * \r
85      * @return boolean\r
86      */\r
87     public boolean isValid()\r
88     {\r
89         try {\r
90             validate();\r
91         }\r
92         catch (org.exolab.castor.xml.ValidationException vex) {\r
93             return false;\r
94         }\r
95         return true;\r
96     } //-- boolean isValid() \r
97 \r
98     /**\r
99      * Method marshal\r
100      * \r
101      * \r
102      * \r
103      * @param out\r
104      */\r
105     public void marshal(java.io.Writer out)\r
106         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
107     {\r
108         \r
109         Marshaller.marshal(this, out);\r
110     } //-- void marshal(java.io.Writer) \r
111 \r
112     /**\r
113      * Method marshal\r
114      * \r
115      * \r
116      * \r
117      * @param handler\r
118      */\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
121     {\r
122         \r
123         Marshaller.marshal(this, handler);\r
124     } //-- void marshal(org.xml.sax.ContentHandler) \r
125 \r
126     /**\r
127      * Method unmarshal\r
128      * \r
129      * \r
130      * \r
131      * @param reader\r
132      * @return MapList\r
133      */\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
136     {\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
139 \r
140     /**\r
141      * Method validate\r
142      * \r
143      */\r
144     public void validate()\r
145         throws org.exolab.castor.xml.ValidationException\r
146     {\r
147         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();\r
148         validator.validate(this);\r
149     } //-- void validate() \r
150 \r
151 }\r