
    
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 ApplicantSource extends AbstractEnumerated
{
    
    public static final EnumeratedFactory FACTORY_ApplicantSource = new ApplicantSourceFactory();
    
    public static final ApplicantSource INGEST = new ApplicantSource ("INGEST", "INGEST", "Ingest", false);
    
    public static final ApplicantSource ATS = new ApplicantSource ("ATS", "ATS", "ATS", false);
    
    public static final ApplicantSource APPLY_URL = new ApplicantSource ("APPLY_URL", "APPLY_URL", "Apply URL", false);

    private static final ApplicantSource[] allApplicantSources =
        new ApplicantSource[] { INGEST,ATS,APPLY_URL};


    private static ApplicantSource[] getAllApplicantSources ()
    {
        return allApplicantSources;
    }

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



    static
    {
        defineAdditionalData ();
    }

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

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


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


    public EnumeratedFactory getFactory ()
    {
        return FACTORY_ApplicantSource;
    }

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

        ApplicantSource[] all = getAllApplicantSources();
        int enumIndex = AbstractEnumerated.getIndexForName (all, name);

        return all[enumIndex];
    }


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

        ApplicantSource[] all = getAllApplicantSources();
        int enumIndex = AbstractEnumerated.getIndexForValue (getAllApplicantSources (), value);

        return all[enumIndex];
    }


    public static java.util.Enumeration getAll ()
    {
        return AbstractEnumerated.getAll (getAllApplicantSources());
    }
    
    
    public static ApplicantSource[] getApplicantSourceArray ()
    {
        return (ApplicantSource[])getAllApplicantSources().clone ();
    }


    public static void defineAdditionalData ()
    {
        
    }


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

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

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


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

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

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

