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.object
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;
51 private java.lang.String _id;
62 } //-- org.vamsas.objects.core.Newick()
70 * Note: hashCode() has not been overriden
75 public boolean equals(java.lang.Object obj)
80 if (super.equals(obj)==false)
83 if (obj instanceof Newick) {
85 Newick temp = (Newick)obj;
86 if (this._content != null) {
87 if (temp._content == null) return false;
88 else if (!(this._content.equals(temp._content)))
91 else if (temp._content != null)
93 if (this._title != null) {
94 if (temp._title == null) return false;
95 else if (!(this._title.equals(temp._title)))
98 else if (temp._title != null)
100 if (this._id != null) {
101 if (temp._id == null) return false;
102 else if (!(this._id.equals(temp._id)))
105 else if (temp._id != null)
110 } //-- boolean equals(java.lang.Object)
113 * Returns the value of field 'content'. The field 'content'
114 * has the following description: internal content storage
117 * @return the value of field 'content'.
119 public java.lang.String getContent()
121 return this._content;
122 } //-- java.lang.String getContent()
125 * Returns the value of field 'id'.
128 * @return the value of field 'id'.
130 public java.lang.String getId()
133 } //-- java.lang.String getId()
136 * Returns the value of field 'title'.
139 * @return the value of field 'title'.
141 public java.lang.String getTitle()
144 } //-- java.lang.String getTitle()
153 public boolean isValid()
158 catch (org.exolab.castor.xml.ValidationException vex) {
162 } //-- boolean isValid()
171 public void marshal(java.io.Writer out)
172 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
175 Marshaller.marshal(this, out);
176 } //-- void marshal(java.io.Writer)
185 public void marshal(org.xml.sax.ContentHandler handler)
186 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
189 Marshaller.marshal(this, handler);
190 } //-- void marshal(org.xml.sax.ContentHandler)
193 * Sets the value of field 'content'. The field 'content' has
194 * the following description: internal content storage
196 * @param content the value of field 'content'.
198 public void setContent(java.lang.String content)
200 this._content = content;
201 } //-- void setContent(java.lang.String)
204 * Sets the value of field 'id'.
206 * @param id the value of field 'id'.
208 public void setId(java.lang.String id)
211 } //-- void setId(java.lang.String)
214 * Sets the value of field 'title'.
216 * @param title the value of field 'title'.
218 public void setTitle(java.lang.String title)
221 } //-- void setTitle(java.lang.String)
231 public static org.vamsas.objects.core.Newick unmarshal(java.io.Reader reader)
232 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
234 return (org.vamsas.objects.core.Newick) Unmarshaller.unmarshal(org.vamsas.objects.core.Newick.class, reader);
235 } //-- org.vamsas.objects.core.Newick unmarshal(java.io.Reader)
241 public void validate()
242 throws org.exolab.castor.xml.ValidationException
244 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
245 validator.validate(this);
246 } //-- void validate()