JAL-3130 de-multi-release-jar.sh Script to make multi-release jar file single release.
[jalview.git] / src / jalview / schemabinding / version2 / MatchCondition.java
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 MatchCondition.
19  * 
20  * @version $Revision$ $Date$
21  */
22 public class MatchCondition extends FeatureMatcher
23         implements java.io.Serializable
24 {
25
26   // ----------------/
27   // - Constructors -/
28   // ----------------/
29
30   public MatchCondition()
31   {
32     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   public boolean isValid()
45   {
46     try
47     {
48       validate();
49     } catch (org.exolab.castor.xml.ValidationException vex)
50     {
51       return false;
52     }
53     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   public void marshal(final java.io.Writer out)
67           throws org.exolab.castor.xml.MarshalException,
68           org.exolab.castor.xml.ValidationException
69   {
70     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   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     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.FeatureMatcher
103    */
104   public static jalview.schemabinding.version2.FeatureMatcher unmarshal(
105           final java.io.Reader reader)
106           throws org.exolab.castor.xml.MarshalException,
107           org.exolab.castor.xml.ValidationException
108   {
109     return (jalview.schemabinding.version2.FeatureMatcher) Unmarshaller
110             .unmarshal(jalview.schemabinding.version2.MatchCondition.class,
111                     reader);
112   }
113
114   /**
115    * 
116    * 
117    * @throws org.exolab.castor.xml.ValidationException
118    *           if this object is an invalid instance according to the schema
119    */
120   public void validate() throws org.exolab.castor.xml.ValidationException
121   {
122     org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
123     validator.validate(this);
124   }
125
126 }