
    
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 JobType extends AbstractEnumerated
{
    
    public static final EnumeratedFactory FACTORY_JobType = new JobTypeFactory();
    
    public static final JobType CASUAL = new JobType ("CASUAL", "CASUAL", "Casual", false);
    
    public static final JobType FULL_TIME = new JobType ("FULL_TIME", "FULL_TIME", "Full Time", false);
    
    public static final JobType PART_TIME = new JobType ("PART_TIME", "PART_TIME", "Part Time", false);
    
    public static final JobType CONTRACT = new JobType ("CONTRACT", "CONTRACT", "Contract", false);

    private static final JobType[] allJobTypes =
        new JobType[] { CASUAL,FULL_TIME,PART_TIME,CONTRACT};


    private static JobType[] getAllJobTypes ()
    {
        return allJobTypes;
    }

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



    static
    {
        defineAdditionalData ();
    }

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

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


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


    public EnumeratedFactory getFactory ()
    {
        return FACTORY_JobType;
    }

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

        JobType[] all = getAllJobTypes();
        int enumIndex = AbstractEnumerated.getIndexForName (all, name);

        return all[enumIndex];
    }


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

        JobType[] all = getAllJobTypes();
        int enumIndex = AbstractEnumerated.getIndexForValue (getAllJobTypes (), value);

        return all[enumIndex];
    }


    public static java.util.Enumeration getAll ()
    {
        return AbstractEnumerated.getAll (getAllJobTypes());
    }
    
    
    public static JobType[] getJobTypeArray ()
    {
        return (JobType[])getAllJobTypes().clone ();
    }


    public static void defineAdditionalData ()
    {
        
    }


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

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

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


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

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

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

