X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fschemabinding%2Fversion2%2Ftypes%2FColourThreshTypeType.java;fp=src%2Fjalview%2Fschemabinding%2Fversion2%2Ftypes%2FColourThreshTypeType.java;h=0000000000000000000000000000000000000000;hb=ca8504cf9d10874dce9f07cf7a9d933853fe0dd0;hp=03304110770ff8c9f458998cc5ab07c617f61789;hpb=775e7bc104584e88dddcea73fbf02c66f5200c16;p=jalview.git diff --git a/src/jalview/schemabinding/version2/types/ColourThreshTypeType.java b/src/jalview/schemabinding/version2/types/ColourThreshTypeType.java deleted file mode 100644 index 0330411..0000000 --- a/src/jalview/schemabinding/version2/types/ColourThreshTypeType.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * This class was automatically generated with - * Castor 1.1, using an XML - * Schema. - * $Id$ - */ - -package jalview.schemabinding.version2.types; - - //---------------------------------/ - //- Imported classes and packages -/ -//---------------------------------/ - -import java.util.Hashtable; - -/** - * Class ColourThreshTypeType. - * - * @version $Revision$ $Date$ - */ -public class ColourThreshTypeType implements java.io.Serializable { - - - //--------------------------/ - //- Class/Member Variables -/ - //--------------------------/ - - /** - * The NONE type - */ - public static final int NONE_TYPE = 0; - - /** - * The instance of the NONE type - */ - public static final ColourThreshTypeType NONE = new ColourThreshTypeType(NONE_TYPE, "NONE"); - - /** - * The ABOVE type - */ - public static final int ABOVE_TYPE = 1; - - /** - * The instance of the ABOVE type - */ - public static final ColourThreshTypeType ABOVE = new ColourThreshTypeType(ABOVE_TYPE, "ABOVE"); - - /** - * The BELOW type - */ - public static final int BELOW_TYPE = 2; - - /** - * The instance of the BELOW type - */ - public static final ColourThreshTypeType BELOW = new ColourThreshTypeType(BELOW_TYPE, "BELOW"); - - /** - * Field _memberTable. - */ - private static java.util.Hashtable _memberTable = init(); - - /** - * Field type. - */ - private int type = -1; - - /** - * Field stringValue. - */ - private java.lang.String stringValue = null; - - - //----------------/ - //- Constructors -/ - //----------------/ - - private ColourThreshTypeType(final int type, final java.lang.String value) { - super(); - this.type = type; - this.stringValue = value; - } - - - //-----------/ - //- Methods -/ - //-----------/ - - /** - * Method enumerate.Returns an enumeration of all possible - * instances of ColourThreshTypeType - * - * @return an Enumeration over all possible instances of - * ColourThreshTypeType - */ - public static java.util.Enumeration enumerate( - ) { - return _memberTable.elements(); - } - - /** - * Method getType.Returns the type of this ColourThreshTypeType - * - * @return the type of this ColourThreshTypeType - */ - public int getType( - ) { - return this.type; - } - - /** - * Method init. - * - * @return the initialized Hashtable for the member table - */ - private static java.util.Hashtable init( - ) { - Hashtable members = new Hashtable(); - members.put("NONE", NONE); - members.put("ABOVE", ABOVE); - members.put("BELOW", BELOW); - return members; - } - - /** - * Method readResolve. will be called during deserialization to - * replace the deserialized object with the correct constant - * instance. - * - * @return this deserialized object - */ - private java.lang.Object readResolve( - ) { - return valueOf(this.stringValue); - } - - /** - * Method toString.Returns the String representation of this - * ColourThreshTypeType - * - * @return the String representation of this ColourThreshTypeTyp - */ - public java.lang.String toString( - ) { - return this.stringValue; - } - - /** - * Method valueOf.Returns a new ColourThreshTypeType based on - * the given String value. - * - * @param string - * @return the ColourThreshTypeType value of parameter 'string' - */ - public static jalview.schemabinding.version2.types.ColourThreshTypeType valueOf( - final java.lang.String string) { - java.lang.Object obj = null; - if (string != null) { - obj = _memberTable.get(string); - } - if (obj == null) { - String err = "" + string + " is not a valid ColourThreshTypeType"; - throw new IllegalArgumentException(err); - } - return (ColourThreshTypeType) obj; - } - -}