2 * This class was automatically generated with
3 * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML
5 * $Id:Newick.java 264 2006-12-14 17:42:54Z JimP $
8 package uk.ac.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:264 $ $Date:2006-12-14 17:42:54 +0000 (Thu, 14 Dec 2006) $
29 public class Newick extends uk.ac.vamsas.client.Vobject
30 implements java.io.Serializable
34 //--------------------------/
35 //- Class/Member Variables -/
36 //--------------------------/
39 * internal content storage
41 private java.lang.String _content = "";
46 private java.lang.String _title;
49 * Primary Key for vamsas object referencing
52 private java.lang.String _id;
57 private java.lang.String _modifiable;
68 } //-- uk.ac.vamsas.objects.core.Newick()
76 * Note: hashCode() has not been overriden
81 public boolean equals(java.lang.Object obj)
86 if (super.equals(obj)==false)
89 if (obj instanceof Newick) {
91 Newick temp = (Newick)obj;
92 if (this._content != null) {
93 if (temp._content == null) return false;
94 else if (!(this._content.equals(temp._content)))
97 else if (temp._content != null)
99 if (this._title != null) {
100 if (temp._title == null) return false;
101 else if (!(this._title.equals(temp._title)))
104 else if (temp._title != null)
106 if (this._id != null) {
107 if (temp._id == null) return false;
108 else if (!(this._id.equals(temp._id)))
111 else if (temp._id != null)
113 if (this._modifiable != null) {
114 if (temp._modifiable == null) return false;
115 else if (!(this._modifiable.equals(temp._modifiable)))
118 else if (temp._modifiable != null)
123 } //-- boolean equals(java.lang.Object)
126 * Returns the value of field 'content'. The field 'content'
127 * has the following description: internal content storage
130 * @return the value of field 'content'.
132 public java.lang.String getContent()
134 return this._content;
135 } //-- java.lang.String getContent()
138 * Returns the value of field 'id'. The field 'id' has the
139 * following description: Primary Key for vamsas object
144 * @return the value of field 'id'.
146 public java.lang.String getId()
149 } //-- java.lang.String getId()
152 * Returns the value of field 'modifiable'.
155 * @return the value of field 'modifiable'.
157 public java.lang.String getModifiable()
159 return this._modifiable;
160 } //-- java.lang.String getModifiable()
163 * Returns the value of field 'title'.
166 * @return the value of field 'title'.
168 public java.lang.String getTitle()
171 } //-- java.lang.String getTitle()
180 public boolean isValid()
185 catch (org.exolab.castor.xml.ValidationException vex) {
189 } //-- boolean isValid()
198 public void marshal(java.io.Writer out)
199 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
202 Marshaller.marshal(this, out);
203 } //-- void marshal(java.io.Writer)
212 public void marshal(org.xml.sax.ContentHandler handler)
213 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
216 Marshaller.marshal(this, handler);
217 } //-- void marshal(org.xml.sax.ContentHandler)
220 * Sets the value of field 'content'. The field 'content' has
221 * the following description: internal content storage
223 * @param content the value of field 'content'.
225 public void setContent(java.lang.String content)
227 this._content = content;
228 } //-- void setContent(java.lang.String)
231 * Sets the value of field 'id'. The field 'id' has the
232 * following description: Primary Key for vamsas object
236 * @param id the value of field 'id'.
238 public void setId(java.lang.String id)
241 } //-- void setId(java.lang.String)
244 * Sets the value of field 'modifiable'.
246 * @param modifiable the value of field 'modifiable'.
248 public void setModifiable(java.lang.String modifiable)
250 this._modifiable = modifiable;
251 } //-- void setModifiable(java.lang.String)
254 * Sets the value of field 'title'.
256 * @param title the value of field 'title'.
258 public void setTitle(java.lang.String title)
261 } //-- void setTitle(java.lang.String)
271 public static uk.ac.vamsas.objects.core.Newick unmarshal(java.io.Reader reader)
272 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
274 return (uk.ac.vamsas.objects.core.Newick) Unmarshaller.unmarshal(uk.ac.vamsas.objects.core.Newick.class, reader);
275 } //-- uk.ac.vamsas.objects.core.Newick unmarshal(java.io.Reader)
281 public void validate()
282 throws org.exolab.castor.xml.ValidationException
284 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
285 validator.validate(this);
286 } //-- void validate()