public static enum TraitDefinition.ChangeType extends java.lang.Enum<TraitDefinition.ChangeType> implements ToNode
| Enum Constant and Description |
|---|
ADD
Emit when a trait or value is added that previously did not exist.
|
ANY
Emit when any change occurs.
|
PRESENCE
Emit when a trait is added or removed.
|
REMOVE
Emit when a trait or value is removed.
|
UPDATE
Emit when a trait already existed, continues to exist, but it is modified.
|
| Modifier and Type | Method and Description |
|---|---|
static TraitDefinition.ChangeType |
fromNode(Node node)
Creates a ChangeType value from a node.
|
Node |
toNode()
Converts a value to a
Node. |
java.lang.String |
toString() |
static TraitDefinition.ChangeType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TraitDefinition.ChangeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TraitDefinition.ChangeType ADD
public static final TraitDefinition.ChangeType REMOVE
public static final TraitDefinition.ChangeType PRESENCE
public static final TraitDefinition.ChangeType UPDATE
public static final TraitDefinition.ChangeType ANY
public static TraitDefinition.ChangeType[] values()
for (TraitDefinition.ChangeType c : TraitDefinition.ChangeType.values()) System.out.println(c);
public static TraitDefinition.ChangeType 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 namejava.lang.NullPointerException - if the argument is nullpublic static TraitDefinition.ChangeType fromNode(Node node)
node - Node to parse.ExpectationNotMetException - if the node is invalid.public java.lang.String toString()
toString in class java.lang.Enum<TraitDefinition.ChangeType>