Clover icon

jalviewX

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

File AlcodMap.java

 

Coverage histogram

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

Code metrics

0
14
10
1
192
67
11
0.79
1.4
10
1.1

Classes

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