Package com.io7m.quarrel.core.converters
Class QVCAbstract<T>
java.lang.Object
com.io7m.quarrel.core.converters.QVCAbstract<T>
- Type Parameters:
T
- The type
- All Implemented Interfaces:
QValueConverterType<T>
- Direct Known Subclasses:
QVCBigDecimal
,QVCBigInteger
,QVCBoolean
,QVCDouble
,QVCDuration
,QVCFloat
,QVCInetAddress
,QVCInteger
,QVCLong
,QVCOffsetDateTime
,QVCPath
,QVCPattern
,QVCString
,QVCURI
,QVCUUID
An abstract value converter.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.io7m.quarrel.core.QValueConverterType
convertedClass, convertToString, exampleValue, syntax
-
Constructor Details
-
QVCAbstract
protected QVCAbstract()
-
-
Method Details
-
convertFromString
Description copied from interface:QValueConverterType
Convert the given string to a value of typeT
.- Specified by:
convertFromString
in interfaceQValueConverterType<T>
- Parameters:
text
- The input string- Returns:
- A value of
T
- Throws:
QException
- On errors
-
parse
- Throws:
Exception
-