Formatting changes
[jalview.git] / src / jalview / binding / Sequence.java
1 /*\r
2  * This class was automatically generated with\r
3  * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML\r
4  * Schema.\r
5  * $Id$\r
6  */\r
7 \r
8 package jalview.binding;\r
9 \r
10 //---------------------------------/\r
11 //- Imported classes and packages -/\r
12 //---------------------------------/\r
13 \r
14 import org.exolab.castor.xml.*;\r
15 \r
16 /**\r
17  * Class Sequence.\r
18  *\r
19  * @version $Revision$ $Date$\r
20  */\r
21 public class Sequence\r
22     extends SequenceType implements java.io.Serializable\r
23 {\r
24 \r
25   //----------------/\r
26   //- Constructors -/\r
27   //----------------/\r
28 \r
29   public Sequence()\r
30   {\r
31     super();\r
32   } //-- jalview.binding.Sequence()\r
33 \r
34   //-----------/\r
35   //- Methods -/\r
36   //-----------/\r
37 \r
38   /**\r
39    * Method isValid\r
40    *\r
41    *\r
42    *\r
43    * @return boolean\r
44    */\r
45   public boolean isValid()\r
46   {\r
47     try\r
48     {\r
49       validate();\r
50     }\r
51     catch (org.exolab.castor.xml.ValidationException vex)\r
52     {\r
53       return false;\r
54     }\r
55     return true;\r
56   } //-- boolean isValid()\r
57 \r
58   /**\r
59    * Method marshal\r
60    *\r
61    *\r
62    *\r
63    * @param out\r
64    */\r
65   public void marshal(java.io.Writer out)\r
66       throws org.exolab.castor.xml.MarshalException,\r
67       org.exolab.castor.xml.ValidationException\r
68   {\r
69 \r
70     Marshaller.marshal(this, out);\r
71   } //-- void marshal(java.io.Writer)\r
72 \r
73   /**\r
74    * Method marshal\r
75    *\r
76    *\r
77    *\r
78    * @param handler\r
79    */\r
80   public void marshal(org.xml.sax.ContentHandler handler)\r
81       throws java.io.IOException, org.exolab.castor.xml.MarshalException,\r
82       org.exolab.castor.xml.ValidationException\r
83   {\r
84 \r
85     Marshaller.marshal(this, handler);\r
86   } //-- void marshal(org.xml.sax.ContentHandler)\r
87 \r
88   /**\r
89    * Method unmarshal\r
90    *\r
91    *\r
92    *\r
93    * @param reader\r
94    * @return Object\r
95    */\r
96   public static java.lang.Object unmarshal(java.io.Reader reader)\r
97       throws org.exolab.castor.xml.MarshalException,\r
98       org.exolab.castor.xml.ValidationException\r
99   {\r
100     return (jalview.binding.Sequence) Unmarshaller.unmarshal(jalview.binding.\r
101         Sequence.class, reader);\r
102   } //-- java.lang.Object unmarshal(java.io.Reader)\r
103 \r
104   /**\r
105    * Method validate\r
106    *\r
107    */\r
108   public void validate()\r
109       throws org.exolab.castor.xml.ValidationException\r
110   {\r
111     org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.\r
112         Validator();\r
113     validator.validate(this);\r
114   } //-- void validate()\r
115 \r
116 }\r