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 Newick extends org.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
53 private java.lang.String _id;
57 * modifiable=false will not be
58 * modified by a vamsas client
62 private boolean _modifiable = true;
65 * keeps track of state for field: _modifiable
67 private boolean _has_modifiable;
78 } //-- org.vamsas.objects.core.Newick()
86 * Method deleteModifiable
89 public void deleteModifiable()
91 this._has_modifiable= false;
92 } //-- void deleteModifiable()
95 * Note: hashCode() has not been overriden
100 public boolean equals(java.lang.Object obj)
105 if (super.equals(obj)==false)
108 if (obj instanceof Newick) {
110 Newick temp = (Newick)obj;
111 if (this._content != null) {
112 if (temp._content == null) return false;
113 else if (!(this._content.equals(temp._content)))
116 else if (temp._content != null)
118 if (this._title != null) {
119 if (temp._title == null) return false;
120 else if (!(this._title.equals(temp._title)))
123 else if (temp._title != null)
125 if (this._id != null) {
126 if (temp._id == null) return false;
127 else if (!(this._id.equals(temp._id)))
130 else if (temp._id != null)
132 if (this._modifiable != temp._modifiable)
134 if (this._has_modifiable != temp._has_modifiable)
139 } //-- boolean equals(java.lang.Object)
142 * Returns the value of field 'content'. The field 'content'
143 * has the following description: internal content storage
146 * @return the value of field 'content'.
148 public java.lang.String getContent()
150 return this._content;
151 } //-- java.lang.String getContent()
154 * Returns the value of field 'id'. The field 'id' has the
155 * following description: Primary Key for vamsas
160 * @return the value of field 'id'.
162 public java.lang.String getId()
165 } //-- java.lang.String getId()
168 * Returns the value of field 'modifiable'. The field
169 * 'modifiable' has the following description: objects with
170 * modifiable=false will not be
171 * modified by a vamsas client
176 * @return the value of field 'modifiable'.
178 public boolean getModifiable()
180 return this._modifiable;
181 } //-- boolean getModifiable()
184 * Returns the value of field 'title'.
187 * @return the value of field 'title'.
189 public java.lang.String getTitle()
192 } //-- java.lang.String getTitle()
195 * Method hasModifiable
201 public boolean hasModifiable()
203 return this._has_modifiable;
204 } //-- boolean hasModifiable()
213 public boolean isValid()
218 catch (org.exolab.castor.xml.ValidationException vex) {
222 } //-- boolean isValid()
231 public void marshal(java.io.Writer out)
232 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
235 Marshaller.marshal(this, out);
236 } //-- void marshal(java.io.Writer)
245 public void marshal(org.xml.sax.ContentHandler handler)
246 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
249 Marshaller.marshal(this, handler);
250 } //-- void marshal(org.xml.sax.ContentHandler)
253 * Sets the value of field 'content'. The field 'content' has
254 * the following description: internal content storage
256 * @param content the value of field 'content'.
258 public void setContent(java.lang.String content)
260 this._content = content;
261 } //-- void setContent(java.lang.String)
264 * Sets the value of field 'id'. The field 'id' has the
265 * following description: Primary Key for vamsas
269 * @param id the value of field 'id'.
271 public void setId(java.lang.String id)
274 } //-- void setId(java.lang.String)
277 * Sets the value of field 'modifiable'. The field 'modifiable'
278 * has the following description: objects with
279 * modifiable=false will not be
280 * modified by a vamsas client
284 * @param modifiable the value of field 'modifiable'.
286 public void setModifiable(boolean modifiable)
288 this._modifiable = modifiable;
289 this._has_modifiable = true;
290 } //-- void setModifiable(boolean)
293 * Sets the value of field 'title'.
295 * @param title the value of field 'title'.
297 public void setTitle(java.lang.String title)
300 } //-- void setTitle(java.lang.String)
310 public static org.vamsas.objects.core.Newick unmarshal(java.io.Reader reader)
311 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
313 return (org.vamsas.objects.core.Newick) Unmarshaller.unmarshal(org.vamsas.objects.core.Newick.class, reader);
314 } //-- org.vamsas.objects.core.Newick unmarshal(java.io.Reader)
320 public void validate()
321 throws org.exolab.castor.xml.ValidationException
323 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
324 validator.validate(this);
325 } //-- void validate()