/* * This class was automatically generated with * <a href="http://www.castor.org">Castor 0.9.5.4</a>, using an XML * Schema. * $Id: AstandReiknings.java,v 1.1 2005/03/15 11:35:07 birna Exp $ */ package is.idega.block.finance.business.li.sign_in_answer.types; //---------------------------------/ //- Imported classes and packages -/ //---------------------------------/ import java.util.Hashtable; /** * Class AstandReiknings. * * @version $Revision: 1.1 $ $Date: 2005/03/15 11:35:07 $ */ public class AstandReiknings implements java.io.Serializable { //--------------------------/ //- Class/Member Variables -/ //--------------------------/ /** * The OPINN type */ public static final int OPINN_TYPE = 0; /** * The instance of the OPINN type */ public static final AstandReiknings OPINN = new AstandReiknings(OPINN_TYPE, "OPINN"); /** * The LOKADUR type */ public static final int LOKADUR_TYPE = 1; /** * The instance of the LOKADUR type */ public static final AstandReiknings LOKADUR = new AstandReiknings(LOKADUR_TYPE, "LOKADUR"); /** * 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 AstandReiknings(int type, java.lang.String value) { super(); this.type = type; this.stringValue = value; } //-- is.idega.block.finance.business.li.sign_in_answer.types.AstandReiknings(int, java.lang.String) //-----------/ //- Methods -/ //-----------/ /** * Method enumerate * * Returns an enumeration of all possible instances of * AstandReiknings * * @return Enumeration */ public static java.util.Enumeration enumerate() { return _memberTable.elements(); } //-- java.util.Enumeration enumerate() /** * Method getType * * Returns the type of this AstandReiknings * * @return int */ public int getType() { return this.type; } //-- int getType() /** * Method init * * * * @return Hashtable */ private static java.util.Hashtable init() { Hashtable members = new Hashtable(); members.put("OPINN", OPINN); members.put("LOKADUR", LOKADUR); return members; } //-- java.util.Hashtable init() /** * Method readResolve * * will be called during deserialization to replace the * deserialized object with the correct constant instance. * <br/> * * @return Object */ private java.lang.Object readResolve() { return valueOf(this.stringValue); } //-- java.lang.Object readResolve() /** * Method toString * * Returns the String representation of this AstandReiknings * * @return String */ public java.lang.String toString() { return this.stringValue; } //-- java.lang.String toString() /** * Method valueOf * * Returns a new AstandReiknings based on the given String * value. * * @param string * @return AstandReiknings */ public static is.idega.block.finance.business.li.sign_in_answer.types.AstandReiknings valueOf(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 AstandReiknings"; throw new IllegalArgumentException(err); } return (AstandReiknings) obj; } //-- is.idega.block.finance.business.li.sign_in_answer.types.AstandReiknings valueOf(java.lang.String) }