2 * This class was automatically generated with
3 * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
8 package jalview.binding;
10 //---------------------------------/
11 //- Imported classes and packages -/
12 //---------------------------------/
14 import org.exolab.castor.xml.Marshaller;
15 import org.exolab.castor.xml.Unmarshaller;
18 * A feature match condition, which may be simple or compound
20 * @version $Revision$ $Date$
22 public class FeatureMatcherSet implements java.io.Serializable
25 // --------------------------/
26 // - Class/Member Variables -/
27 // --------------------------/
30 * Internal choice value storage
32 private java.lang.Object _choiceValue;
35 * Field _matchCondition.
37 private jalview.binding.MatchCondition _matchCondition;
40 * Field _compoundMatcher.
42 private jalview.binding.CompoundMatcher _compoundMatcher;
48 public FeatureMatcherSet()
58 * Returns the value of field 'choiceValue'. The field 'choiceValue' has the
59 * following description: Internal choice value storage
61 * @return the value of field 'ChoiceValue'.
63 public java.lang.Object getChoiceValue()
65 return this._choiceValue;
69 * Returns the value of field 'compoundMatcher'.
71 * @return the value of field 'CompoundMatcher'.
73 public jalview.binding.CompoundMatcher getCompoundMatcher()
75 return this._compoundMatcher;
79 * Returns the value of field 'matchCondition'.
81 * @return the value of field 'MatchCondition'.
83 public jalview.binding.MatchCondition getMatchCondition()
85 return this._matchCondition;
91 * @return true if this object is valid according to the schema
93 public boolean isValid()
98 } catch (org.exolab.castor.xml.ValidationException vex)
109 * @throws org.exolab.castor.xml.MarshalException
110 * if object is null or if any SAXException is thrown during
112 * @throws org.exolab.castor.xml.ValidationException
113 * if this object is an invalid instance according to the schema
115 public void marshal(final java.io.Writer out)
116 throws org.exolab.castor.xml.MarshalException,
117 org.exolab.castor.xml.ValidationException
119 Marshaller.marshal(this, out);
126 * @throws java.io.IOException
127 * if an IOException occurs during marshaling
128 * @throws org.exolab.castor.xml.ValidationException
129 * if this object is an invalid instance according to the schema
130 * @throws org.exolab.castor.xml.MarshalException
131 * if object is null or if any SAXException is thrown during
134 public void marshal(final org.xml.sax.ContentHandler handler)
135 throws java.io.IOException,
136 org.exolab.castor.xml.MarshalException,
137 org.exolab.castor.xml.ValidationException
139 Marshaller.marshal(this, handler);
143 * Sets the value of field 'compoundMatcher'.
145 * @param compoundMatcher
146 * the value of field 'compoundMatcher'.
148 public void setCompoundMatcher(
149 final jalview.binding.CompoundMatcher compoundMatcher)
151 this._compoundMatcher = compoundMatcher;
152 this._choiceValue = compoundMatcher;
156 * Sets the value of field 'matchCondition'.
158 * @param matchCondition
159 * the value of field 'matchCondition'.
161 public void setMatchCondition(
162 final jalview.binding.MatchCondition matchCondition)
164 this._matchCondition = matchCondition;
165 this._choiceValue = matchCondition;
172 * @throws org.exolab.castor.xml.MarshalException
173 * if object is null or if any SAXException is thrown during
175 * @throws org.exolab.castor.xml.ValidationException
176 * if this object is an invalid instance according to the schema
177 * @return the unmarshaled jalview.binding.FeatureMatcherSet
179 public static jalview.binding.FeatureMatcherSet unmarshal(
180 final java.io.Reader reader)
181 throws org.exolab.castor.xml.MarshalException,
182 org.exolab.castor.xml.ValidationException
184 return (jalview.binding.FeatureMatcherSet) Unmarshaller
185 .unmarshal(jalview.binding.FeatureMatcherSet.class, reader);
191 * @throws org.exolab.castor.xml.ValidationException
192 * if this object is an invalid instance according to the schema
194 public void validate() throws org.exolab.castor.xml.ValidationException
196 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
197 validator.validate(this);