
    
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 AssessmentType extends AbstractEnumerated
{
    
    public static final EnumeratedFactory FACTORY_AssessmentType = new AssessmentTypeFactory();
    
    public static final AssessmentType SKILL = new AssessmentType ("SKILL", "SKILL", "Skill", false);
    
    public static final AssessmentType QUALIFICATION = new AssessmentType ("QUALIFICATION", "QUALIFICATION", "Qualification", false);
    
    public static final AssessmentType EXPERIENCE = new AssessmentType ("EXPERIENCE", "EXPERIENCE", "Experience", false);
    
    public static final AssessmentType KNOWLEDGE = new AssessmentType ("KNOWLEDGE", "KNOWLEDGE", "Knowledge", false);

    private static final AssessmentType[] allAssessmentTypes =
        new AssessmentType[] { SKILL,QUALIFICATION,EXPERIENCE,KNOWLEDGE};


    private static AssessmentType[] getAllAssessmentTypes ()
    {
        return allAssessmentTypes;
    }

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



    static
    {
        defineAdditionalData ();
    }

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

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


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


    public EnumeratedFactory getFactory ()
    {
        return FACTORY_AssessmentType;
    }

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

        AssessmentType[] all = getAllAssessmentTypes();
        int enumIndex = AbstractEnumerated.getIndexForName (all, name);

        return all[enumIndex];
    }


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

        AssessmentType[] all = getAllAssessmentTypes();
        int enumIndex = AbstractEnumerated.getIndexForValue (getAllAssessmentTypes (), value);

        return all[enumIndex];
    }


    public static java.util.Enumeration getAll ()
    {
        return AbstractEnumerated.getAll (getAllAssessmentTypes());
    }
    
    
    public static AssessmentType[] getAssessmentTypeArray ()
    {
        return (AssessmentType[])getAllAssessmentTypes().clone ();
    }


    public static void defineAdditionalData ()
    {
        
    }


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

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

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


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

        
        return attribs;
    }
}

