
    
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 ApplicationStatus extends AbstractEnumerated
{
    
    public static final EnumeratedFactory FACTORY_ApplicationStatus = new ApplicationStatusFactory();
    
    public static final ApplicationStatus DRAFT = new ApplicationStatus ("DRAFT", "DRAFT", "Draft", false);
    
    public static final ApplicationStatus SUBMITTED = new ApplicationStatus ("SUBMITTED", "SUBMITTED", "Submitted", false);
    
    public static final ApplicationStatus SHORTLISTED = new ApplicationStatus ("SHORTLISTED", "SHORTLISTED", "Shortlisted", false);
    
    public static final ApplicationStatus UNSUITABLE = new ApplicationStatus ("UNSUITABLE", "UNSUITABLE", "Unsuitable", false);

    private static final ApplicationStatus[] allApplicationStatuss =
        new ApplicationStatus[] { DRAFT,SUBMITTED,SHORTLISTED,UNSUITABLE};


    private static ApplicationStatus[] getAllApplicationStatuss ()
    {
        return allApplicationStatuss;
    }

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



    static
    {
        defineAdditionalData ();
    }

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

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


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


    public EnumeratedFactory getFactory ()
    {
        return FACTORY_ApplicationStatus;
    }

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

        ApplicationStatus[] all = getAllApplicationStatuss();
        int enumIndex = AbstractEnumerated.getIndexForName (all, name);

        return all[enumIndex];
    }


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

        ApplicationStatus[] all = getAllApplicationStatuss();
        int enumIndex = AbstractEnumerated.getIndexForValue (getAllApplicationStatuss (), value);

        return all[enumIndex];
    }


    public static java.util.Enumeration getAll ()
    {
        return AbstractEnumerated.getAll (getAllApplicationStatuss());
    }
    
    
    public static ApplicationStatus[] getApplicationStatusArray ()
    {
        return (ApplicationStatus[])getAllApplicationStatuss().clone ();
    }


    public static void defineAdditionalData ()
    {
        
    }


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

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

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


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

        
        return attribs;
    }
}

