public static class ValueTypeImpl.TypeScanner extends Object implements ValueScanner<ValueType>
ValueType
s.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()
ValueScanner
getType
in interface ValueScanner<ValueType>
public void check(ValueType value)
ValueScanner
check
in interface ValueScanner<ValueType>
value
- a valuepublic ValueType<?> scan(String value) throws T2DBException
ValueScanner
ValueScanner.check(Object)
.scan
in interface ValueScanner<ValueType>
value
- a stringT2DBException
public String toString(ValueType value)
ValueScanner
toString
in interface ValueScanner<ValueType>
value
- a valueCopyright © 2017. All rights reserved.