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