Clover icon

jalviewX

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

File SequenceType.java

 

Coverage histogram

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

Code metrics

0
18
14
1
233
84
15
0.83
1.29
14
1.07

Classes

Class Line # Actions
SequenceType 22 18 15 14
0.562556.2%
 

Contributing tests

This file is covered by 14 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 SequenceType.
19    *
20    * @version $Revision$ $Date$
21    */
 
22    public class SequenceType implements java.io.Serializable
23    {
24   
25    // --------------------------/
26    // - Class/Member Variables -/
27    // --------------------------/
28   
29    /**
30    * Field _id.
31    */
32    private java.lang.String _id;
33   
34    /**
35    * Field _description.
36    */
37    private java.lang.String _description;
38   
39    /**
40    * Field _sequence.
41    */
42    private java.lang.String _sequence;
43   
44    /**
45    * Field _name.
46    */
47    private java.lang.String _name;
48   
49    // ----------------/
50    // - Constructors -/
51    // ----------------/
52   
 
53  899 toggle public SequenceType()
54    {
55  899 super();
56    }
57   
58    // -----------/
59    // - Methods -/
60    // -----------/
61   
62    /**
63    * Returns the value of field 'description'.
64    *
65    * @return the value of field 'Description'.
66    */
 
67  1157 toggle public java.lang.String getDescription()
68    {
69  1157 return this._description;
70    }
71   
72    /**
73    * Returns the value of field 'id'.
74    *
75    * @return the value of field 'Id'.
76    */
 
77  1510 toggle public java.lang.String getId()
78    {
79  1510 return this._id;
80    }
81   
82    /**
83    * Returns the value of field 'name'.
84    *
85    * @return the value of field 'Name'.
86    */
 
87  1157 toggle public java.lang.String getName()
88    {
89  1157 return this._name;
90    }
91   
92    /**
93    * Returns the value of field 'sequence'.
94    *
95    * @return the value of field 'Sequence'.
96    */
 
97  1157 toggle public java.lang.String getSequence()
98    {
99  1157 return this._sequence;
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 'description'.
158    *
159    * @param description
160    * the value of field 'description'.
161    */
 
162  747 toggle public void setDescription(final java.lang.String description)
163    {
164  747 this._description = description;
165    }
166   
167    /**
168    * Sets the value of field 'id'.
169    *
170    * @param id
171    * the value of field 'id'.
172    */
 
173  899 toggle public void setId(final java.lang.String id)
174    {
175  899 this._id = id;
176    }
177   
178    /**
179    * Sets the value of field 'name'.
180    *
181    * @param name
182    * the value of field 'name'.
183    */
 
184  899 toggle public void setName(final java.lang.String name)
185    {
186  899 this._name = name;
187    }
188   
189    /**
190    * Sets the value of field 'sequence'.
191    *
192    * @param sequence
193    * the value of field 'sequence'.
194    */
 
195  899 toggle public void setSequence(final java.lang.String sequence)
196    {
197  899 this._sequence = sequence;
198    }
199   
200    /**
201    * Method unmarshal.
202    *
203    * @param reader
204    * @throws org.exolab.castor.xml.MarshalException
205    * if object is null or if any SAXException is thrown during
206    * marshaling
207    * @throws org.exolab.castor.xml.ValidationException
208    * if this object is an invalid instance according to the schema
209    * @return the unmarshaled jalview.schemabinding.version2.SequenceType
210    */
 
211  0 toggle public static jalview.schemabinding.version2.SequenceType unmarshal(
212    final java.io.Reader reader)
213    throws org.exolab.castor.xml.MarshalException,
214    org.exolab.castor.xml.ValidationException
215    {
216  0 return (jalview.schemabinding.version2.SequenceType) Unmarshaller
217    .unmarshal(jalview.schemabinding.version2.SequenceType.class,
218    reader);
219    }
220   
221    /**
222    *
223    *
224    * @throws org.exolab.castor.xml.ValidationException
225    * if this object is an invalid instance according to the schema
226    */
 
227  0 toggle public void validate() throws org.exolab.castor.xml.ValidationException
228    {
229  0 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
230  0 validator.validate(this);
231    }
232   
233    }