Enum Class DeviateKind
- All Implemented Interfaces:
Serializable
,Comparable<DeviateKind>
,Constable
Enumeration describing
deviate
YANG statement argument. It defines how
the server implementation of the target node deviates from its original definition.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionServer implements target node with additional properties.Server implements target node without some properties.Target node is not implemented by the server.Server implements target node with different properties. -
Method Summary
Modifier and TypeMethodDescriptionargument()
Returns the YANGdeviate
statement argument value corresponding to this object.static @Nullable DeviateKind
forArgument
(String argument) Return aDeviateKind
for specifieddeviate
statement argument.static DeviateKind
ofArgument
(String argument) Return aDeviateKind
for specifieddeviate
statement argument.static DeviateKind
Returns the enum constant of this class with the specified name.static DeviateKind[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NOT_SUPPORTED
Target node is not implemented by the server. -
ADD
Server implements target node with additional properties. -
REPLACE
Server implements target node with different properties. -
DELETE
Server implements target node without some properties.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
argument
Returns the YANGdeviate
statement argument value corresponding to this object.- Returns:
- String that corresponds to the YANG
deviate
statement argument
-
forArgument
Return aDeviateKind
for specifieddeviate
statement argument. This methods returns anull
for illegal values. SeeofArgument(String)
for a version which returns non-null and throws an exception for illegal values.- Parameters:
argument
-deviate
statement argument- Returns:
- An enumeration value, or
null
if specified argument is not valid - Throws:
NullPointerException
- ifargument
isnull
-
ofArgument
Return aDeviateKind
for specifieddeviate
statement argument. This methods throws an exception for illegal values. SeeforArgument(String)
for a version which returns anull
instead for illegal values.- Parameters:
argument
-deviate
statement argument- Returns:
- An enumeration value
- Throws:
NullPointerException
- ifargument
isnull
IllegalArgumentException
- ifargument
is not a validdeviate
statement argument
-