public static class ValueTypeImpl.TypeScanner extends Object implements ValueScanner<ValueType>
ValueTypes.| Constructor and Description |
|---|
TypeScanner(Database database) |
| Modifier and Type | Method and Description |
|---|---|
void |
check(ValueType value)
Throw an exception if the value does not conform to
special restrictions enforced by the value scanner.
|
Class<ValueType> |
getType()
Return the class of underlying data type of the value scanner.
|
ValueType<?> |
scan(String value)
Scan a string and convert it to an object of the scanner's actual type.
|
String |
toString(ValueType value)
Check and convert the parameter to a string.
|
public TypeScanner(Database database)
public Class<ValueType> getType()
ValueScannergetType in interface ValueScanner<ValueType>public void check(ValueType value)
ValueScannercheck in interface ValueScanner<ValueType>value - a valuepublic ValueType<?> scan(String value) throws T2DBException
ValueScannerValueScanner.check(Object).scan in interface ValueScanner<ValueType>value - a stringT2DBExceptionpublic String toString(ValueType value)
ValueScannertoString in interface ValueScanner<ValueType>value - a valueCopyright © 2017. All rights reserved.