Package org.onosproject.net.device
Enum DeviceInterfaceDescription.Mode
- java.lang.Object
-
- java.lang.Enum<DeviceInterfaceDescription.Mode>
-
- org.onosproject.net.device.DeviceInterfaceDescription.Mode
-
- All Implemented Interfaces:
Serializable
,Comparable<DeviceInterfaceDescription.Mode>
- Enclosing interface:
- DeviceInterfaceDescription
public static enum DeviceInterfaceDescription.Mode extends Enum<DeviceInterfaceDescription.Mode>
Represents the type of operation of the interface.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DeviceInterfaceDescription.Mode
valueOf(String name)
Returns the enum constant of this type with the specified name.static DeviceInterfaceDescription.Mode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NORMAL
public static final DeviceInterfaceDescription.Mode NORMAL
Normal mode of interface operation.
-
ACCESS
public static final DeviceInterfaceDescription.Mode ACCESS
Access mode to a VLAN for interface.
-
TRUNK
public static final DeviceInterfaceDescription.Mode TRUNK
Trunk mode for a set of VLANs for interface.
-
-
Method Detail
-
values
public static DeviceInterfaceDescription.Mode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DeviceInterfaceDescription.Mode c : DeviceInterfaceDescription.Mode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DeviceInterfaceDescription.Mode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-