Clover icon

jalviewX

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

File Filter.java

 

Coverage histogram

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

Code metrics

0
14
10
1
181
66
11
0.79
1.4
10
1.1

Classes

Class Line # Actions
Filter 22 14 11 14
0.4166666641.7%
 

Contributing tests

This file is covered by 1 test. .

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