autogenerated java classes for current schema
[vamsas.git] / src / org / vamsas / objects / core / Input.java
1 /*
2  * This class was automatically generated with 
3  * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML
4  * Schema.
5  * $Id$
6  */
7
8 package org.vamsas.objects.core;
9
10   //---------------------------------/
11  //- Imported classes and packages -/
12 //---------------------------------/
13
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;
23
24 /**
25  * Class Input.
26  * 
27  * @version $Revision$ $Date$
28  */
29 public class Input extends org.vamsas.objects.core.RangeType 
30 implements java.io.Serializable
31 {
32
33
34       //--------------------------/
35      //- Class/Member Variables -/
36     //--------------------------/
37
38     /**
39      * Field _name
40      */
41     private java.lang.String _name;
42
43     /**
44      * Reference Frame for rangeType
45      *  specfication
46      *  
47      */
48     private java.lang.Object _objRef;
49
50
51       //----------------/
52      //- Constructors -/
53     //----------------/
54
55     public Input() 
56      {
57         super();
58     } //-- org.vamsas.objects.core.Input()
59
60
61       //-----------/
62      //- Methods -/
63     //-----------/
64
65     /**
66      * Note: hashCode() has not been overriden
67      * 
68      * @param obj
69      * @return boolean
70      */
71     public boolean equals(java.lang.Object obj)
72     {
73         if ( this == obj )
74             return true;
75         
76         if (super.equals(obj)==false)
77             return false;
78         
79         if (obj instanceof Input) {
80         
81             Input temp = (Input)obj;
82             if (this._name != null) {
83                 if (temp._name == null) return false;
84                 else if (!(this._name.equals(temp._name))) 
85                     return false;
86             }
87             else if (temp._name != null)
88                 return false;
89             if (this._objRef != null) {
90                 if (temp._objRef == null) return false;
91                 else if (!(this._objRef.equals(temp._objRef))) 
92                     return false;
93             }
94             else if (temp._objRef != null)
95                 return false;
96             return true;
97         }
98         return false;
99     } //-- boolean equals(java.lang.Object) 
100
101     /**
102      * Returns the value of field 'name'.
103      * 
104      * @return String
105      * @return the value of field 'name'.
106      */
107     public java.lang.String getName()
108     {
109         return this._name;
110     } //-- java.lang.String getName() 
111
112     /**
113      * Returns the value of field 'objRef'. The field 'objRef' has
114      * the following description: Reference Frame for rangeType
115      *  specfication
116      *  
117      * 
118      * @return Object
119      * @return the value of field 'objRef'.
120      */
121     public java.lang.Object getObjRef()
122     {
123         return this._objRef;
124     } //-- java.lang.Object getObjRef() 
125
126     /**
127      * Method isValid
128      * 
129      * 
130      * 
131      * @return boolean
132      */
133     public boolean isValid()
134     {
135         try {
136             validate();
137         }
138         catch (org.exolab.castor.xml.ValidationException vex) {
139             return false;
140         }
141         return true;
142     } //-- boolean isValid() 
143
144     /**
145      * Method marshal
146      * 
147      * 
148      * 
149      * @param out
150      */
151     public void marshal(java.io.Writer out)
152         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
153     {
154         
155         Marshaller.marshal(this, out);
156     } //-- void marshal(java.io.Writer) 
157
158     /**
159      * Method marshal
160      * 
161      * 
162      * 
163      * @param handler
164      */
165     public void marshal(org.xml.sax.ContentHandler handler)
166         throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
167     {
168         
169         Marshaller.marshal(this, handler);
170     } //-- void marshal(org.xml.sax.ContentHandler) 
171
172     /**
173      * Sets the value of field 'name'.
174      * 
175      * @param name the value of field 'name'.
176      */
177     public void setName(java.lang.String name)
178     {
179         this._name = name;
180     } //-- void setName(java.lang.String) 
181
182     /**
183      * Sets the value of field 'objRef'. The field 'objRef' has the
184      * following description: Reference Frame for rangeType
185      *  specfication
186      *  
187      * 
188      * @param objRef the value of field 'objRef'.
189      */
190     public void setObjRef(java.lang.Object objRef)
191     {
192         this._objRef = objRef;
193     } //-- void setObjRef(java.lang.Object) 
194
195     /**
196      * Method unmarshal
197      * 
198      * 
199      * 
200      * @param reader
201      * @return RangeType
202      */
203     public static org.vamsas.objects.core.RangeType unmarshal(java.io.Reader reader)
204         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
205     {
206         return (org.vamsas.objects.core.Input) Unmarshaller.unmarshal(org.vamsas.objects.core.Input.class, reader);
207     } //-- org.vamsas.objects.core.RangeType unmarshal(java.io.Reader) 
208
209     /**
210      * Method validate
211      * 
212      */
213     public void validate()
214         throws org.exolab.castor.xml.ValidationException
215     {
216         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
217         validator.validate(this);
218     } //-- void validate() 
219
220 }