Clover icon

jalviewX

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

File MapListFrom.java

 

Coverage histogram

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

Code metrics

0
20
14
1
227
86
15
0.75
1.43
14
1.07

Classes

Class Line # Actions
MapListFrom 22 20 15 34
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    * a region from start to end inclusive
19    *
20    * @version $Revision$ $Date$
21    */
 
22    public class MapListFrom implements java.io.Serializable
23    {
24   
25    // --------------------------/
26    // - Class/Member Variables -/
27    // --------------------------/
28   
29    /**
30    * Field _start.
31    */
32    private int _start;
33   
34    /**
35    * keeps track of state for field: _start
36    */
37    private boolean _has_start;
38   
39    /**
40    * Field _end.
41    */
42    private int _end;
43   
44    /**
45    * keeps track of state for field: _end
46    */
47    private boolean _has_end;
48   
49    // ----------------/
50    // - Constructors -/
51    // ----------------/
52   
 
53  0 toggle public MapListFrom()
54    {
55  0 super();
56    }
57   
58    // -----------/
59    // - Methods -/
60    // -----------/
61   
62    /**
63    */
 
64  0 toggle public void deleteEnd()
65    {
66  0 this._has_end = false;
67    }
68   
69    /**
70    */
 
71  0 toggle public void deleteStart()
72    {
73  0 this._has_start = false;
74    }
75   
76    /**
77    * Returns the value of field 'end'.
78    *
79    * @return the value of field 'End'.
80    */
 
81  0 toggle public int getEnd()
82    {
83  0 return this._end;
84    }
85   
86    /**
87    * Returns the value of field 'start'.
88    *
89    * @return the value of field 'Start'.
90    */
 
91  0 toggle public int getStart()
92    {
93  0 return this._start;
94    }
95   
96    /**
97    * Method hasEnd.
98    *
99    * @return true if at least one End has been added
100    */
 
101  0 toggle public boolean hasEnd()
102    {
103  0 return this._has_end;
104    }
105   
106    /**
107    * Method hasStart.
108    *
109    * @return true if at least one Start has been added
110    */
 
111  0 toggle public boolean hasStart()
112    {
113  0 return this._has_start;
114    }
115   
116    /**
117    * Method isValid.
118    *
119    * @return true if this object is valid according to the schema
120    */
 
121  0 toggle public boolean isValid()
122    {
123  0 try
124    {
125  0 validate();
126    } catch (org.exolab.castor.xml.ValidationException vex)
127    {
128  0 return false;
129    }
130  0 return true;
131    }
132   
133    /**
134    *
135    *
136    * @param out
137    * @throws org.exolab.castor.xml.MarshalException
138    * if object is null or if any SAXException is thrown during
139    * marshaling
140    * @throws org.exolab.castor.xml.ValidationException
141    * if this object is an invalid instance according to the schema
142    */
 
143  0 toggle public void marshal(final java.io.Writer out)
144    throws org.exolab.castor.xml.MarshalException,
145    org.exolab.castor.xml.ValidationException
146    {
147  0 Marshaller.marshal(this, out);
148    }
149   
150    /**
151    *
152    *
153    * @param handler
154    * @throws java.io.IOException
155    * if an IOException occurs during marshaling
156    * @throws org.exolab.castor.xml.ValidationException
157    * if this object is an invalid instance according to the schema
158    * @throws org.exolab.castor.xml.MarshalException
159    * if object is null or if any SAXException is thrown during
160    * marshaling
161    */
 
162  0 toggle public void marshal(final org.xml.sax.ContentHandler handler)
163    throws java.io.IOException,
164    org.exolab.castor.xml.MarshalException,
165    org.exolab.castor.xml.ValidationException
166    {
167  0 Marshaller.marshal(this, handler);
168    }
169   
170    /**
171    * Sets the value of field 'end'.
172    *
173    * @param end
174    * the value of field 'end'.
175    */
 
176  0 toggle public void setEnd(final int end)
177    {
178  0 this._end = end;
179  0 this._has_end = true;
180    }
181   
182    /**
183    * Sets the value of field 'start'.
184    *
185    * @param start
186    * the value of field 'start'.
187    */
 
188  0 toggle public void setStart(final int start)
189    {
190  0 this._start = start;
191  0 this._has_start = true;
192    }
193   
194    /**
195    * Method unmarshal.
196    *
197    * @param reader
198    * @throws org.exolab.castor.xml.MarshalException
199    * if object is null or if any SAXException is thrown during
200    * marshaling
201    * @throws org.exolab.castor.xml.ValidationException
202    * if this object is an invalid instance according to the schema
203    * @return the unmarshaled jalview.schemabinding.version2.MapListFrom
204    */
 
205  0 toggle public static jalview.schemabinding.version2.MapListFrom unmarshal(
206    final java.io.Reader reader)
207    throws org.exolab.castor.xml.MarshalException,
208    org.exolab.castor.xml.ValidationException
209    {
210  0 return (jalview.schemabinding.version2.MapListFrom) Unmarshaller
211    .unmarshal(jalview.schemabinding.version2.MapListFrom.class,
212    reader);
213    }
214   
215    /**
216    *
217    *
218    * @throws org.exolab.castor.xml.ValidationException
219    * if this object is an invalid instance according to the schema
220    */
 
221  0 toggle public void validate() throws org.exolab.castor.xml.ValidationException
222    {
223  0 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
224  0 validator.validate(this);
225    }
226   
227    }