/* * This class was automatically generated with * Castor 1.1, using an XML * Schema. * $Id$ */ package jalview.binding; //---------------------------------/ //- Imported classes and packages -/ //---------------------------------/ import org.exolab.castor.xml.Marshaller; import org.exolab.castor.xml.Unmarshaller; /** * Class Filter. * * @version $Revision$ $Date$ */ public class Filter implements java.io.Serializable { // --------------------------/ // - Class/Member Variables -/ // --------------------------/ /** * Field _featureType. */ private java.lang.String _featureType; /** * Field _matcherSet. */ private jalview.binding.MatcherSet _matcherSet; // ----------------/ // - Constructors -/ // ----------------/ public Filter() { super(); } // -----------/ // - Methods -/ // -----------/ /** * Returns the value of field 'featureType'. * * @return the value of field 'FeatureType'. */ public java.lang.String getFeatureType() { return this._featureType; } /** * Returns the value of field 'matcherSet'. * * @return the value of field 'MatcherSet'. */ public jalview.binding.MatcherSet getMatcherSet() { return this._matcherSet; } /** * Method isValid. * * @return true if this object is valid according to the schema */ public boolean isValid() { try { validate(); } catch (org.exolab.castor.xml.ValidationException vex) { return false; } return true; } /** * * * @param out * @throws org.exolab.castor.xml.MarshalException * if object is null or if any SAXException is thrown during * marshaling * @throws org.exolab.castor.xml.ValidationException * if this object is an invalid instance according to the schema */ public void marshal(final java.io.Writer out) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException { Marshaller.marshal(this, out); } /** * * * @param handler * @throws java.io.IOException * if an IOException occurs during marshaling * @throws org.exolab.castor.xml.ValidationException * if this object is an invalid instance according to the schema * @throws org.exolab.castor.xml.MarshalException * if object is null or if any SAXException is thrown during * marshaling */ public void marshal(final org.xml.sax.ContentHandler handler) throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException { Marshaller.marshal(this, handler); } /** * Sets the value of field 'featureType'. * * @param featureType * the value of field 'featureType'. */ public void setFeatureType(final java.lang.String featureType) { this._featureType = featureType; } /** * Sets the value of field 'matcherSet'. * * @param matcherSet * the value of field 'matcherSet'. */ public void setMatcherSet(final jalview.binding.MatcherSet matcherSet) { this._matcherSet = matcherSet; } /** * Method unmarshal. * * @param reader * @throws org.exolab.castor.xml.MarshalException * if object is null or if any SAXException is thrown during * marshaling * @throws org.exolab.castor.xml.ValidationException * if this object is an invalid instance according to the schema * @return the unmarshaled jalview.binding.Filter */ public static jalview.binding.Filter unmarshal( final java.io.Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException { return (jalview.binding.Filter) Unmarshaller .unmarshal(jalview.binding.Filter.class, reader); } /** * * * @throws org.exolab.castor.xml.ValidationException * if this object is an invalid instance according to the schema */ public void validate() throws org.exolab.castor.xml.ValidationException { org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); validator.validate(this); } }