
    
package performa.orm.types;

import java.util.*;
import oneit.utils.*;



/**
 * This class was generated using constGen.bat.
 * DO NOT MODIFY THIS CODE.
 * Edit the associated .xml file, and regenerate this file
 * constGen (directory) (file minus extension)
 * e.g. constGen C:\...\sql FieldType
 */

public class CultureClass extends AbstractEnumerated
{
    
    public static final EnumeratedFactory FACTORY_CultureClass = new CultureClassFactory();
    
    public static final CultureClass BELONGING = new CultureClass ("BELONGING", "BELONGING", "Belonging", false);
    
    public static final CultureClass CLIMATE = new CultureClass ("CLIMATE", "CLIMATE", "Climate", false);
    
    public static final CultureClass PERFORMANCE = new CultureClass ("PERFORMANCE", "PERFORMANCE", "Performance", false);

    private static final CultureClass[] allCultureClasss =
        new CultureClass[] { BELONGING,CLIMATE,PERFORMANCE};


    private static CultureClass[] getAllCultureClasss ()
    {
        return allCultureClasss;
    }

    private CultureClass (String name, String value, String description, boolean disabled)
    {
        super (name, value, description, disabled);
    }
    
    public static final Comparator COMPARE_BY_POSITION = new CompareEnumByPosition (allCultureClasss);



    static
    {
        defineAdditionalData ();
    }

    public boolean isEqual (CultureClass other)
    {
    return this.name.equals (other.name);
    }

    public Enumeration getAllInstances ()
    {
        return CultureClass.getAll ();
    }


    private Object readResolve() throws java.io.ObjectStreamException
    {
        return CultureClass.forName (this.name);
    }


    public EnumeratedFactory getFactory ()
    {
        return FACTORY_CultureClass;
    }

    public static CultureClass forName (String name)
    {
        if (name == null) { return null; }

        CultureClass[] all = getAllCultureClasss();
        int enumIndex = AbstractEnumerated.getIndexForName (all, name);

        return all[enumIndex];
    }


    public static CultureClass forValue (String value)
    {
        if (value == null) { return null; }

        CultureClass[] all = getAllCultureClasss();
        int enumIndex = AbstractEnumerated.getIndexForValue (getAllCultureClasss (), value);

        return all[enumIndex];
    }


    public static java.util.Enumeration getAll ()
    {
        return AbstractEnumerated.getAll (getAllCultureClasss());
    }
    
    
    public static CultureClass[] getCultureClassArray ()
    {
        return (CultureClass[])getAllCultureClasss().clone ();
    }


    public static void defineAdditionalData ()
    {
        
    }


    static class CultureClassFactory implements EnumeratedFactory
    {
        public AbstractEnumerated getForName (String name)
        {
            return CultureClass.forName (name);
        }

        public AbstractEnumerated getForValue (String name)
        {
            return CultureClass.forValue (name);
        }

        public Enumeration getAll ()
        {
            return CultureClass.getAll ();
        }
    }


    public Map getAdditionalAttributes ()
    {
        Map attribs = new HashMap ();

        
        return attribs;
    }
}

