Package dk.vajhoej.model.core
Enum BoxType
- java.lang.Object
-
- java.lang.Enum<BoxType>
-
- dk.vajhoej.model.core.BoxType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<BoxType>
public enum BoxType extends java.lang.Enum<BoxType>
Enum BoxType specifies type of hardware box.
Semantics:Types of hardware boxes enum value description SINGLE_SYS Single system MULTI_SYS Multiple systems SINGLE_DISK Single disk system MULTI_DISK Multiple disk systems SINGLE_FIREWALL Single firewall MULTI_FIREWALL Multiple firewalls SINGLE_LOADBALANCER Single load balancer MULTI_LOADBALANCER Multiple load balancers
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MULTI_DISK
MULTI_FIREWALL
MULTI_LOADBALANCER
MULTI_SYS
SINGLE_DISK
SINGLE_FIREWALL
SINGLE_LOADBALANCER
SINGLE_SYS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BoxType
parse(java.lang.String s)
Parse string with box type.java.lang.String
toString()
static BoxType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static BoxType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SINGLE_SYS
public static final BoxType SINGLE_SYS
-
MULTI_SYS
public static final BoxType MULTI_SYS
-
SINGLE_DISK
public static final BoxType SINGLE_DISK
-
MULTI_DISK
public static final BoxType MULTI_DISK
-
SINGLE_FIREWALL
public static final BoxType SINGLE_FIREWALL
-
MULTI_FIREWALL
public static final BoxType MULTI_FIREWALL
-
SINGLE_LOADBALANCER
public static final BoxType SINGLE_LOADBALANCER
-
MULTI_LOADBALANCER
public static final BoxType MULTI_LOADBALANCER
-
-
Method Detail
-
values
public static BoxType[] 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 (BoxType c : BoxType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BoxType 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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<BoxType>
-
parse
public static BoxType parse(java.lang.String s)
Parse string with box type.- Parameters:
s
- string with box type- Returns:
- box type
-
-