public static enum Edit.Operation extends Enum<Edit.Operation> implements Enumeration
Enum Constant and Description |
---|
Create
The target data node is created using thesupplied value, only if it does not
alreadyexist.
|
Delete
Delete the target node, only if the data resourcecurrently exists, otherwise
return an error.
|
Insert
Insert the supplied value into a user-orderedlist or leaf-list entry.
|
Merge
The supplied value is merged with the target datanode.
|
Move
Move the target node.
|
Remove
Delete the target node if it currently exists.
|
Replace
The supplied value is used to replace the targetdata node.
|
Modifier and Type | Method and Description |
---|---|
static Optional<Edit.Operation> |
forName(String name)
Return the enumeration member whose
getName() matches specified value. |
static Edit.Operation |
forValue(int intValue)
Return the enumeration member whose
getIntValue() matches specified value. |
int |
getIntValue()
Returns the assigned value of the enumeration item as it is specified in the input YANG.
|
String |
getName()
Returns the assigned name of the enumeration item as it is specified in the input YANG.
|
static Edit.Operation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Edit.Operation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Edit.Operation Create
public static final Edit.Operation Delete
public static final Edit.Operation Insert
public static final Edit.Operation Merge
public static final Edit.Operation Move
public static final Edit.Operation Replace
public static final Edit.Operation Remove
public static Edit.Operation[] values()
for (Edit.Operation c : Edit.Operation.values()) System.out.println(c);
public static Edit.Operation 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 String getName()
Enumeration
getName
in interface Enumeration
public int getIntValue()
Enumeration
getIntValue
in interface Enumeration
public static Optional<Edit.Operation> forName(String name)
getName()
matches specified value.name
- YANG assigned nameNullPointerException
- if name is nullpublic static Edit.Operation forValue(int intValue)
getIntValue()
matches specified value.intValue
- integer valueCopyright © 2019 OpenDaylight. All rights reserved.