X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fschemabinding%2Fversion2%2FAlcodon.java;h=b382ac8a5c33c12e0d420ca3efb3215674f0fb87;hb=59d682209891099d46b960509907c79e3fb276fe;hp=1732401b2cce861b458acd90e8c6ba1605696725;hpb=77441185ddcb1e85b0de8336ce513b2130c6b98b;p=jalview.git diff --git a/src/jalview/schemabinding/version2/Alcodon.java b/src/jalview/schemabinding/version2/Alcodon.java index 1732401..b382ac8 100644 --- a/src/jalview/schemabinding/version2/Alcodon.java +++ b/src/jalview/schemabinding/version2/Alcodon.java @@ -1,14 +1,24 @@ /* - * This class was automatically generated with - * Castor 1.1, using an XML - * Schema. - * $Id$ + * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8) + * Copyright (C) 2012 J Procter, AM Waterhouse, LM Lui, J Engelhardt, G Barton, M Clamp, S Searle + * + * This file is part of Jalview. + * + * Jalview is free software: you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. + * + * Jalview is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty + * of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with Jalview. If not, see . */ - package jalview.schemabinding.version2; - //---------------------------------/ - //- Imported classes and packages -/ +//---------------------------------/ +//- Imported classes and packages -/ //---------------------------------/ import org.exolab.castor.xml.Marshaller; @@ -19,245 +29,257 @@ import org.exolab.castor.xml.Unmarshaller; * * @version $Revision$ $Date$ */ -public class Alcodon implements java.io.Serializable { - - - //--------------------------/ - //- Class/Member Variables -/ - //--------------------------/ - - /** - * Field _pos1. - */ - private long _pos1; - - /** - * keeps track of state for field: _pos1 - */ - private boolean _has_pos1; - - /** - * Field _pos2. - */ - private long _pos2; - - /** - * keeps track of state for field: _pos2 - */ - private boolean _has_pos2; - - /** - * Field _pos3. - */ - private long _pos3; - - /** - * keeps track of state for field: _pos3 - */ - private boolean _has_pos3; - - - //----------------/ - //- Constructors -/ - //----------------/ - - public Alcodon() { - super(); - } - - - //-----------/ - //- Methods -/ - //-----------/ - - /** - */ - public void deletePos1( - ) { - this._has_pos1= false; - } - - /** - */ - public void deletePos2( - ) { - this._has_pos2= false; - } - - /** - */ - public void deletePos3( - ) { - this._has_pos3= false; - } - - /** - * Returns the value of field 'pos1'. - * - * @return the value of field 'Pos1'. +public class Alcodon implements java.io.Serializable +{ + + // --------------------------/ + // - Class/Member Variables -/ + // --------------------------/ + + /** + * Field _pos1. + */ + private long _pos1; + + /** + * keeps track of state for field: _pos1 + */ + private boolean _has_pos1; + + /** + * Field _pos2. + */ + private long _pos2; + + /** + * keeps track of state for field: _pos2 + */ + private boolean _has_pos2; + + /** + * Field _pos3. + */ + private long _pos3; + + /** + * keeps track of state for field: _pos3 + */ + private boolean _has_pos3; + + // ----------------/ + // - Constructors -/ + // ----------------/ + + public Alcodon() + { + super(); + } + + // -----------/ + // - Methods -/ + // -----------/ + + /** */ - public long getPos1( - ) { - return this._pos1; - } - - /** - * Returns the value of field 'pos2'. - * - * @return the value of field 'Pos2'. - */ - public long getPos2( - ) { - return this._pos2; - } - - /** - * Returns the value of field 'pos3'. - * - * @return the value of field 'Pos3'. - */ - public long getPos3( - ) { - return this._pos3; - } - - /** - * Method hasPos1. - * - * @return true if at least one Pos1 has been added - */ - public boolean hasPos1( - ) { - return this._has_pos1; - } + public void deletePos1() + { + this._has_pos1 = false; + } - /** - * Method hasPos2. - * - * @return true if at least one Pos2 has been added + /** */ - public boolean hasPos2( - ) { - return this._has_pos2; - } - - /** - * Method hasPos3. - * - * @return true if at least one Pos3 has been added - */ - public boolean hasPos3( - ) { - return this._has_pos3; - } - - /** - * 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 'pos1'. - * - * @param pos1 the value of field 'pos1'. - */ - public void setPos1( - final long pos1) { - this._pos1 = pos1; - this._has_pos1 = true; - } - - /** - * Sets the value of field 'pos2'. - * - * @param pos2 the value of field 'pos2'. - */ - public void setPos2( - final long pos2) { - this._pos2 = pos2; - this._has_pos2 = true; - } - - /** - * Sets the value of field 'pos3'. - * - * @param pos3 the value of field 'pos3'. - */ - public void setPos3( - final long pos3) { - this._pos3 = pos3; - this._has_pos3 = true; - } - - /** - * 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.schemabinding.version2.Alcodo - */ - public static jalview.schemabinding.version2.Alcodon unmarshal( - final java.io.Reader reader) - throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException { - return (jalview.schemabinding.version2.Alcodon) Unmarshaller.unmarshal(jalview.schemabinding.version2.Alcodon.class, reader); - } + public void deletePos2() + { + this._has_pos2 = false; + } - /** - * - * - * @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); + public void deletePos3() + { + this._has_pos3 = false; + } + + /** + * Returns the value of field 'pos1'. + * + * @return the value of field 'Pos1'. + */ + public long getPos1() + { + return this._pos1; + } + + /** + * Returns the value of field 'pos2'. + * + * @return the value of field 'Pos2'. + */ + public long getPos2() + { + return this._pos2; + } + + /** + * Returns the value of field 'pos3'. + * + * @return the value of field 'Pos3'. + */ + public long getPos3() + { + return this._pos3; + } + + /** + * Method hasPos1. + * + * @return true if at least one Pos1 has been added + */ + public boolean hasPos1() + { + return this._has_pos1; + } + + /** + * Method hasPos2. + * + * @return true if at least one Pos2 has been added + */ + public boolean hasPos2() + { + return this._has_pos2; + } + + /** + * Method hasPos3. + * + * @return true if at least one Pos3 has been added + */ + public boolean hasPos3() + { + return this._has_pos3; + } + + /** + * 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 'pos1'. + * + * @param pos1 + * the value of field 'pos1'. + */ + public void setPos1(final long pos1) + { + this._pos1 = pos1; + this._has_pos1 = true; + } + + /** + * Sets the value of field 'pos2'. + * + * @param pos2 + * the value of field 'pos2'. + */ + public void setPos2(final long pos2) + { + this._pos2 = pos2; + this._has_pos2 = true; + } + + /** + * Sets the value of field 'pos3'. + * + * @param pos3 + * the value of field 'pos3'. + */ + public void setPos3(final long pos3) + { + this._pos3 = pos3; + this._has_pos3 = true; + } + + /** + * 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.schemabinding.version2.Alcodo + */ + public static jalview.schemabinding.version2.Alcodon unmarshal( + final java.io.Reader reader) + throws org.exolab.castor.xml.MarshalException, + org.exolab.castor.xml.ValidationException + { + return (jalview.schemabinding.version2.Alcodon) Unmarshaller.unmarshal( + jalview.schemabinding.version2.Alcodon.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); + } }