
    
package performa.orm.types;

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



/**
 * 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 ApplicationFilter extends AbstractEnumerated
{
    
    public static final EnumeratedFactory FACTORY_ApplicationFilter = new ApplicationFilterFactory();
    
    public static final ApplicationFilter ALL_APPLICATIONS = new ApplicationFilter ("ALL_APPLICATIONS", "ALL_APPLICATIONS", "All Applicants", false);
    
    public static final ApplicationFilter HAS_REQ = new ApplicationFilter ("HAS_REQ", "HAS_REQ", "Requirements", false);
    
    public static final ApplicationFilter NO_REQ = new ApplicationFilter ("NO_REQ", "NO_REQ", "Requirements", false);

    private static final ApplicationFilter[] allApplicationFilters =
        new ApplicationFilter[] { ALL_APPLICATIONS,HAS_REQ,NO_REQ};


    private static ApplicationFilter[] getAllApplicationFilters ()
    {
        return allApplicationFilters;
    }

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



    static
    {
        defineAdditionalData ();
    }

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

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


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


    public EnumeratedFactory getFactory ()
    {
        return FACTORY_ApplicationFilter;
    }

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

        ApplicationFilter[] all = getAllApplicationFilters();
        int enumIndex = AbstractEnumerated.getIndexForName (all, name);

        return all[enumIndex];
    }


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

        ApplicationFilter[] all = getAllApplicationFilters();
        int enumIndex = AbstractEnumerated.getIndexForValue (getAllApplicationFilters (), value);

        return all[enumIndex];
    }


    public static java.util.Enumeration getAll ()
    {
        return AbstractEnumerated.getAll (getAllApplicationFilters());
    }
    
    
    public static ApplicationFilter[] getApplicationFilterArray ()
    {
        return (ApplicationFilter[])getAllApplicationFilters().clone ();
    }


    public static void defineAdditionalData ()
    {
        
    }


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

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

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


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

        
        return attribs;
    }
    
    public static class ApplicationFilterPipeLineFactory<From, Me extends ApplicationFilter> extends AbstractEnumerated.EnumPipeLine<From, Me>
    {
        public <Prev> ApplicationFilterPipeLineFactory (PipeLine<From, Prev> pipeLine, Pipe<Prev, Me> nextPipe)
        {
            super (pipeLine, nextPipe);
        }
        
        public ApplicationFilterPipeLineFactory (From seed)
        {
            super(seed);
        }

        public ApplicationFilterPipeLineFactory (Collection<From> seed)
        {
            super(seed);
        }
        
        public PipeLine<From, ? extends Object> to(String name)
        {
            
            return super.to(name);
        }
        
    }
}

