V
- the generic value typepublic abstract class ValueType<V> extends Object
parse(Class, String)
method that transforms the string into a value.Modifier and Type | Field and Description |
---|---|
static ValueType<Boolean> |
BOOLEAN
Boolean.
|
protected Class<? extends Completer> |
completer
.
|
static ValueType<Enum> |
ENUM
Any Java enum.
|
static ValueType<File> |
FILE
A value type for files.
|
static ValueType<Integer> |
INTEGER
Integer.
|
static ValueType<ObjectName> |
OBJECT_NAME
A JMX object name value type.
|
static ValueType<Properties> |
PROPERTIES
Properties as semi colon separated values.
|
static ValueType<String> |
STRING
Identity.
|
static ValueType<Thread> |
THREAD
A value type for threads.
|
protected Class<V> |
type
.
|
Modifier | Constructor and Description |
---|---|
protected |
ValueType(Class<V> type) |
protected |
ValueType(Class<V> type,
Class<? extends Completer> completer) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Class<? extends Completer> |
getCompleter() |
(package private) int |
getDistance(Class<?> clazz) |
Class<V> |
getType() |
int |
hashCode() |
abstract <S extends V> |
parse(Class<S> type,
String s)
Parse the
s argument into a value of type S that is a subclass of the
generic value type V. |
V |
parse(String s) |
public static final ValueType<Properties> PROPERTIES
public static final ValueType<ObjectName> OBJECT_NAME
protected ValueType(Class<V> type, Class<? extends Completer> completer) throws NullPointerException
NullPointerException
protected ValueType(Class<V> type) throws NullPointerException
NullPointerException
final int getDistance(Class<?> clazz)
public Class<? extends Completer> getCompleter()
public abstract <S extends V> S parse(Class<S> type, String s) throws Exception
s
argument into a value of type S that is a subclass of the
generic value type V.S
- the generic type of the converted valuetype
- the target type of the values
- the string to convertException
- any exception that would prevent the conversion to happenCopyright © 2015 eXo Platform SAS. All Rights Reserved.