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 Link 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 _href;
57 } //-- org.vamsas.objects.core.Link()
65 * Note: hashCode() has not been overriden
70 public boolean equals(java.lang.Object obj)
75 if (super.equals(obj)==false)
78 if (obj instanceof Link) {
80 Link temp = (Link)obj;
81 if (this._content != null) {
82 if (temp._content == null) return false;
83 else if (!(this._content.equals(temp._content)))
86 else if (temp._content != null)
88 if (this._href != null) {
89 if (temp._href == null) return false;
90 else if (!(this._href.equals(temp._href)))
93 else if (temp._href != null)
98 } //-- boolean equals(java.lang.Object)
101 * Returns the value of field 'content'. The field 'content'
102 * has the following description: internal content storage
105 * @return the value of field 'content'.
107 public java.lang.String getContent()
109 return this._content;
110 } //-- java.lang.String getContent()
113 * Returns the value of field 'href'. The field 'href' has the
114 * following description: The URI
117 * @return the value of field 'href'.
119 public java.lang.String getHref()
122 } //-- java.lang.String getHref()
131 public boolean isValid()
136 catch (org.exolab.castor.xml.ValidationException vex) {
140 } //-- boolean isValid()
149 public void marshal(java.io.Writer out)
150 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
153 Marshaller.marshal(this, out);
154 } //-- void marshal(java.io.Writer)
163 public void marshal(org.xml.sax.ContentHandler handler)
164 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
167 Marshaller.marshal(this, handler);
168 } //-- void marshal(org.xml.sax.ContentHandler)
171 * Sets the value of field 'content'. The field 'content' has
172 * the following description: internal content storage
174 * @param content the value of field 'content'.
176 public void setContent(java.lang.String content)
178 this._content = content;
179 } //-- void setContent(java.lang.String)
182 * Sets the value of field 'href'. The field 'href' has the
183 * following description: The URI
185 * @param href the value of field 'href'.
187 public void setHref(java.lang.String href)
190 } //-- void setHref(java.lang.String)
200 public static org.vamsas.objects.core.Link unmarshal(java.io.Reader reader)
201 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
203 return (org.vamsas.objects.core.Link) Unmarshaller.unmarshal(org.vamsas.objects.core.Link.class, reader);
204 } //-- org.vamsas.objects.core.Link unmarshal(java.io.Reader)
210 public void validate()
211 throws org.exolab.castor.xml.ValidationException
213 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
214 validator.validate(this);
215 } //-- void validate()