Clover icon

jalviewX

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

File FeatureMatcherSet.java

 

Coverage histogram

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

Code metrics

0
17
11
1
200
74
12
0.71
1.55
11
1.09

Classes

Class Line # Actions
FeatureMatcherSet 22 17 12 16
0.4285714342.9%
 

Contributing tests

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