# 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`

public abstract class QVCAbstract<T> extends Object implements QValueConverterType<T>
An abstract value converter.

- ## Constructor Summary

  Constructors
  Modifier
  Constructor
  Description
  `protected`
  `QVCAbstract()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `final T`
  `convertFromString(String text)`
  Convert the given string to a value of type `T`.
  `protected abstract T`
  `parse(String text)`

  ### 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

    public final T convertFromString(String text) throws QException
    Description copied from interface: `QValueConverterType`
    Convert the given string to a value of type `T`.
    Specified by:
      `convertFromString` in interface `QValueConverterType<T>`
    Parameters:
      `text` - The input string
    Returns:
      A value of `T`
    Throws:
      `QException` - On errors

  - ### parse

    protected abstract T parse(String text) throws Exception
    Throws:
      `Exception`