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:
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 |
Method Summary |
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. |
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
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
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 name
java.lang.NullPointerException
- if the argument is null
toString
public java.lang.String toString()
- Overrides:
toString
in class java.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