public static enum Address.Status extends Enum<Address.Status> implements Enumeration
Enum Constant and Description |
---|
Deprecated
This is a valid but deprecated address that shouldno longer be used as a source
address in newcommunications, but packets addressed to such anaddress are
processed as expected.
|
Duplicate
The address has been determined to be non-unique onthe link and so must not be
used.
|
Inaccessible
The address is not accessible because the interfaceto which this address is
assigned is notoperational.
|
Invalid
This isn't a valid address, and it shouldn't appearas the destination or source
address of a packet.
|
Optimistic
The address is available for use, subject torestrictions, while its uniqueness
on a link isbeing verified.
|
Preferred
This is a valid address that can appear as thedestination or source address of a
packet.
|
Tentative
The uniqueness of the address on the link is beingverified.
|
Unknown
The status cannot be determined for some reason.
|
Modifier and Type | Method and Description |
---|---|
static Optional<Address.Status> |
forName(String name)
Return the enumeration member whose
getName() matches specified value. |
static Address.Status |
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 Address.Status |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Address.Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Address.Status Preferred
public static final Address.Status Deprecated
public static final Address.Status Invalid
public static final Address.Status Inaccessible
public static final Address.Status Unknown
public static final Address.Status Tentative
public static final Address.Status Duplicate
public static final Address.Status Optimistic
public static Address.Status[] values()
for (Address.Status c : Address.Status.values()) System.out.println(c);
public static Address.Status 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<Address.Status> forName(String name)
getName()
matches specified value.name
- YANG assigned nameNullPointerException
- if name is nullpublic static Address.Status forValue(int intValue)
getIntValue()
matches specified value.intValue
- integer valueCopyright © 2019 OpenDaylight. All rights reserved.