|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<DocumentStatus>
au.gov.nehta.vendorlibrary.pcehr.clients.common.type.DocumentStatus
public enum DocumentStatus
A status of a document in the document repository.
Enum Constant Summary | |
---|---|
APPROVED
Approved document status. |
|
DELETED
Deleted document status. |
|
DEPRECATED
Deprecated document status. |
|
SUBMITTED
Submitted document status. |
Method Summary | |
---|---|
static DocumentStatus |
fromCode(java.lang.String code)
Checks that supplied status is valid. |
java.lang.String |
getCode()
Returns the value of 'code'. |
static DocumentStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static DocumentStatus[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final DocumentStatus SUBMITTED
public static final DocumentStatus APPROVED
public static final DocumentStatus DELETED
public static final DocumentStatus DEPRECATED
Method Detail |
---|
public static DocumentStatus[] values()
for (DocumentStatus c : DocumentStatus.values()) System.out.println(c);
public static DocumentStatus 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 name
java.lang.NullPointerException
- if the argument is nullpublic java.lang.String getCode()
public static DocumentStatus fromCode(java.lang.String code)
code
- String code to check against list of available enum entries.
DocumentStatus
if it exists.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |