
    
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 AppProcessOption extends AbstractEnumerated
{
    
    public static final EnumeratedFactory FACTORY_AppProcessOption = new AppProcessOptionFactory();
    
    public static final AppProcessOption TO_SHORTLIST = new AppProcessOption ("TO_SHORTLIST", "TO_SHORTLIST", "To Shortlisted", false);
    
    public static final AppProcessOption REMOVE_FROM_SHORTLIST = new AppProcessOption ("REMOVE_FROM_SHORTLIST", "REMOVE_FROM_SHORTLIST", "Remove From Shortlisted", false);
    
    public static final AppProcessOption TO_UNSUITABLE = new AppProcessOption ("TO_UNSUITABLE", "TO_UNSUITABLE", "To Unsuitable", false);
    
    public static final AppProcessOption REMOVE_FROM_UNSUITABLE = new AppProcessOption ("REMOVE_FROM_UNSUITABLE", "REMOVE_FROM_UNSUITABLE", "Remove From Unsuitable", false);

    private static final AppProcessOption[] allAppProcessOptions =
        new AppProcessOption[] { TO_SHORTLIST,REMOVE_FROM_SHORTLIST,TO_UNSUITABLE,REMOVE_FROM_UNSUITABLE};


    private static AppProcessOption[] getAllAppProcessOptions ()
    {
        return allAppProcessOptions;
    }

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



    static
    {
        defineAdditionalData ();
    }

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

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


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


    public EnumeratedFactory getFactory ()
    {
        return FACTORY_AppProcessOption;
    }

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

        AppProcessOption[] all = getAllAppProcessOptions();
        int enumIndex = AbstractEnumerated.getIndexForName (all, name);

        return all[enumIndex];
    }


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

        AppProcessOption[] all = getAllAppProcessOptions();
        int enumIndex = AbstractEnumerated.getIndexForValue (getAllAppProcessOptions (), value);

        return all[enumIndex];
    }


    public static java.util.Enumeration getAll ()
    {
        return AbstractEnumerated.getAll (getAllAppProcessOptions());
    }
    
    
    public static AppProcessOption[] getAppProcessOptionArray ()
    {
        return (AppProcessOption[])getAllAppProcessOptions().clone ();
    }


    public static void defineAdditionalData ()
    {
        
    }


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

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

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


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

        
        return attribs;
    }
}

