Clover icon

jalviewX

  1. Project Clover database Wed Oct 31 2018 15:13:58 GMT
  2. Package jalview.schemabinding.version2

File JalviewModel.java

 

Coverage histogram

../../../img/srcFileCovDistChart6.png
35% of files have more coverage

Code metrics

0
18
14
1
235
86
15
0.83
1.29
14
1.07

Classes

Class Line # Actions
JalviewModel 22 18 15 14
0.562556.2%
 

Contributing tests

This file is covered by 16 tests. .

Source view

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