From 33d1fbb637197304cd9eafaf5dc8bd5c8b003eb6 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Mon, 5 Dec 2005 13:38:08 +0000 Subject: [PATCH] not needed --- src/jalview/binding/JalviewModelSequence2.java | 319 -------------------- src/jalview/binding/JalviewModelSequence2Item.java | 206 ------------- 2 files changed, 525 deletions(-) delete mode 100755 src/jalview/binding/JalviewModelSequence2.java delete mode 100755 src/jalview/binding/JalviewModelSequence2Item.java diff --git a/src/jalview/binding/JalviewModelSequence2.java b/src/jalview/binding/JalviewModelSequence2.java deleted file mode 100755 index 2cfd72c..0000000 --- a/src/jalview/binding/JalviewModelSequence2.java +++ /dev/null @@ -1,319 +0,0 @@ -/* - * This class was automatically generated with - * Castor 0.9.6, using an XML - * Schema. - * $Id$ - */ -package jalview.binding; - -import org.exolab.castor.xml.MarshalException; -import org.exolab.castor.xml.Marshaller; -import org.exolab.castor.xml.Unmarshaller; -import org.exolab.castor.xml.ValidationException; - -import org.xml.sax.ContentHandler; - -//---------------------------------/ -//- Imported classes and packages -/ -//---------------------------------/ -import java.io.IOException; -import java.io.Reader; -import java.io.Serializable; -import java.io.Writer; - -import java.util.Enumeration; -import java.util.Vector; - - -/** - * Class JalviewModelSequence2. - * - * @version $Revision$ $Date$ - */ -public class JalviewModelSequence2 implements java.io.Serializable -{ - //--------------------------/ - //- Class/Member Variables -/ - //--------------------------/ - - /** - * Field _items - */ - private java.util.Vector _items; - - //----------------/ - //- Constructors -/ - //----------------/ - public JalviewModelSequence2() - { - super(); - _items = new Vector(); - } - - //-- jalview.binding.JalviewModelSequence2() - //-----------/ - - /** - * DOCUMENT ME! - * - * @param vJalviewModelSequence2Item DOCUMENT ME! - * - * @throws java.lang.IndexOutOfBoundsException DOCUMENT ME! - */ - public void addJalviewModelSequence2Item( - jalview.binding.JalviewModelSequence2Item vJalviewModelSequence2Item) - throws java.lang.IndexOutOfBoundsException - { - _items.addElement(vJalviewModelSequence2Item); - } - - //-- void addJalviewModelSequence2Item(jalview.binding.JalviewModelSequence2Item) - - /** - * Method addJalviewModelSequence2Item - * - * - * - * @param index - * @param vJalviewModelSequence2Item - */ - public void addJalviewModelSequence2Item(int index, - jalview.binding.JalviewModelSequence2Item vJalviewModelSequence2Item) - throws java.lang.IndexOutOfBoundsException - { - _items.insertElementAt(vJalviewModelSequence2Item, index); - } - - //-- void addJalviewModelSequence2Item(int, jalview.binding.JalviewModelSequence2Item) - - /** - * Method enumerateJalviewModelSequence2Item - * - * - * - * @return Enumeration - */ - public java.util.Enumeration enumerateJalviewModelSequence2Item() - { - return _items.elements(); - } - - //-- java.util.Enumeration enumerateJalviewModelSequence2Item() - - /** - * Method getJalviewModelSequence2Item - * - * - * - * @param index - * @return JalviewModelSequence2Item - */ - public jalview.binding.JalviewModelSequence2Item getJalviewModelSequence2Item( - int index) throws java.lang.IndexOutOfBoundsException - { - //-- check bounds for index - if ((index < 0) || (index > _items.size())) - { - throw new IndexOutOfBoundsException(); - } - - return (jalview.binding.JalviewModelSequence2Item) _items.elementAt(index); - } - - //-- jalview.binding.JalviewModelSequence2Item getJalviewModelSequence2Item(int) - - /** - * Method getJalviewModelSequence2Item - * - * - * - * @return JalviewModelSequence2Item - */ - public jalview.binding.JalviewModelSequence2Item[] getJalviewModelSequence2Item() - { - int size = _items.size(); - jalview.binding.JalviewModelSequence2Item[] mArray = new jalview.binding.JalviewModelSequence2Item[size]; - - for (int index = 0; index < size; index++) - { - mArray[index] = (jalview.binding.JalviewModelSequence2Item) _items.elementAt(index); - } - - return mArray; - } - - //-- jalview.binding.JalviewModelSequence2Item[] getJalviewModelSequence2Item() - - /** - * Method getJalviewModelSequence2ItemCount - * - * - * - * @return int - */ - public int getJalviewModelSequence2ItemCount() - { - return _items.size(); - } - - //-- int getJalviewModelSequence2ItemCount() - - /** - * Method isValid - * - * - * - * @return boolean - */ - public boolean isValid() - { - try - { - validate(); - } - catch (org.exolab.castor.xml.ValidationException vex) - { - return false; - } - - return true; - } - - //-- boolean isValid() - - /** - * Method marshal - * - * - * - * @param out - */ - public void marshal(java.io.Writer out) - throws org.exolab.castor.xml.MarshalException, - org.exolab.castor.xml.ValidationException - { - Marshaller.marshal(this, out); - } - - //-- void marshal(java.io.Writer) - - /** - * Method marshal - * - * - * - * @param handler - */ - public void marshal(org.xml.sax.ContentHandler handler) - throws java.io.IOException, org.exolab.castor.xml.MarshalException, - org.exolab.castor.xml.ValidationException - { - Marshaller.marshal(this, handler); - } - - //-- void marshal(org.xml.sax.ContentHandler) - - /** - * Method removeAllJalviewModelSequence2Item - * - */ - public void removeAllJalviewModelSequence2Item() - { - _items.removeAllElements(); - } - - //-- void removeAllJalviewModelSequence2Item() - - /** - * Method removeJalviewModelSequence2Item - * - * - * - * @param index - * @return JalviewModelSequence2Item - */ - public jalview.binding.JalviewModelSequence2Item removeJalviewModelSequence2Item( - int index) - { - java.lang.Object obj = _items.elementAt(index); - _items.removeElementAt(index); - - return (jalview.binding.JalviewModelSequence2Item) obj; - } - - //-- jalview.binding.JalviewModelSequence2Item removeJalviewModelSequence2Item(int) - - /** - * Method setJalviewModelSequence2Item - * - * - * - * @param index - * @param vJalviewModelSequence2Item - */ - public void setJalviewModelSequence2Item(int index, - jalview.binding.JalviewModelSequence2Item vJalviewModelSequence2Item) - throws java.lang.IndexOutOfBoundsException - { - //-- check bounds for index - if ((index < 0) || (index > _items.size())) - { - throw new IndexOutOfBoundsException(); - } - - _items.setElementAt(vJalviewModelSequence2Item, index); - } - - //-- void setJalviewModelSequence2Item(int, jalview.binding.JalviewModelSequence2Item) - - /** - * Method setJalviewModelSequence2Item - * - * - * - * @param jalviewModelSequence2ItemArray - */ - public void setJalviewModelSequence2Item( - jalview.binding.JalviewModelSequence2Item[] jalviewModelSequence2ItemArray) - { - //-- copy array - _items.removeAllElements(); - - for (int i = 0; i < jalviewModelSequence2ItemArray.length; i++) - { - _items.addElement(jalviewModelSequence2ItemArray[i]); - } - } - - //-- void setJalviewModelSequence2Item(jalview.binding.JalviewModelSequence2Item) - - /** - * Method unmarshal - * - * - * - * @param reader - * @return Object - */ - public static java.lang.Object unmarshal(java.io.Reader reader) - throws org.exolab.castor.xml.MarshalException, - org.exolab.castor.xml.ValidationException - { - return (jalview.binding.JalviewModelSequence2) Unmarshaller.unmarshal(jalview.binding.JalviewModelSequence2.class, - reader); - } - - //-- java.lang.Object unmarshal(java.io.Reader) - - /** - * Method validate - * - */ - public void validate() throws org.exolab.castor.xml.ValidationException - { - org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); - validator.validate(this); - } - - //-- void validate() -} diff --git a/src/jalview/binding/JalviewModelSequence2Item.java b/src/jalview/binding/JalviewModelSequence2Item.java deleted file mode 100755 index 6e54565..0000000 --- a/src/jalview/binding/JalviewModelSequence2Item.java +++ /dev/null @@ -1,206 +0,0 @@ -/* - * This class was automatically generated with - * Castor 0.9.6, using an XML - * Schema. - * $Id$ - */ - -package jalview.binding; - -//---------------------------------/ -//- Imported classes and packages -/ -//---------------------------------/ - -import java.util.*; - -/** - * Class JalviewModelSequence2Item. - * - * @version $Revision$ $Date$ - */ -public class JalviewModelSequence2Item - implements java.io.Serializable -{ - - //--------------------------/ - //- Class/Member Variables -/ - //--------------------------/ - - /** - * Field _userColourSchemeList - */ - private java.util.Vector _userColourSchemeList; - - //----------------/ - //- Constructors -/ - //----------------/ - - public JalviewModelSequence2Item() - { - super(); - _userColourSchemeList = new Vector(); - } //-- jalview.binding.JalviewModelSequence2Item() - - //-----------/ - //- Methods -/ - //-----------/ - - /** - * Method addUserColourScheme - * - * - * - * @param vUserColourScheme - */ - public void addUserColourScheme(jalview.binding.UserColourScheme - vUserColourScheme) - throws java.lang.IndexOutOfBoundsException - { - _userColourSchemeList.addElement(vUserColourScheme); - } //-- void addUserColourScheme(jalview.binding.UserColourScheme) - - /** - * Method addUserColourScheme - * - * - * - * @param index - * @param vUserColourScheme - */ - public void addUserColourScheme(int index, - jalview.binding.UserColourScheme - vUserColourScheme) - throws java.lang.IndexOutOfBoundsException - { - _userColourSchemeList.insertElementAt(vUserColourScheme, index); - } //-- void addUserColourScheme(int, jalview.binding.UserColourScheme) - - /** - * Method enumerateUserColourScheme - * - * - * - * @return Enumeration - */ - public java.util.Enumeration enumerateUserColourScheme() - { - return _userColourSchemeList.elements(); - } //-- java.util.Enumeration enumerateUserColourScheme() - - /** - * Method getUserColourScheme - * - * - * - * @param index - * @return UserColourScheme - */ - public jalview.binding.UserColourScheme getUserColourScheme(int index) - throws java.lang.IndexOutOfBoundsException - { - //-- check bounds for index - if ( (index < 0) || (index > _userColourSchemeList.size())) - { - throw new IndexOutOfBoundsException(); - } - - return (jalview.binding.UserColourScheme) _userColourSchemeList.elementAt( - index); - } //-- jalview.binding.UserColourScheme getUserColourScheme(int) - - /** - * Method getUserColourScheme - * - * - * - * @return UserColourScheme - */ - public jalview.binding.UserColourScheme[] getUserColourScheme() - { - int size = _userColourSchemeList.size(); - jalview.binding.UserColourScheme[] mArray = new jalview.binding. - UserColourScheme[size]; - for (int index = 0; index < size; index++) - { - mArray[index] = (jalview.binding.UserColourScheme) _userColourSchemeList. - elementAt(index); - } - return mArray; - } //-- jalview.binding.UserColourScheme[] getUserColourScheme() - - /** - * Method getUserColourSchemeCount - * - * - * - * @return int - */ - public int getUserColourSchemeCount() - { - return _userColourSchemeList.size(); - } //-- int getUserColourSchemeCount() - - /** - * Method removeAllUserColourScheme - * - */ - public void removeAllUserColourScheme() - { - _userColourSchemeList.removeAllElements(); - } //-- void removeAllUserColourScheme() - - /** - * Method removeUserColourScheme - * - * - * - * @param index - * @return UserColourScheme - */ - public jalview.binding.UserColourScheme removeUserColourScheme(int index) - { - java.lang.Object obj = _userColourSchemeList.elementAt(index); - _userColourSchemeList.removeElementAt(index); - return (jalview.binding.UserColourScheme) obj; - } //-- jalview.binding.UserColourScheme removeUserColourScheme(int) - - /** - * Method setUserColourScheme - * - * - * - * @param index - * @param vUserColourScheme - */ - public void setUserColourScheme(int index, - jalview.binding.UserColourScheme - vUserColourScheme) - throws java.lang.IndexOutOfBoundsException - { - //-- check bounds for index - if ( (index < 0) || (index > _userColourSchemeList.size())) - { - throw new IndexOutOfBoundsException(); - } - _userColourSchemeList.setElementAt(vUserColourScheme, index); - } //-- void setUserColourScheme(int, jalview.binding.UserColourScheme) - - /** - * Method setUserColourScheme - * - * - * - * @param userColourSchemeArray - */ - public void setUserColourScheme(jalview.binding.UserColourScheme[] - userColourSchemeArray) - { - //-- copy array - _userColourSchemeList.removeAllElements(); - for (int i = 0; i < userColourSchemeArray.length; i++) - { - _userColourSchemeList.addElement(userColourSchemeArray[i]); - } - } //-- void setUserColourScheme(jalview.binding.UserColourScheme) - -} -- 1.7.10.2