Clover icon

jalviewX

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

File Group.java

 

Coverage histogram

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

Code metrics

0
18
13
1
213
79
14
0.78
1.38
13
1.08

Classes

Class Line # Actions
Group 22 18 14 18
0.4193548341.9%
 

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