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

📄 participanttypetypetype.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 ParticipantTypeTypeType.
 * 
 * @version $Revision$ $Date$
 */
public class ParticipantTypeTypeType implements java.io.Serializable {


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

    /**
     * The RESOURCE_SET type
     */
    public static final int RESOURCE_SET_TYPE = 0;

    /**
     * The instance of the RESOURCE_SET type
     */
    public static final ParticipantTypeTypeType RESOURCE_SET = new ParticipantTypeTypeType(RESOURCE_SET_TYPE, "RESOURCE_SET");

    /**
     * The RESOURCE type
     */
    public static final int RESOURCE_TYPE = 1;

    /**
     * The instance of the RESOURCE type
     */
    public static final ParticipantTypeTypeType RESOURCE = new ParticipantTypeTypeType(RESOURCE_TYPE, "RESOURCE");

    /**
     * The ROLE type
     */
    public static final int ROLE_TYPE = 2;

    /**
     * The instance of the ROLE type
     */
    public static final ParticipantTypeTypeType ROLE = new ParticipantTypeTypeType(ROLE_TYPE, "ROLE");

    /**
     * The ORGANIZATIONAL_UNIT type
     */
    public static final int ORGANIZATIONAL_UNIT_TYPE = 3;

    /**
     * The instance of the ORGANIZATIONAL_UNIT type
     */
    public static final ParticipantTypeTypeType ORGANIZATIONAL_UNIT = new ParticipantTypeTypeType(ORGANIZATIONAL_UNIT_TYPE, "ORGANIZATIONAL_UNIT");

    /**
     * The HUMAN type
     */
    public static final int HUMAN_TYPE = 4;

    /**
     * The instance of the HUMAN type
     */
    public static final ParticipantTypeTypeType HUMAN = new ParticipantTypeTypeType(HUMAN_TYPE, "HUMAN");

    /**
     * The SYSTEM type
     */
    public static final int SYSTEM_TYPE = 5;

    /**
     * The instance of the SYSTEM type
     */
    public static final ParticipantTypeTypeType SYSTEM = new ParticipantTypeTypeType(SYSTEM_TYPE, "SYSTEM");

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


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

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

    /**
     * Method getType
     * 
     * Returns the type of this ParticipantTypeTypeType
     * 
     * @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("RESOURCE_SET", RESOURCE_SET);
        members.put("RESOURCE", RESOURCE);
        members.put("ROLE", ROLE);
        members.put("ORGANIZATIONAL_UNIT", ORGANIZATIONAL_UNIT);
        members.put("HUMAN", HUMAN);
        members.put("SYSTEM", SYSTEM);
        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
     * ParticipantTypeTypeType
     * 
     * @return String
     */
    public java.lang.String toString()
    {
        return this.stringValue;
    } //-- java.lang.String toString() 

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

}

⌨️ 快捷键说明

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