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()
ValueScanner
getType
in interface ValueScanner<String>
public void check(String value)
ValueScanner
check
in interface ValueScanner<String>
value
- a valuepublic String scan(String value)
ValueScanner
ValueScanner.check(Object)
.scan
in interface ValueScanner<String>
value
- a stringpublic String toString(String value)
ValueScanner
toString
in interface ValueScanner<String>
value
- a valueCopyright © 2017. All rights reserved.