
    
    
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 HiringTeamType extends AbstractEnumerated
{
    
    public static final EnumeratedFactory FACTORY_HiringTeamType = new HiringTeamTypeFactory();
    
    public static final HiringTeamType SMB = new HiringTeamType ("SMB", "SMB", "Small or medium business that hires occassionally", false);
    
    public static final HiringTeamType HR = new HiringTeamType ("HR", "HR", "Hiring / HR department within a large organisation", false);
    
    public static final HiringTeamType AGENCY = new HiringTeamType ("AGENCY", "AGENCY", "Agency recruiting on behalf of clients", false);

    private static final HiringTeamType[] allHiringTeamTypes =
        new HiringTeamType[] { SMB,HR,AGENCY};


    private static HiringTeamType[] getAllHiringTeamTypes ()
    {
        return allHiringTeamTypes;
    }

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



    static
    {
        defineAdditionalData ();
    }

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

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


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


    public EnumeratedFactory getFactory ()
    {
        return FACTORY_HiringTeamType;
    }

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

        HiringTeamType[] all = getAllHiringTeamTypes();
        int enumIndex = AbstractEnumerated.getIndexForName (all, name);

        return all[enumIndex];
    }


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

        HiringTeamType[] all = getAllHiringTeamTypes();
        int enumIndex = AbstractEnumerated.getIndexForValue (getAllHiringTeamTypes (), value);

        return all[enumIndex];
    }


    public static java.util.Enumeration getAll ()
    {
        return AbstractEnumerated.getAll (getAllHiringTeamTypes());
    }
    
    
    public static HiringTeamType[] getHiringTeamTypeArray ()
    {
        return (HiringTeamType[])getAllHiringTeamTypes().clone ();
    }


    public static void defineAdditionalData ()
    {
        
    }


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

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

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


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

        
        return attribs;
    }
}

    
