redefinableheaderpublicationstatustype.java
来自「一个工作流的原型」· Java 代码 · 共 181 行
JAVA
181 行
/*
* 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 RedefinableHeaderPublicationStatusType.
*
* @version $Revision$ $Date$
*/
public class RedefinableHeaderPublicationStatusType implements java.io.Serializable {
//--------------------------/
//- Class/Member Variables -/
//--------------------------/
/**
* The UNDER_REVISION type
*/
public static final int UNDER_REVISION_TYPE = 0;
/**
* The instance of the UNDER_REVISION type
*/
public static final RedefinableHeaderPublicationStatusType UNDER_REVISION = new RedefinableHeaderPublicationStatusType(UNDER_REVISION_TYPE, "UNDER_REVISION");
/**
* The RELEASED type
*/
public static final int RELEASED_TYPE = 1;
/**
* The instance of the RELEASED type
*/
public static final RedefinableHeaderPublicationStatusType RELEASED = new RedefinableHeaderPublicationStatusType(RELEASED_TYPE, "RELEASED");
/**
* The UNDER_TEST type
*/
public static final int UNDER_TEST_TYPE = 2;
/**
* The instance of the UNDER_TEST type
*/
public static final RedefinableHeaderPublicationStatusType UNDER_TEST = new RedefinableHeaderPublicationStatusType(UNDER_TEST_TYPE, "UNDER_TEST");
/**
* 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 RedefinableHeaderPublicationStatusType(int type, java.lang.String value) {
super();
this.type = type;
this.stringValue = value;
} //-- workflow.xwfbox.process.types.RedefinableHeaderPublicationStatusType(int, java.lang.String)
//-----------/
//- Methods -/
//-----------/
/**
* Method enumerate
*
* Returns an enumeration of all possible instances of
* RedefinableHeaderPublicationStatusType
*
* @return Enumeration
*/
public static java.util.Enumeration enumerate()
{
return _memberTable.elements();
} //-- java.util.Enumeration enumerate()
/**
* Method getType
*
* Returns the type of this
* RedefinableHeaderPublicationStatusType
*
* @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("UNDER_REVISION", UNDER_REVISION);
members.put("RELEASED", RELEASED);
members.put("UNDER_TEST", UNDER_TEST);
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
* RedefinableHeaderPublicationStatusType
*
* @return String
*/
public java.lang.String toString()
{
return this.stringValue;
} //-- java.lang.String toString()
/**
* Method valueOf
*
* Returns a new RedefinableHeaderPublicationStatusType based
* on the given String value.
*
* @param string
* @return RedefinableHeaderPublicationStatusType
*/
public static workflow.xwfbox.process.types.RedefinableHeaderPublicationStatusType 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 RedefinableHeaderPublicationStatusType";
throw new IllegalArgumentException(err);
}
return (RedefinableHeaderPublicationStatusType) obj;
} //-- workflow.xwfbox.process.types.RedefinableHeaderPublicationStatusType valueOf(java.lang.String)
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?