
    
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 COMPREHENSIVE = new AssessmentType ("COMPREHENSIVE", "COMPREHENSIVE", "Talentology Comprehensive", false);
    
    public static final AssessmentType EXPRESS = new AssessmentType ("EXPRESS", "EXPRESS", "Talentology Express", false);

    private static final AssessmentType[] allAssessmentTypes =
        new AssessmentType[] { COMPREHENSIVE,EXPRESS};


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

    private transient String HeaderDesc;

    private transient String AdditionalDesc;

    private AssessmentType (String name, String value, String description, boolean disabled)
    {
        super (name, value, description, disabled);
    }

    public String getHeaderDesc()
    {
    return HeaderDesc;
    }

    public String getAdditionalDesc()
    {
    return AdditionalDesc;
    }
    
    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 ()
    {
        COMPREHENSIVE.HeaderDesc = " – Up to 96% accuracy on candidate suitability (250 Questions - 20 Minutes)";
        COMPREHENSIVE.AdditionalDesc = "Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh.";
        EXPRESS.HeaderDesc = " (30 Questions - 5 Minutes)";
        EXPRESS.AdditionalDesc = "Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut.";
        
    }


    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 ();

        attribs.put ("HeaderDesc", ArrayFormatter.toObject(getHeaderDesc()));
        attribs.put ("AdditionalDesc", ArrayFormatter.toObject(getAdditionalDesc()));
        
        return attribs;
    }
}

