Clover icon

jalviewX

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

File UserColourScheme.java

 

Coverage histogram

../../../img/srcFileCovDistChart0.png
56% of files have more coverage

Code metrics

0
10
6
1
127
50
7
0.7
1.67
6
1.17

Classes

Class Line # Actions
UserColourScheme 22 10 7 16
0.00%
 

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 UserColourScheme.
19    *
20    * @version $Revision$ $Date$
21    */
 
22    public class UserColourScheme extends JalviewUserColours implements
23    java.io.Serializable
24    {
25   
26    // ----------------/
27    // - Constructors -/
28    // ----------------/
29   
 
30  0 toggle public UserColourScheme()
31    {
32  0 super();
33    }
34   
35    // -----------/
36    // - Methods -/
37    // -----------/
38   
39    /**
40    * Method isValid.
41    *
42    * @return true if this object is valid according to the schema
43    */
 
44  0 toggle public boolean isValid()
45    {
46  0 try
47    {
48  0 validate();
49    } catch (org.exolab.castor.xml.ValidationException vex)
50    {
51  0 return false;
52    }
53  0 return true;
54    }
55   
56    /**
57    *
58    *
59    * @param out
60    * @throws org.exolab.castor.xml.MarshalException
61    * if object is null or if any SAXException is thrown during
62    * marshaling
63    * @throws org.exolab.castor.xml.ValidationException
64    * if this object is an invalid instance according to the schema
65    */
 
66  0 toggle public void marshal(final java.io.Writer out)
67    throws org.exolab.castor.xml.MarshalException,
68    org.exolab.castor.xml.ValidationException
69    {
70  0 Marshaller.marshal(this, out);
71    }
72   
73    /**
74    *
75    *
76    * @param handler
77    * @throws java.io.IOException
78    * if an IOException occurs during marshaling
79    * @throws org.exolab.castor.xml.ValidationException
80    * if this object is an invalid instance according to the schema
81    * @throws org.exolab.castor.xml.MarshalException
82    * if object is null or if any SAXException is thrown during
83    * marshaling
84    */
 
85  0 toggle public void marshal(final org.xml.sax.ContentHandler handler)
86    throws java.io.IOException,
87    org.exolab.castor.xml.MarshalException,
88    org.exolab.castor.xml.ValidationException
89    {
90  0 Marshaller.marshal(this, handler);
91    }
92   
93    /**
94    * Method unmarshal.
95    *
96    * @param reader
97    * @throws org.exolab.castor.xml.MarshalException
98    * if object is null or if any SAXException is thrown during
99    * marshaling
100    * @throws org.exolab.castor.xml.ValidationException
101    * if this object is an invalid instance according to the schema
102    * @return the unmarshaled jalview.schemabinding.version2.JalviewUserColours
103    */
 
104  0 toggle public static jalview.schemabinding.version2.JalviewUserColours unmarshal(
105    final java.io.Reader reader)
106    throws org.exolab.castor.xml.MarshalException,
107    org.exolab.castor.xml.ValidationException
108    {
109  0 return (jalview.schemabinding.version2.JalviewUserColours) Unmarshaller
110    .unmarshal(
111    jalview.schemabinding.version2.UserColourScheme.class,
112    reader);
113    }
114   
115    /**
116    *
117    *
118    * @throws org.exolab.castor.xml.ValidationException
119    * if this object is an invalid instance according to the schema
120    */
 
121  0 toggle public void validate() throws org.exolab.castor.xml.ValidationException
122    {
123  0 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
124  0 validator.validate(this);
125    }
126   
127    }