Interface QValueConverterType<T>
- Type Parameters:
T- The type of converted values
- All Known Implementing Classes:
QVCAbstract, QVCBigDecimal, QVCBigInteger, QVCBoolean, QVCDouble, QVCDuration, QVCEnum, QVCFloat, QVCInetAddress, QVCInteger, QVCLong, QVCOffsetDateTime, QVCPath, QVCPattern, QVCString, QVCURI, QVCUUID
public interface QValueConverterType<T>
The type of value converters.
For all implementations,
forall x, x = convertFromString(convertToString(x)).
-
Method Summary
Modifier and TypeMethodDescriptionconvertFromString(String text) Convert the given string to a value of typeT.convertToString(T value) Convert a value ofTto a string.syntax()
-
Method Details
-
convertFromString
Convert the given string to a value of typeT.- Parameters:
text- The input string- Returns:
- A value of
T - Throws:
QException- On errors
-
convertToString
Convert a value ofTto a string.- Parameters:
value- The value- Returns:
- A string
- Throws:
QException- On errors
-
exampleValue
T exampleValue()- Returns:
- An example value used for documentation
-
syntax
String syntax()- Returns:
- A description of the syntax for valid values of
T
-
convertedClass
-