@Beta public enum YangVersion extends Enum<YangVersion>
| Enum Constant and Description |
|---|
VERSION_1
Version 1, as defined in RFC6020.
|
VERSION_1_1
Version 1.1, as defined in RFC7950.
|
| Modifier and Type | Method and Description |
|---|---|
@NonNull String |
getReference()
Return the normative reference defining this YANG version.
|
static Optional<YangVersion> |
parse(@NonNull String str)
Parse a YANG version from its textual representation.
|
@NonNull String |
toString() |
static YangVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static YangVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final YangVersion VERSION_1
public static final YangVersion VERSION_1_1
public static YangVersion[] values()
for (YangVersion c : YangVersion.values()) System.out.println(c);
public static YangVersion 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 static Optional<YangVersion> parse(@NonNull String str)
str - String to parseNullPointerException - if the string is nullpublic @NonNull String getReference()
public @NonNull String toString()
toString in class Enum<YangVersion>Copyright © 2019 OpenDaylight. All rights reserved.