jalview XML schema update for 2.4.1 (or 2.5?) introducing IDs for views and treepanel...
[jalview.git] / src / jalview / schemabinding / version2 / DBRef.java
1 /*\r
2  * This class was automatically generated with \r
3  * <a href="http://www.castor.org">Castor 1.1</a>, using an XML\r
4  * Schema.\r
5  * $Id$\r
6  */\r
7 \r
8 package jalview.schemabinding.version2;\r
9 \r
10   //---------------------------------/\r
11  //- Imported classes and packages -/\r
12 //---------------------------------/\r
13 \r
14 import org.exolab.castor.xml.Marshaller;\r
15 import org.exolab.castor.xml.Unmarshaller;\r
16 \r
17 /**\r
18  * Class DBRef.\r
19  * \r
20  * @version $Revision$ $Date$\r
21  */\r
22 public class DBRef implements java.io.Serializable {\r
23 \r
24 \r
25       //--------------------------/\r
26      //- Class/Member Variables -/\r
27     //--------------------------/\r
28 \r
29     /**\r
30      * Field _source.\r
31      */\r
32     private java.lang.String _source;\r
33 \r
34     /**\r
35      * Field _version.\r
36      */\r
37     private java.lang.String _version;\r
38 \r
39     /**\r
40      * Field _accessionId.\r
41      */\r
42     private java.lang.String _accessionId;\r
43 \r
44     /**\r
45      * Field _mapping.\r
46      */\r
47     private jalview.schemabinding.version2.Mapping _mapping;\r
48 \r
49 \r
50       //----------------/\r
51      //- Constructors -/\r
52     //----------------/\r
53 \r
54     public DBRef() {\r
55         super();\r
56     }\r
57 \r
58 \r
59       //-----------/\r
60      //- Methods -/\r
61     //-----------/\r
62 \r
63     /**\r
64      * Returns the value of field 'accessionId'.\r
65      * \r
66      * @return the value of field 'AccessionId'.\r
67      */\r
68     public java.lang.String getAccessionId(\r
69     ) {\r
70         return this._accessionId;\r
71     }\r
72 \r
73     /**\r
74      * Returns the value of field 'mapping'.\r
75      * \r
76      * @return the value of field 'Mapping'.\r
77      */\r
78     public jalview.schemabinding.version2.Mapping getMapping(\r
79     ) {\r
80         return this._mapping;\r
81     }\r
82 \r
83     /**\r
84      * Returns the value of field 'source'.\r
85      * \r
86      * @return the value of field 'Source'.\r
87      */\r
88     public java.lang.String getSource(\r
89     ) {\r
90         return this._source;\r
91     }\r
92 \r
93     /**\r
94      * Returns the value of field 'version'.\r
95      * \r
96      * @return the value of field 'Version'.\r
97      */\r
98     public java.lang.String getVersion(\r
99     ) {\r
100         return this._version;\r
101     }\r
102 \r
103     /**\r
104      * Method isValid.\r
105      * \r
106      * @return true if this object is valid according to the schema\r
107      */\r
108     public boolean isValid(\r
109     ) {\r
110         try {\r
111             validate();\r
112         } catch (org.exolab.castor.xml.ValidationException vex) {\r
113             return false;\r
114         }\r
115         return true;\r
116     }\r
117 \r
118     /**\r
119      * \r
120      * \r
121      * @param out\r
122      * @throws org.exolab.castor.xml.MarshalException if object is\r
123      * null or if any SAXException is thrown during marshaling\r
124      * @throws org.exolab.castor.xml.ValidationException if this\r
125      * object is an invalid instance according to the schema\r
126      */\r
127     public void marshal(\r
128             final java.io.Writer out)\r
129     throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {\r
130         Marshaller.marshal(this, out);\r
131     }\r
132 \r
133     /**\r
134      * \r
135      * \r
136      * @param handler\r
137      * @throws java.io.IOException if an IOException occurs during\r
138      * marshaling\r
139      * @throws org.exolab.castor.xml.ValidationException if this\r
140      * object is an invalid instance according to the schema\r
141      * @throws org.exolab.castor.xml.MarshalException if object is\r
142      * null or if any SAXException is thrown during marshaling\r
143      */\r
144     public void marshal(\r
145             final org.xml.sax.ContentHandler handler)\r
146     throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {\r
147         Marshaller.marshal(this, handler);\r
148     }\r
149 \r
150     /**\r
151      * Sets the value of field 'accessionId'.\r
152      * \r
153      * @param accessionId the value of field 'accessionId'.\r
154      */\r
155     public void setAccessionId(\r
156             final java.lang.String accessionId) {\r
157         this._accessionId = accessionId;\r
158     }\r
159 \r
160     /**\r
161      * Sets the value of field 'mapping'.\r
162      * \r
163      * @param mapping the value of field 'mapping'.\r
164      */\r
165     public void setMapping(\r
166             final jalview.schemabinding.version2.Mapping mapping) {\r
167         this._mapping = mapping;\r
168     }\r
169 \r
170     /**\r
171      * Sets the value of field 'source'.\r
172      * \r
173      * @param source the value of field 'source'.\r
174      */\r
175     public void setSource(\r
176             final java.lang.String source) {\r
177         this._source = source;\r
178     }\r
179 \r
180     /**\r
181      * Sets the value of field 'version'.\r
182      * \r
183      * @param version the value of field 'version'.\r
184      */\r
185     public void setVersion(\r
186             final java.lang.String version) {\r
187         this._version = version;\r
188     }\r
189 \r
190     /**\r
191      * Method unmarshal.\r
192      * \r
193      * @param reader\r
194      * @throws org.exolab.castor.xml.MarshalException if object is\r
195      * null or if any SAXException is thrown during marshaling\r
196      * @throws org.exolab.castor.xml.ValidationException if this\r
197      * object is an invalid instance according to the schema\r
198      * @return the unmarshaled jalview.schemabinding.version2.DBRef\r
199      */\r
200     public static jalview.schemabinding.version2.DBRef unmarshal(\r
201             final java.io.Reader reader)\r
202     throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {\r
203         return (jalview.schemabinding.version2.DBRef) Unmarshaller.unmarshal(jalview.schemabinding.version2.DBRef.class, reader);\r
204     }\r
205 \r
206     /**\r
207      * \r
208      * \r
209      * @throws org.exolab.castor.xml.ValidationException if this\r
210      * object is an invalid instance according to the schema\r
211      */\r
212     public void validate(\r
213     )\r
214     throws org.exolab.castor.xml.ValidationException {\r
215         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();\r
216         validator.validate(this);\r
217     }\r
218 \r
219 }\r