public enum PortReason extends Enum<PortReason> implements OfpCodeBasedEnum
Enum Constant and Description |
---|
ADD
Indicates port added; Since 1.0.
|
DELETE
Indicates port removed; Since 1.0.
|
MODIFY
Indicates any port attribute modified; Since 1.0.
|
Modifier and Type | Method and Description |
---|---|
int |
getCode(ProtocolVersion pv)
Returns the code for the constant, under the given protocol
version.
|
static PortReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PortReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PortReason ADD
public static final PortReason DELETE
public static final PortReason MODIFY
public static PortReason[] values()
for (PortReason c : PortReason.values()) System.out.println(c);
public static PortReason 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 int getCode(ProtocolVersion pv)
OfpCodeBasedEnum
getCode
in interface OfpCodeBasedEnum
pv
- the protocol versionCopyright © 2016. All Rights Reserved.