Clover icon

jalviewX

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

File OtherData.java

 

Coverage histogram

../../../img/srcFileCovDistChart5.png
40% of files have more coverage

Code metrics

0
16
12
1
199
65
13
0.81
1.33
12
1.08

Classes

Class Line # Actions
OtherData 22 16 13 14
0.550%
 

Contributing tests

This file is covered by 7 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 OtherData.
19    *
20    * @version $Revision$ $Date$
21    */
 
22    public class OtherData implements java.io.Serializable {
23   
24   
25    //--------------------------/
26    //- Class/Member Variables -/
27    //--------------------------/
28   
29    /**
30    * Field _key.
31    */
32    private java.lang.String _key;
33   
34    /**
35    * key2 may be used for a sub-attribute of key
36    */
37    private java.lang.String _key2;
38   
39    /**
40    * Field _value.
41    */
42    private java.lang.String _value;
43   
44   
45    //----------------/
46    //- Constructors -/
47    //----------------/
48   
 
49  28160 toggle public OtherData() {
50  28160 super();
51    }
52   
53   
54    //-----------/
55    //- Methods -/
56    //-----------/
57   
58    /**
59    * Returns the value of field 'key'.
60    *
61    * @return the value of field 'Key'.
62    */
 
63  13800 toggle public java.lang.String getKey(
64    ) {
65  13800 return this._key;
66    }
67   
68    /**
69    * Returns the value of field 'key2'. The field 'key2' has the
70    * following description: key2 may be used for a sub-attribute
71    * of key
72    *
73    * @return the value of field 'Key2'.
74    */
 
75  11462 toggle public java.lang.String getKey2(
76    ) {
77  11462 return this._key2;
78    }
79   
80    /**
81    * Returns the value of field 'value'.
82    *
83    * @return the value of field 'Value'.
84    */
 
85  13800 toggle public java.lang.String getValue(
86    ) {
87  13800 return this._value;
88    }
89   
90    /**
91    * Method isValid.
92    *
93    * @return true if this object is valid according to the schema
94    */
 
95  0 toggle public boolean isValid(
96    ) {
97  0 try {
98  0 validate();
99    } catch (org.exolab.castor.xml.ValidationException vex) {
100  0 return false;
101    }
102  0 return true;
103    }
104   
105    /**
106    *
107    *
108    * @param out
109    * @throws org.exolab.castor.xml.MarshalException if object is
110    * null or if any SAXException is thrown during marshaling
111    * @throws org.exolab.castor.xml.ValidationException if this
112    * object is an invalid instance according to the schema
113    */
 
114  0 toggle public void marshal(
115    final java.io.Writer out)
116    throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
117  0 Marshaller.marshal(this, out);
118    }
119   
120    /**
121    *
122    *
123    * @param handler
124    * @throws java.io.IOException if an IOException occurs during
125    * marshaling
126    * @throws org.exolab.castor.xml.ValidationException if this
127    * object is an invalid instance according to the schema
128    * @throws org.exolab.castor.xml.MarshalException if object is
129    * null or if any SAXException is thrown during marshaling
130    */
 
131  0 toggle public void marshal(
132    final org.xml.sax.ContentHandler handler)
133    throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
134  0 Marshaller.marshal(this, handler);
135    }
136   
137    /**
138    * Sets the value of field 'key'.
139    *
140    * @param key the value of field 'key'.
141    */
 
142  28160 toggle public void setKey(
143    final java.lang.String key) {
144  28160 this._key = key;
145    }
146   
147    /**
148    * Sets the value of field 'key2'. The field 'key2' has the
149    * following description: key2 may be used for a sub-attribute
150    * of key
151    *
152    * @param key2 the value of field 'key2'.
153    */
 
154  40 toggle public void setKey2(
155    final java.lang.String key2) {
156  40 this._key2 = key2;
157    }
158   
159    /**
160    * Sets the value of field 'value'.
161    *
162    * @param value the value of field 'value'.
163    */
 
164  28160 toggle public void setValue(
165    final java.lang.String value) {
166  28160 this._value = value;
167    }
168   
169    /**
170    * Method unmarshal.
171    *
172    * @param reader
173    * @throws org.exolab.castor.xml.MarshalException if object is
174    * null or if any SAXException is thrown during marshaling
175    * @throws org.exolab.castor.xml.ValidationException if this
176    * object is an invalid instance according to the schema
177    * @return the unmarshaled
178    * jalview.schemabinding.version2.OtherData
179    */
 
180  0 toggle public static jalview.schemabinding.version2.OtherData unmarshal(
181    final java.io.Reader reader)
182    throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
183  0 return (jalview.schemabinding.version2.OtherData) Unmarshaller.unmarshal(jalview.schemabinding.version2.OtherData.class, reader);
184    }
185   
186    /**
187    *
188    *
189    * @throws org.exolab.castor.xml.ValidationException if this
190    * object is an invalid instance according to the schema
191    */
 
192  0 toggle public void validate(
193    )
194    throws org.exolab.castor.xml.ValidationException {
195  0 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
196  0 validator.validate(this);
197    }
198   
199    }