T
- the underlying data type of the valuespublic interface ValueScanner<T>
ValueType
. If such
a constructor is available it is used. Else value scanners are created using
a parameterless constructor.Modifier and Type | Method and Description |
---|---|
void |
check(T value)
Throw an exception if the value does not conform to
special restrictions enforced by the value scanner.
|
Class<T> |
getType()
Return the class of underlying data type of the value scanner.
|
T |
scan(String value)
Scan a string and convert it to an object of the scanner's actual type.
|
String |
toString(T value)
Check and convert the parameter to a string.
|
Class<T> getType()
T scan(String value) throws T2DBException
check(Object)
.value
- a stringT2DBException
void check(T value) throws T2DBException
value
- a valueT2DBException
String toString(T value) throws T2DBException
value
- a valueT2DBException
Copyright © 2017. All rights reserved.