Package org.onosproject.segmentrouting
Enum PolicyHandler.Result
- java.lang.Object
-
- java.lang.Enum<PolicyHandler.Result>
-
- org.onosproject.segmentrouting.PolicyHandler.Result
-
- All Implemented Interfaces:
Serializable,Comparable<PolicyHandler.Result>
- Enclosing class:
- PolicyHandler
public static enum PolicyHandler.Result extends Enum<PolicyHandler.Result>
Result of policy creation.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ID_EXISTSThe policy ID exists already.POLICY_EXISTSThe same policy exists already.POLICY_NOT_FOUNDPolicy was not found.SUCCESSSuccess.TUNNEL_NOT_FOUNDCannot find associated tunnel.UNSUPPORTED_TYPEPolicy type {} is not supported yet.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PolicyHandler.ResultvalueOf(String name)Returns the enum constant of this type with the specified name.static PolicyHandler.Result[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUCCESS
public static final PolicyHandler.Result SUCCESS
Success.
-
POLICY_EXISTS
public static final PolicyHandler.Result POLICY_EXISTS
The same policy exists already.
-
ID_EXISTS
public static final PolicyHandler.Result ID_EXISTS
The policy ID exists already.
-
TUNNEL_NOT_FOUND
public static final PolicyHandler.Result TUNNEL_NOT_FOUND
Cannot find associated tunnel.
-
POLICY_NOT_FOUND
public static final PolicyHandler.Result POLICY_NOT_FOUND
Policy was not found.
-
UNSUPPORTED_TYPE
public static final PolicyHandler.Result UNSUPPORTED_TYPE
Policy type {} is not supported yet.
-
-
Method Detail
-
values
public static PolicyHandler.Result[] 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 (PolicyHandler.Result c : PolicyHandler.Result.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PolicyHandler.Result 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
-
-