⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 basictypetypetype.java

📁 一个工作流的原型
💻 JAVA
字号:
/*
 * This class was automatically generated with 
 * <a href="http://www.castor.org">Castor cvs.0.9.6</a>, using an
 * XML Schema.
 * $Id$
 */

package workflow.xwfbox.process.types;

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

import java.io.Serializable;
import java.util.Enumeration;
import java.util.Hashtable;

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


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

    /**
     * The STRING type
     */
    public static final int STRING_TYPE = 0;

    /**
     * The instance of the STRING type
     */
    public static final BasicTypeTypeType STRING = new BasicTypeTypeType(STRING_TYPE, "STRING");

    /**
     * The FLOAT type
     */
    public static final int FLOAT_TYPE = 1;

    /**
     * The instance of the FLOAT type
     */
    public static final BasicTypeTypeType FLOAT = new BasicTypeTypeType(FLOAT_TYPE, "FLOAT");

    /**
     * The INTEGER type
     */
    public static final int INTEGER_TYPE = 2;

    /**
     * The instance of the INTEGER type
     */
    public static final BasicTypeTypeType INTEGER = new BasicTypeTypeType(INTEGER_TYPE, "INTEGER");

    /**
     * The REFERENCE type
     */
    public static final int REFERENCE_TYPE = 3;

    /**
     * The instance of the REFERENCE type
     */
    public static final BasicTypeTypeType REFERENCE = new BasicTypeTypeType(REFERENCE_TYPE, "REFERENCE");

    /**
     * The DATETIME type
     */
    public static final int DATETIME_TYPE = 4;

    /**
     * The instance of the DATETIME type
     */
    public static final BasicTypeTypeType DATETIME = new BasicTypeTypeType(DATETIME_TYPE, "DATETIME");

    /**
     * The BOOLEAN type
     */
    public static final int BOOLEAN_TYPE = 5;

    /**
     * The instance of the BOOLEAN type
     */
    public static final BasicTypeTypeType BOOLEAN = new BasicTypeTypeType(BOOLEAN_TYPE, "BOOLEAN");

    /**
     * The PERFORMER type
     */
    public static final int PERFORMER_TYPE = 6;

    /**
     * The instance of the PERFORMER type
     */
    public static final BasicTypeTypeType PERFORMER = new BasicTypeTypeType(PERFORMER_TYPE, "PERFORMER");

    /**
     * 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 BasicTypeTypeType(int type, java.lang.String value) {
        super();
        this.type = type;
        this.stringValue = value;
    } //-- workflow.xwfbox.process.types.BasicTypeTypeType(int, java.lang.String)


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

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

    /**
     * Method getType
     * 
     * Returns the type of this BasicTypeTypeType
     * 
     * @return int
     */
    public int getType()
    {
        return this.type;
    } //-- int getType() 

    /**
     * Method init
     * 
     * 
     * 
     * @return Hashtable
     */
    private static java.util.Hashtable init()
    {
        Hashtable members = new Hashtable();
        members.put("STRING", STRING);
        members.put("FLOAT", FLOAT);
        members.put("INTEGER", INTEGER);
        members.put("REFERENCE", REFERENCE);
        members.put("DATETIME", DATETIME);
        members.put("BOOLEAN", BOOLEAN);
        members.put("PERFORMER", PERFORMER);
        return members;
    } //-- java.util.Hashtable init() 

    /**
     * Method readResolve
     * 
     *  will be called during deserialization to replace the
     * deserialized object with the correct constant instance.
     * <br/>
     * 
     * @return Object
     */
    private java.lang.Object readResolve()
    {
        return valueOf(this.stringValue);
    } //-- java.lang.Object readResolve() 

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

    /**
     * Method valueOf
     * 
     * Returns a new BasicTypeTypeType based on the given String
     * value.
     * 
     * @param string
     * @return BasicTypeTypeType
     */
    public static workflow.xwfbox.process.types.BasicTypeTypeType 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 BasicTypeTypeType";
            throw new IllegalArgumentException(err);
        }
        return (BasicTypeTypeType) obj;
    } //-- workflow.xwfbox.process.types.BasicTypeTypeType valueOf(java.lang.String) 

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -