Package org.onosproject.ui.model.topo
Enum UiLinkId.Type
- java.lang.Object
-
- java.lang.Enum<UiLinkId.Type>
-
- org.onosproject.ui.model.topo.UiLinkId.Type
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<UiLinkId.Type>
- Enclosing class:
- UiLinkId
public static enum UiLinkId.Type extends java.lang.Enum<UiLinkId.Type>
Designates the type of link the identifier represents.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEVICE_DEVICE
HOST_DEVICE
REGION_DEVICE
REGION_REGION
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UiLinkId.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static UiLinkId.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REGION_REGION
public static final UiLinkId.Type REGION_REGION
-
REGION_DEVICE
public static final UiLinkId.Type REGION_DEVICE
-
DEVICE_DEVICE
public static final UiLinkId.Type DEVICE_DEVICE
-
HOST_DEVICE
public static final UiLinkId.Type HOST_DEVICE
-
-
Method Detail
-
values
public static UiLinkId.Type[] 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 (UiLinkId.Type c : UiLinkId.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UiLinkId.Type valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-