Clover icon

jalviewX

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

File Alcodon.java

 

Coverage histogram

../../../img/srcFileCovDistChart0.png
56% of files have more coverage

Code metrics

0
25
18
1
275
104
19
0.76
1.39
18
1.06

Classes

Class Line # Actions
Alcodon 22 25 19 43
0.00%
 

Contributing tests

No tests hitting this source file were found.

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 Alcodon.
19    *
20    * @version $Revision$ $Date$
21    */
 
22    public class Alcodon implements java.io.Serializable
23    {
24   
25    // --------------------------/
26    // - Class/Member Variables -/
27    // --------------------------/
28   
29    /**
30    * Field _pos1.
31    */
32    private long _pos1;
33   
34    /**
35    * keeps track of state for field: _pos1
36    */
37    private boolean _has_pos1;
38   
39    /**
40    * Field _pos2.
41    */
42    private long _pos2;
43   
44    /**
45    * keeps track of state for field: _pos2
46    */
47    private boolean _has_pos2;
48   
49    /**
50    * Field _pos3.
51    */
52    private long _pos3;
53   
54    /**
55    * keeps track of state for field: _pos3
56    */
57    private boolean _has_pos3;
58   
59    // ----------------/
60    // - Constructors -/
61    // ----------------/
62   
 
63  0 toggle public Alcodon()
64    {
65  0 super();
66    }
67   
68    // -----------/
69    // - Methods -/
70    // -----------/
71   
72    /**
73    */
 
74  0 toggle public void deletePos1()
75    {
76  0 this._has_pos1 = false;
77    }
78   
79    /**
80    */
 
81  0 toggle public void deletePos2()
82    {
83  0 this._has_pos2 = false;
84    }
85   
86    /**
87    */
 
88  0 toggle public void deletePos3()
89    {
90  0 this._has_pos3 = false;
91    }
92   
93    /**
94    * Returns the value of field 'pos1'.
95    *
96    * @return the value of field 'Pos1'.
97    */
 
98  0 toggle public long getPos1()
99    {
100  0 return this._pos1;
101    }
102   
103    /**
104    * Returns the value of field 'pos2'.
105    *
106    * @return the value of field 'Pos2'.
107    */
 
108  0 toggle public long getPos2()
109    {
110  0 return this._pos2;
111    }
112   
113    /**
114    * Returns the value of field 'pos3'.
115    *
116    * @return the value of field 'Pos3'.
117    */
 
118  0 toggle public long getPos3()
119    {
120  0 return this._pos3;
121    }
122   
123    /**
124    * Method hasPos1.
125    *
126    * @return true if at least one Pos1 has been added
127    */
 
128  0 toggle public boolean hasPos1()
129    {
130  0 return this._has_pos1;
131    }
132   
133    /**
134    * Method hasPos2.
135    *
136    * @return true if at least one Pos2 has been added
137    */
 
138  0 toggle public boolean hasPos2()
139    {
140  0 return this._has_pos2;
141    }
142   
143    /**
144    * Method hasPos3.
145    *
146    * @return true if at least one Pos3 has been added
147    */
 
148  0 toggle public boolean hasPos3()
149    {
150  0 return this._has_pos3;
151    }
152   
153    /**
154    * Method isValid.
155    *
156    * @return true if this object is valid according to the schema
157    */
 
158  0 toggle public boolean isValid()
159    {
160  0 try
161    {
162  0 validate();
163    } catch (org.exolab.castor.xml.ValidationException vex)
164    {
165  0 return false;
166    }
167  0 return true;
168    }
169   
170    /**
171    *
172    *
173    * @param out
174    * @throws org.exolab.castor.xml.MarshalException
175    * if object is null or if any SAXException is thrown during
176    * marshaling
177    * @throws org.exolab.castor.xml.ValidationException
178    * if this object is an invalid instance according to the schema
179    */
 
180  0 toggle public void marshal(final java.io.Writer out)
181    throws org.exolab.castor.xml.MarshalException,
182    org.exolab.castor.xml.ValidationException
183    {
184  0 Marshaller.marshal(this, out);
185    }
186   
187    /**
188    *
189    *
190    * @param handler
191    * @throws java.io.IOException
192    * if an IOException occurs during marshaling
193    * @throws org.exolab.castor.xml.ValidationException
194    * if this object is an invalid instance according to the schema
195    * @throws org.exolab.castor.xml.MarshalException
196    * if object is null or if any SAXException is thrown during
197    * marshaling
198    */
 
199  0 toggle public void marshal(final org.xml.sax.ContentHandler handler)
200    throws java.io.IOException,
201    org.exolab.castor.xml.MarshalException,
202    org.exolab.castor.xml.ValidationException
203    {
204  0 Marshaller.marshal(this, handler);
205    }
206   
207    /**
208    * Sets the value of field 'pos1'.
209    *
210    * @param pos1
211    * the value of field 'pos1'.
212    */
 
213  0 toggle public void setPos1(final long pos1)
214    {
215  0 this._pos1 = pos1;
216  0 this._has_pos1 = true;
217    }
218   
219    /**
220    * Sets the value of field 'pos2'.
221    *
222    * @param pos2
223    * the value of field 'pos2'.
224    */
 
225  0 toggle public void setPos2(final long pos2)
226    {
227  0 this._pos2 = pos2;
228  0 this._has_pos2 = true;
229    }
230   
231    /**
232    * Sets the value of field 'pos3'.
233    *
234    * @param pos3
235    * the value of field 'pos3'.
236    */
 
237  0 toggle public void setPos3(final long pos3)
238    {
239  0 this._pos3 = pos3;
240  0 this._has_pos3 = true;
241    }
242   
243    /**
244    * Method unmarshal.
245    *
246    * @param reader
247    * @throws org.exolab.castor.xml.MarshalException
248    * if object is null or if any SAXException is thrown during
249    * marshaling
250    * @throws org.exolab.castor.xml.ValidationException
251    * if this object is an invalid instance according to the schema
252    * @return the unmarshaled jalview.schemabinding.version2.Alcodo
253    */
 
254  0 toggle public static jalview.schemabinding.version2.Alcodon unmarshal(
255    final java.io.Reader reader)
256    throws org.exolab.castor.xml.MarshalException,
257    org.exolab.castor.xml.ValidationException
258    {
259  0 return (jalview.schemabinding.version2.Alcodon) Unmarshaller.unmarshal(
260    jalview.schemabinding.version2.Alcodon.class, reader);
261    }
262   
263    /**
264    *
265    *
266    * @throws org.exolab.castor.xml.ValidationException
267    * if this object is an invalid instance according to the schema
268    */
 
269  0 toggle public void validate() throws org.exolab.castor.xml.ValidationException
270    {
271  0 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
272  0 validator.validate(this);
273    }
274   
275    }