2 * This class was automatically generated with
3 * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
8 package jalview.schemabinding.version2;
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 MatchCondition _matchCondition;
40 * Field _compoundMatcher.
42 private 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 CompoundMatcher getCompoundMatcher()
75 return this._compoundMatcher;
79 * Returns the value of field 'matchCondition'.
81 * @return the value of field 'MatchCondition'.
83 public 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(final CompoundMatcher compoundMatcher)
150 this._compoundMatcher = compoundMatcher;
151 this._choiceValue = compoundMatcher;
155 * Sets the value of field 'matchCondition'.
157 * @param matchCondition
158 * the value of field 'matchCondition'.
160 public void setMatchCondition(final MatchCondition matchCondition)
162 this._matchCondition = matchCondition;
163 this._choiceValue = matchCondition;
170 * @throws org.exolab.castor.xml.MarshalException
171 * if object is null or if any SAXException is thrown during
173 * @throws org.exolab.castor.xml.ValidationException
174 * if this object is an invalid instance according to the schema
175 * @return the unmarshaled jalview.schemabinding.version2.FeatureMatcherSet
177 public static jalview.schemabinding.version2.FeatureMatcherSet unmarshal(
178 final java.io.Reader reader)
179 throws org.exolab.castor.xml.MarshalException,
180 org.exolab.castor.xml.ValidationException
182 return (jalview.schemabinding.version2.FeatureMatcherSet) Unmarshaller
184 jalview.schemabinding.version2.FeatureMatcherSet.class,
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);