
    
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 StepType extends AbstractEnumerated
{
    
    public static final EnumeratedFactory FACTORY_StepType = new StepTypeFactory();
    
    public static final StepType REQUIREMENT_FIT = new StepType ("REQUIREMENT_FIT", "REQUIREMENT_FIT", "Requirement Fit", false);
    
    public static final StepType CULTURE_FIT = new StepType ("CULTURE_FIT", "CULTURE_FIT", "Culture Fit", false);
    
    public static final StepType ROLE_FIT = new StepType ("ROLE_FIT", "ROLE_FIT", "Role Fit", false);
    
    public static final StepType DIVERSITY = new StepType ("DIVERSITY", "DIVERSITY", "Diversity", false);

    private static final StepType[] allStepTypes =
        new StepType[] { REQUIREMENT_FIT,CULTURE_FIT,ROLE_FIT,DIVERSITY};


    private static StepType[] getAllStepTypes ()
    {
        return allStepTypes;
    }

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



    static
    {
        defineAdditionalData ();
    }

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

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


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


    public EnumeratedFactory getFactory ()
    {
        return FACTORY_StepType;
    }

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

        StepType[] all = getAllStepTypes();
        int enumIndex = AbstractEnumerated.getIndexForName (all, name);

        return all[enumIndex];
    }


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

        StepType[] all = getAllStepTypes();
        int enumIndex = AbstractEnumerated.getIndexForValue (getAllStepTypes (), value);

        return all[enumIndex];
    }


    public static java.util.Enumeration getAll ()
    {
        return AbstractEnumerated.getAll (getAllStepTypes());
    }
    
    
    public static StepType[] getStepTypeArray ()
    {
        return (StepType[])getAllStepTypes().clone ();
    }


    public static void defineAdditionalData ()
    {
        
    }


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

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

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


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

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

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

