public static enum ConfigurationEntry.Type extends java.lang.Enum<ConfigurationEntry.Type>
| Enum Constant and Description |
|---|
ARRAY_ENUM
A 1-dimensional array (requires additional information).
|
BOOLEAN
The entry is a boolean.
|
ENUM
An enum value (requires additional information).
|
INTEGER
The entry is an integer.
|
STRING
The entry is a string.
|
TCP_CONNECTION_INFO
The entry is a TCP connection information, i.e., a string of host:port turned into
a
TcpConnectionInfo. |
| Modifier and Type | Field and Description |
|---|---|
private boolean |
array
Stores whether this type is an array.
|
private ConfigurationEntry.Type |
elementType
Stores the element type.
|
| Modifier and Type | Method and Description |
|---|---|
ConfigurationEntry.Type |
getElementType()
Returns the element type.
|
boolean |
isArray()
Returns whether this type is an array.
|
boolean |
isPrimitive()
Returns whether this type is primitive.
|
static ConfigurationEntry.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ConfigurationEntry.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConfigurationEntry.Type STRING
public static final ConfigurationEntry.Type TCP_CONNECTION_INFO
TcpConnectionInfo.public static final ConfigurationEntry.Type INTEGER
public static final ConfigurationEntry.Type BOOLEAN
public static final ConfigurationEntry.Type ENUM
public static final ConfigurationEntry.Type ARRAY_ENUM
private boolean array
private ConfigurationEntry.Type elementType
public static ConfigurationEntry.Type[] values()
for (ConfigurationEntry.Type c : ConfigurationEntry.Type.values()) System.out.println(c);
public static ConfigurationEntry.Type valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean isArray()
true if it is an array, false elsepublic boolean isPrimitive()
true if it is an array, false elsepublic ConfigurationEntry.Type getElementType()
isPrimitive())