update author list in license for (JAL-826)
[jalview.git] / src / jalview / schemabinding / version2 / DBRef.java
1 /*******************************************************************************
2  * Jalview - A Sequence Alignment Editor and Viewer (Version 2.7)
3  * Copyright (C) 2011 J Procter, AM Waterhouse, J Engelhardt, LM Lui, G Barton, M Clamp, S Searle
4  *
5  * This file is part of Jalview.
6  *
7  * Jalview is free software: you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License 
9  * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
10  *
11  * Jalview is distributed in the hope that it will be useful, but 
12  * WITHOUT ANY WARRANTY; without even the implied warranty 
13  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
14  * PURPOSE.  See the GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License along with Jalview.  If not, see <http://www.gnu.org/licenses/>.
17  *******************************************************************************/
18 /*
19  * This class was automatically generated with 
20  * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
21  * Schema.
22  * $Id$
23  */
24
25 package jalview.schemabinding.version2;
26
27   //---------------------------------/
28  //- Imported classes and packages -/
29 //---------------------------------/
30
31 import org.exolab.castor.xml.Marshaller;
32 import org.exolab.castor.xml.Unmarshaller;
33
34 /**
35  * Class DBRef.
36  * 
37  * @version $Revision$ $Date$
38  */
39 public class DBRef implements java.io.Serializable {
40
41
42       //--------------------------/
43      //- Class/Member Variables -/
44     //--------------------------/
45
46     /**
47      * Field _source.
48      */
49     private java.lang.String _source;
50
51     /**
52      * Field _version.
53      */
54     private java.lang.String _version;
55
56     /**
57      * Field _accessionId.
58      */
59     private java.lang.String _accessionId;
60
61     /**
62      * Field _mapping.
63      */
64     private jalview.schemabinding.version2.Mapping _mapping;
65
66
67       //----------------/
68      //- Constructors -/
69     //----------------/
70
71     public DBRef() {
72         super();
73     }
74
75
76       //-----------/
77      //- Methods -/
78     //-----------/
79
80     /**
81      * Returns the value of field 'accessionId'.
82      * 
83      * @return the value of field 'AccessionId'.
84      */
85     public java.lang.String getAccessionId(
86     ) {
87         return this._accessionId;
88     }
89
90     /**
91      * Returns the value of field 'mapping'.
92      * 
93      * @return the value of field 'Mapping'.
94      */
95     public jalview.schemabinding.version2.Mapping getMapping(
96     ) {
97         return this._mapping;
98     }
99
100     /**
101      * Returns the value of field 'source'.
102      * 
103      * @return the value of field 'Source'.
104      */
105     public java.lang.String getSource(
106     ) {
107         return this._source;
108     }
109
110     /**
111      * Returns the value of field 'version'.
112      * 
113      * @return the value of field 'Version'.
114      */
115     public java.lang.String getVersion(
116     ) {
117         return this._version;
118     }
119
120     /**
121      * Method isValid.
122      * 
123      * @return true if this object is valid according to the schema
124      */
125     public boolean isValid(
126     ) {
127         try {
128             validate();
129         } catch (org.exolab.castor.xml.ValidationException vex) {
130             return false;
131         }
132         return true;
133     }
134
135     /**
136      * 
137      * 
138      * @param out
139      * @throws org.exolab.castor.xml.MarshalException if object is
140      * null or if any SAXException is thrown during marshaling
141      * @throws org.exolab.castor.xml.ValidationException if this
142      * object is an invalid instance according to the schema
143      */
144     public void marshal(
145             final java.io.Writer out)
146     throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
147         Marshaller.marshal(this, out);
148     }
149
150     /**
151      * 
152      * 
153      * @param handler
154      * @throws java.io.IOException if an IOException occurs during
155      * marshaling
156      * @throws org.exolab.castor.xml.ValidationException if this
157      * object is an invalid instance according to the schema
158      * @throws org.exolab.castor.xml.MarshalException if object is
159      * null or if any SAXException is thrown during marshaling
160      */
161     public void marshal(
162             final org.xml.sax.ContentHandler handler)
163     throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
164         Marshaller.marshal(this, handler);
165     }
166
167     /**
168      * Sets the value of field 'accessionId'.
169      * 
170      * @param accessionId the value of field 'accessionId'.
171      */
172     public void setAccessionId(
173             final java.lang.String accessionId) {
174         this._accessionId = accessionId;
175     }
176
177     /**
178      * Sets the value of field 'mapping'.
179      * 
180      * @param mapping the value of field 'mapping'.
181      */
182     public void setMapping(
183             final jalview.schemabinding.version2.Mapping mapping) {
184         this._mapping = mapping;
185     }
186
187     /**
188      * Sets the value of field 'source'.
189      * 
190      * @param source the value of field 'source'.
191      */
192     public void setSource(
193             final java.lang.String source) {
194         this._source = source;
195     }
196
197     /**
198      * Sets the value of field 'version'.
199      * 
200      * @param version the value of field 'version'.
201      */
202     public void setVersion(
203             final java.lang.String version) {
204         this._version = version;
205     }
206
207     /**
208      * Method unmarshal.
209      * 
210      * @param reader
211      * @throws org.exolab.castor.xml.MarshalException if object is
212      * null or if any SAXException is thrown during marshaling
213      * @throws org.exolab.castor.xml.ValidationException if this
214      * object is an invalid instance according to the schema
215      * @return the unmarshaled jalview.schemabinding.version2.DBRef
216      */
217     public static jalview.schemabinding.version2.DBRef unmarshal(
218             final java.io.Reader reader)
219     throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
220         return (jalview.schemabinding.version2.DBRef) Unmarshaller.unmarshal(jalview.schemabinding.version2.DBRef.class, reader);
221     }
222
223     /**
224      * 
225      * 
226      * @throws org.exolab.castor.xml.ValidationException if this
227      * object is an invalid instance according to the schema
228      */
229     public void validate(
230     )
231     throws org.exolab.castor.xml.ValidationException {
232         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
233         validator.validate(this);
234     }
235
236 }