Package org.onosproject.store.service
Enum DocumentTreeEvent.Type
- java.lang.Object
-
- java.lang.Enum<DocumentTreeEvent.Type>
-
- org.onosproject.store.service.DocumentTreeEvent.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<DocumentTreeEvent.Type>
- Enclosing class:
- DocumentTreeEvent<V>
public static enum DocumentTreeEvent.Type extends Enum<DocumentTreeEvent.Type>
Nature of document tree node change.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CREATED
Signifies node being created.DELETED
Signifies an existing node being deleted.TRANSACTION_END
Signifies end of Transaction events.TRANSACTION_START
Signifies beginning of Transaction events.UPDATED
Signifies the value of an existing node being updated.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DocumentTreeEvent.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static DocumentTreeEvent.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CREATED
public static final DocumentTreeEvent.Type CREATED
Signifies node being created.
-
UPDATED
public static final DocumentTreeEvent.Type UPDATED
Signifies the value of an existing node being updated.
-
DELETED
public static final DocumentTreeEvent.Type DELETED
Signifies an existing node being deleted.
-
TRANSACTION_START
public static final DocumentTreeEvent.Type TRANSACTION_START
Signifies beginning of Transaction events. Note:DocumentTreeEvent.path()
will contain single element representing TransactionId.
-
TRANSACTION_END
public static final DocumentTreeEvent.Type TRANSACTION_END
Signifies end of Transaction events. Note:DocumentTreeEvent.path()
will contain single element representing TransactionId.
-
-
Method Detail
-
values
public static DocumentTreeEvent.Type[] 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 (DocumentTreeEvent.Type c : DocumentTreeEvent.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DocumentTreeEvent.Type valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-