2 * This class was automatically generated with
\r
3 * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML
\r
8 package jalview.binding;
\r
10 //---------------------------------/
\r
11 //- Imported classes and packages -/
\r
12 //---------------------------------/
\r
14 import java.io.IOException;
\r
15 import java.io.Reader;
\r
16 import java.io.Serializable;
\r
17 import java.io.Writer;
\r
18 import org.exolab.castor.xml.MarshalException;
\r
19 import org.exolab.castor.xml.Marshaller;
\r
20 import org.exolab.castor.xml.Unmarshaller;
\r
21 import org.exolab.castor.xml.ValidationException;
\r
22 import org.xml.sax.ContentHandler;
\r
27 * @version $Revision$ $Date$
\r
29 public class Property implements java.io.Serializable {
\r
32 //--------------------------/
\r
33 //- Class/Member Variables -/
\r
34 //--------------------------/
\r
39 private java.lang.String _name;
\r
44 private java.lang.String _value;
\r
53 } //-- jalview.binding.Property()
\r
61 * Returns the value of field 'name'.
\r
64 * @return the value of field 'name'.
\r
66 public java.lang.String getName()
\r
69 } //-- java.lang.String getName()
\r
72 * Returns the value of field 'value'.
\r
75 * @return the value of field 'value'.
\r
77 public java.lang.String getValue()
\r
80 } //-- java.lang.String getValue()
\r
89 public boolean isValid()
\r
94 catch (org.exolab.castor.xml.ValidationException vex) {
\r
98 } //-- boolean isValid()
\r
107 public void marshal(java.io.Writer out)
\r
108 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
111 Marshaller.marshal(this, out);
\r
112 } //-- void marshal(java.io.Writer)
\r
121 public void marshal(org.xml.sax.ContentHandler handler)
\r
122 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
125 Marshaller.marshal(this, handler);
\r
126 } //-- void marshal(org.xml.sax.ContentHandler)
\r
129 * Sets the value of field 'name'.
\r
131 * @param name the value of field 'name'.
\r
133 public void setName(java.lang.String name)
\r
136 } //-- void setName(java.lang.String)
\r
139 * Sets the value of field 'value'.
\r
141 * @param value the value of field 'value'.
\r
143 public void setValue(java.lang.String value)
\r
145 this._value = value;
\r
146 } //-- void setValue(java.lang.String)
\r
156 public static java.lang.Object unmarshal(java.io.Reader reader)
\r
157 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
159 return (jalview.binding.Property) Unmarshaller.unmarshal(jalview.binding.Property.class, reader);
\r
160 } //-- java.lang.Object unmarshal(java.io.Reader)
\r
166 public void validate()
\r
167 throws org.exolab.castor.xml.ValidationException
\r
169 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
170 validator.validate(this);
\r
171 } //-- void validate()
\r