
    
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 HTStatus extends AbstractEnumerated
{
    
    public static final EnumeratedFactory FACTORY_HTStatus = new HTStatusFactory();
    
    public static final HTStatus ACTIVE = new HTStatus ("ACTIVE", "ACTIVE", "Active", false);
    
    public static final HTStatus CANCELLED = new HTStatus ("CANCELLED", "CANCELLED", "Cancelled", false);
    
    public static final HTStatus CLOSED = new HTStatus ("CLOSED", "CLOSED", "Closed", false);

    private static final HTStatus[] allHTStatuss =
        new HTStatus[] { ACTIVE,CANCELLED,CLOSED};


    private static HTStatus[] getAllHTStatuss ()
    {
        return allHTStatuss;
    }

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



    static
    {
        defineAdditionalData ();
    }

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

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


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


    public EnumeratedFactory getFactory ()
    {
        return FACTORY_HTStatus;
    }

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

        HTStatus[] all = getAllHTStatuss();
        int enumIndex = AbstractEnumerated.getIndexForName (all, name);

        return all[enumIndex];
    }


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

        HTStatus[] all = getAllHTStatuss();
        int enumIndex = AbstractEnumerated.getIndexForValue (getAllHTStatuss (), value);

        return all[enumIndex];
    }


    public static java.util.Enumeration getAll ()
    {
        return AbstractEnumerated.getAll (getAllHTStatuss());
    }
    
    
    public static HTStatus[] getHTStatusArray ()
    {
        return (HTStatus[])getAllHTStatuss().clone ();
    }


    public static void defineAdditionalData ()
    {
        
    }


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

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

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


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

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

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

