
    
    
package performa.orm.types;

import java.util.*;
import oneit.utils.*;



/**
 * 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 TimeZone extends AbstractEnumerated
{
    
    public static final EnumeratedFactory FACTORY_TimeZone = new TimeZoneFactory();
    
    public static final TimeZone T1 = new TimeZone ("T1", "T1", "T1", false);

    private static final TimeZone[] allTimeZones =
        new TimeZone[] { T1};


    private static TimeZone[] getAllTimeZones ()
    {
        return allTimeZones;
    }

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



    static
    {
        defineAdditionalData ();
    }

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

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


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


    public EnumeratedFactory getFactory ()
    {
        return FACTORY_TimeZone;
    }

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

        TimeZone[] all = getAllTimeZones();
        int enumIndex = AbstractEnumerated.getIndexForName (all, name);

        return all[enumIndex];
    }


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

        TimeZone[] all = getAllTimeZones();
        int enumIndex = AbstractEnumerated.getIndexForValue (getAllTimeZones (), value);

        return all[enumIndex];
    }


    public static java.util.Enumeration getAll ()
    {
        return AbstractEnumerated.getAll (getAllTimeZones());
    }
    
    
    public static TimeZone[] getTimeZoneArray ()
    {
        return (TimeZone[])getAllTimeZones().clone ();
    }


    public static void defineAdditionalData ()
    {
        
    }


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

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

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


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

        
        return attribs;
    }
}

    
