
    
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 ResponseAction extends AbstractEnumerated
{
    
    public static final EnumeratedFactory FACTORY_ResponseAction = new ResponseActionFactory();
    
    public static final ResponseAction EMAIL_RESPONSE = new ResponseAction ("EMAIL_RESPONSE", "EMAIL_RESPONSE", "Email Response", false);
    
    public static final ResponseAction CONTINUE = new ResponseAction ("CONTINUE", "CONTINUE", "Continue", false);

    private static final ResponseAction[] allResponseActions =
        new ResponseAction[] { EMAIL_RESPONSE,CONTINUE};


    private static ResponseAction[] getAllResponseActions ()
    {
        return allResponseActions;
    }

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



    static
    {
        defineAdditionalData ();
    }

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

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


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


    public EnumeratedFactory getFactory ()
    {
        return FACTORY_ResponseAction;
    }

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

        ResponseAction[] all = getAllResponseActions();
        int enumIndex = AbstractEnumerated.getIndexForName (all, name);

        return all[enumIndex];
    }


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

        ResponseAction[] all = getAllResponseActions();
        int enumIndex = AbstractEnumerated.getIndexForValue (getAllResponseActions (), value);

        return all[enumIndex];
    }


    public static java.util.Enumeration getAll ()
    {
        return AbstractEnumerated.getAll (getAllResponseActions());
    }
    
    
    public static ResponseAction[] getResponseActionArray ()
    {
        return (ResponseAction[])getAllResponseActions().clone ();
    }


    public static void defineAdditionalData ()
    {
        
    }


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

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

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


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

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

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

