org.priha.core
Enum ItemState
java.lang.Object
java.lang.Enum<ItemState>
org.priha.core.ItemState
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<ItemState>
public enum ItemState
- extends java.lang.Enum<ItemState>
The ItemState enumeration tracks the state of a Node.
- NEW = The Item is new, and has never been saved.
- EXISTS = Item was loaded from the repository and has not been changed.
- REMOVED = Item has been removed and cannot be addressed any more.
- MOVED = Item was moved
Method Summary |
static ItemState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ItemState[] |
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 |
NEW
public static final ItemState NEW
EXISTS
public static final ItemState EXISTS
REMOVED
public static final ItemState REMOVED
MOVED
public static final ItemState MOVED
UPDATED
public static final ItemState UPDATED
UNDEFINED
public static final ItemState UNDEFINED
values
public static ItemState[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (ItemState c : ItemState.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ItemState valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null