
    
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 NotificationType extends AbstractEnumerated
{
    
    public static final EnumeratedFactory FACTORY_NotificationType = new NotificationTypeFactory();
    
    public static final NotificationType CLOSED_JOB = new NotificationType ("CLOSED_JOB", "CLOSED_JOB", "Closed Job", false);
    
    public static final NotificationType TRIAL = new NotificationType ("TRIAL", "TRIAL", "Trial", false);

    private static final NotificationType[] allNotificationTypes =
        new NotificationType[] { CLOSED_JOB,TRIAL};


    private static NotificationType[] getAllNotificationTypes ()
    {
        return allNotificationTypes;
    }

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



    static
    {
        defineAdditionalData ();
    }

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

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


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


    public EnumeratedFactory getFactory ()
    {
        return FACTORY_NotificationType;
    }

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

        NotificationType[] all = getAllNotificationTypes();
        int enumIndex = AbstractEnumerated.getIndexForName (all, name);

        return all[enumIndex];
    }


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

        NotificationType[] all = getAllNotificationTypes();
        int enumIndex = AbstractEnumerated.getIndexForValue (getAllNotificationTypes (), value);

        return all[enumIndex];
    }


    public static java.util.Enumeration getAll ()
    {
        return AbstractEnumerated.getAll (getAllNotificationTypes());
    }
    
    
    public static NotificationType[] getNotificationTypeArray ()
    {
        return (NotificationType[])getAllNotificationTypes().clone ();
    }


    public static void defineAdditionalData ()
    {
        
    }


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

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

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


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

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

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

