2 * This class was automatically generated with
3 * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML
8 package org.vamsas.objects.core;
10 //---------------------------------/
11 //- Imported classes and packages -/
12 //---------------------------------/
14 import java.io.IOException;
15 import java.io.Reader;
16 import java.io.Serializable;
17 import java.io.Writer;
18 import org.exolab.castor.xml.MarshalException;
19 import org.exolab.castor.xml.Marshaller;
20 import org.exolab.castor.xml.Unmarshaller;
21 import org.exolab.castor.xml.ValidationException;
22 import org.xml.sax.ContentHandler;
27 * @version $Revision$ $Date$
29 public class Sequence extends org.vamsas.objects.core.SequenceType
30 implements java.io.Serializable
34 //--------------------------/
35 //- Class/Member Variables -/
36 //--------------------------/
41 private java.lang.String _dictionary;
51 } //-- org.vamsas.objects.core.Sequence()
59 * Note: hashCode() has not been overriden
64 public boolean equals(java.lang.Object obj)
69 if (super.equals(obj)==false)
72 if (obj instanceof Sequence) {
74 Sequence temp = (Sequence)obj;
75 if (this._dictionary != null) {
76 if (temp._dictionary == null) return false;
77 else if (!(this._dictionary.equals(temp._dictionary)))
80 else if (temp._dictionary != null)
85 } //-- boolean equals(java.lang.Object)
88 * Returns the value of field 'dictionary'.
91 * @return the value of field 'dictionary'.
93 public java.lang.String getDictionary()
95 return this._dictionary;
96 } //-- java.lang.String getDictionary()
105 public boolean isValid()
110 catch (org.exolab.castor.xml.ValidationException vex) {
114 } //-- boolean isValid()
123 public void marshal(java.io.Writer out)
124 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
127 Marshaller.marshal(this, out);
128 } //-- void marshal(java.io.Writer)
137 public void marshal(org.xml.sax.ContentHandler handler)
138 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
141 Marshaller.marshal(this, handler);
142 } //-- void marshal(org.xml.sax.ContentHandler)
145 * Sets the value of field 'dictionary'.
147 * @param dictionary the value of field 'dictionary'.
149 public void setDictionary(java.lang.String dictionary)
151 this._dictionary = dictionary;
152 } //-- void setDictionary(java.lang.String)
160 * @return SequenceType
162 public static org.vamsas.objects.core.SequenceType unmarshal(java.io.Reader reader)
163 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
165 return (org.vamsas.objects.core.Sequence) Unmarshaller.unmarshal(org.vamsas.objects.core.Sequence.class, reader);
166 } //-- org.vamsas.objects.core.SequenceType unmarshal(java.io.Reader)
172 public void validate()
173 throws org.exolab.castor.xml.ValidationException
175 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
176 validator.validate(this);
177 } //-- void validate()