public enum Status extends Enum<Status>
| Enum Constant and Description |
|---|
CLOSED
The document is closed with no changes (the status ID is 4).
|
EDITING
The document is being edited (the status ID is 1).
|
FORCESAVE
The document is being edited, but the current document state is saved (the status ID is 6).
|
FORCESAVE_CORRUPTED
The error has occurred while force saving the document (the status ID is 7).
|
SAVE
The document is ready for saving (the status ID is 2).
|
SAVE_CORRUPTED
The document saving error has occurred (the status ID is 3).
|
| Modifier and Type | Field and Description |
|---|---|
private static Map<Integer,Status> |
BY_ID
Defines a map of the statuses with their IDs.
|
private int |
id
Defines the status ID.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) int |
getId()
Returns the status ID.
|
static Status |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Status |
valueOfId(Integer code)
Returns the enum constant of this type with the specified ID.
|
static Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Status EDITING
public static final Status SAVE
public static final Status SAVE_CORRUPTED
public static final Status CLOSED
public static final Status FORCESAVE
public static final Status FORCESAVE_CORRUPTED
public static Status[] values()
for (Status c : Status.values()) System.out.println(c);
public static Status 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 Status valueOfId(Integer code)
code - The ID of the enum constant to be returned.int getId()
Copyright © 2023–2024. All rights reserved.