public enum EncapsulationType extends java.lang.Enum<EncapsulationType>
Enum Constant and Description |
---|
MPLS
Indicates an MPLS encapsulation.
|
NONE
Indicates no encapsulation.
|
VLAN
Indicates a VLAN encapsulation.
|
Modifier and Type | Method and Description |
---|---|
static EncapsulationType |
enumFromString(java.lang.String encap)
Alternative method to valueOf.
|
static EncapsulationType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EncapsulationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EncapsulationType NONE
public static final EncapsulationType MPLS
public static final EncapsulationType VLAN
public static EncapsulationType[] values()
for (EncapsulationType c : EncapsulationType.values()) System.out.println(c);
public static EncapsulationType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static EncapsulationType enumFromString(java.lang.String encap)
NONE
is returned.encap
- the string representing the encapsulation type