public enum AttachDocumentState extends java.lang.Enum<AttachDocumentState>
Enum Constant and Description |
---|
COMPLETED |
DOC_ALREADY_EXISTS |
DOC_MISSING |
INITIAL |
MAIN_DOC_ALREADY_EXISTS |
REQUEST_MAIN_DOC |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
The string value for the enum.
|
static AttachDocumentState |
lookup(int state)
Lookup for the given integer and return the corresponding enum.
|
static AttachDocumentState |
lookup(java.lang.String name)
Lookup for the state by its name.
|
java.lang.String |
toString() |
static AttachDocumentState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AttachDocumentState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AttachDocumentState INITIAL
public static final AttachDocumentState DOC_MISSING
public static final AttachDocumentState DOC_ALREADY_EXISTS
public static final AttachDocumentState REQUEST_MAIN_DOC
public static final AttachDocumentState MAIN_DOC_ALREADY_EXISTS
public static final AttachDocumentState COMPLETED
public static AttachDocumentState[] values()
for (AttachDocumentState c : AttachDocumentState.values()) System.out.println(c);
public static AttachDocumentState valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static AttachDocumentState lookup(int state)
state
- The integer for the state.AttachDocumentState
enum corresponding to the given statepublic static AttachDocumentState lookup(java.lang.String name)
name
- The name of the stateAttachDocumentState
enum corresponding to the given name.public java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Enum<AttachDocumentState>