DrillDownDefinitionTypeType.java :  » Report » jmagallanes-1.0 » com » calipso » reportgenerator » reportdefinitions » types » Java Open Source

Java Open Source » Report » jmagallanes 1.0 
jmagallanes 1.0 » com » calipso » reportgenerator » reportdefinitions » types » DrillDownDefinitionTypeType.java
/*
 * This class was automatically generated with 
 * <a href="http://www.castor.org">Castor 0.9.4.3</a>, using an XML
 * Schema.
 * $Id$
 */

package com.calipso.reportgenerator.reportdefinitions.types;

  //---------------------------------/
 //- Imported classes and packages -/
//---------------------------------/

import java.io.Serializable;
import java.util.Enumeration;
import java.util.Hashtable;
import org.exolab.castor.xml.Marshaller;
import org.exolab.castor.xml.Unmarshaller;

/**
 * Class DrillDownDefinitionTypeType.
 * 
 * @version $Revision$ $Date$
 */
public class DrillDownDefinitionTypeType implements java.io.Serializable {


      //--------------------------/
     //- Class/Member Variables -/
    //--------------------------/

    /**
     * The CUBE type
     */
    public static final int CUBE_TYPE = 0;

    /**
     * The instance of the CUBE type
     */
    public static final DrillDownDefinitionTypeType CUBE = new DrillDownDefinitionTypeType(CUBE_TYPE, "CUBE");

    /**
     * The MICROREPORT type
     */
    public static final int MICROREPORT_TYPE = 1;

    /**
     * The instance of the MICROREPORT type
     */
    public static final DrillDownDefinitionTypeType MICROREPORT = new DrillDownDefinitionTypeType(MICROREPORT_TYPE, "MICROREPORT");

    /**
     * The STATICWEB type
     */
    public static final int STATICWEB_TYPE = 2;

    /**
     * The instance of the STATICWEB type
     */
    public static final DrillDownDefinitionTypeType STATICWEB = new DrillDownDefinitionTypeType(STATICWEB_TYPE, "STATICWEB");

    /**
     * Field _memberTable
     */
    private static java.util.Hashtable _memberTable = init();

    /**
     * Field type
     */
    private int type = -1;

    /**
     * Field stringValue
     */
    private java.lang.String stringValue = null;


      //----------------/
     //- Constructors -/
    //----------------/

    private DrillDownDefinitionTypeType(int type, java.lang.String value) {
        super();
        this.type = type;
        this.stringValue = value;
    } //-- com.calipso.reportgenerator.reportdefinitions.types.DrillDownDefinitionTypeType(int, java.lang.String)


      //-----------/
     //- Methods -/
    //-----------/

    /**
     * Method enumerateReturns an enumeration of all possible
     * instances of DrillDownDefinitionTypeType
     */
    public static java.util.Enumeration enumerate()
    {
        return _memberTable.elements();
    } //-- java.util.Enumeration enumerate() 

    /**
     * Method getTypeReturns the type of this
     * DrillDownDefinitionTypeType
     */
    public int getType()
    {
        return this.type;
    } //-- int getType() 

    /**
     * Method init
     */
    private static java.util.Hashtable init()
    {
        Hashtable members = new Hashtable();
        members.put("CUBE", CUBE);
        members.put("MICROREPORT", MICROREPORT);
        members.put("STATICWEB", STATICWEB);
        return members;
    } //-- java.util.Hashtable init() 

    /**
     * Method toStringReturns the String representation of this
     * DrillDownDefinitionTypeType
     */
    public java.lang.String toString()
    {
        return this.stringValue;
    } //-- java.lang.String toString() 

    /**
     * Method valueOfReturns a new DrillDownDefinitionTypeType
     * based on the given String value.
     * 
     * @param string
     */
    public static com.calipso.reportgenerator.reportdefinitions.types.DrillDownDefinitionTypeType valueOf(java.lang.String string)
    {
        java.lang.Object obj = null;
        if (string != null) obj = _memberTable.get(string);
        if (obj == null) {
            String err = "'" + string + "' is not a valid DrillDownDefinitionTypeType";
            throw new IllegalArgumentException(err);
        }
        return (DrillDownDefinitionTypeType) obj;
    } //-- com.calipso.reportgenerator.reportdefinitions.types.DrillDownDefinitionTypeType valueOf(java.lang.String) 

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.