public enum DocumentState extends Enum<DocumentState>
| Enum Constant and Description |
|---|
INHERITED
show the state depending of his parents state
|
LIVE
live (draft)
|
PUBLISHED
published
|
| Modifier and Type | Method and Description |
|---|---|
DocumentState |
parse(Boolean b) |
static DocumentState |
parse(String s) |
String |
toString() |
static DocumentState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DocumentState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DocumentState LIVE
public static final DocumentState PUBLISHED
public static final DocumentState INHERITED
public static DocumentState[] values()
for (DocumentState c : DocumentState.values()) System.out.println(c);
public static DocumentState valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static DocumentState parse(String s)
public DocumentState parse(Boolean b)
public String toString()
toString in class Enum<DocumentState>Copyright © 2021. All rights reserved.