Enum Class Status
- All Implemented Interfaces:
Serializable
,Comparable<Status>
,Constable
Enumeration describing YANG 'status' statement. If no status is specified, the
default is CURRENT.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCURRENT means that the definition is current and valid.DEPRECATED indicates an obsolete definition, but it permits new/ continued implementation in order to foster interoperability with older/existing implementations.OBSOLETE means the definition is obsolete and SHOULD NOT be implemented and/or can be removed from implementations. -
Method Summary
Modifier and TypeMethodDescriptionargument()
Returns the YANGstatus
statement argument value corresponding to this object.static @Nullable Status
forArgument
(String argument) Return aStatus
for specifiedstatus
statement argument.static Status
ofArgument
(String argument) Return aStatus
for specifiedstatus
statement argument.static Status
Returns the enum constant of this class with the specified name.static Status[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CURRENT
CURRENT means that the definition is current and valid. -
DEPRECATED
DEPRECATED indicates an obsolete definition, but it permits new/ continued implementation in order to foster interoperability with older/existing implementations. -
OBSOLETE
OBSOLETE means the definition is obsolete and SHOULD NOT be implemented and/or can be removed from implementations.
-
-
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 YANGstatus
statement argument value corresponding to this object.- Returns:
- String that corresponds to the YANG
status
statement argument
-
forArgument
Return aStatus
for specifiedstatus
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
-status
statement argument- Returns:
- An enumeration value, or
null
if specified argument is not valid - Throws:
NullPointerException
- ifargument
isnull
-
ofArgument
Return aStatus
for specifiedstatus
statement argument. This methods throws an exception for illegal values. SeeforArgument(String)
for a version which returns anull
instead for illegal values.- Parameters:
argument
-status
statement argument- Returns:
- An enumeration value, or
null
if specified argument is not valid - Throws:
NullPointerException
- ifargument
isnull
IllegalArgumentException
- ifargument
is not a validstatus
statement argument
-