public enum MatchType extends Enum<MatchType> implements OfpCodeBasedEnum
Enum Constant and Description |
---|
OXM
OpenFlow Extensible Match; Since 1.2.
|
STANDARD
Standard match; Since 1.0; Deprecated.
|
Modifier and Type | Method and Description |
---|---|
int |
getCode(ProtocolVersion pv)
Returns the code for the constant, under the given protocol
version.
|
static MatchType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MatchType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MatchType STANDARD
Although the "STANDARD" match was not explicitly defined until the 1.1 specification, it is implied in the 1.0 specification. Therefore we have encoded it here as "since 1.0".
public static final MatchType OXM
public static MatchType[] values()
for (MatchType c : MatchType.values()) System.out.println(c);
public static MatchType 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 © 2015. All Rights Reserved.