public class ItemType extends Enum
Modifier and Type | Class and Description |
---|---|
static class |
ItemType.ItemTypeEditor |
Enum.EnumEditor, Enum.LocaleEnumEditor
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
static ItemType |
PREF_ANSWER
Preferred answer item type
|
static ItemType |
STRUCTURED
Structured item type
|
static ItemType |
UNSTRUCTURED
Unstructured item type
|
Modifier | Constructor and Description |
---|---|
protected |
ItemType(java.lang.String enumName,
int ordinalVal)
The subclass constructor should be private.
|
Modifier and Type | Method and Description |
---|---|
static ItemType |
valueOf(java.lang.String pName) |
compareTo, getEnumClassInfo, getOrdinal, iterator, iterator, lookup, lookup, lookup, lookup, readResolve, toString
public static java.lang.String CLASS_VERSION
public static final ItemType STRUCTURED
public static final ItemType UNSTRUCTURED
public static final ItemType PREF_ANSWER
protected ItemType(java.lang.String enumName, int ordinalVal)
enumName
- The name of the instance that will appear in editors and toString().ordinalVal
- The ordinal valuejava.lang.Error
- if the subclass already has an instance name n or if the ordinal number is already used by another
instance of the same subclass.public static ItemType valueOf(java.lang.String pName)