CellParser

com.phasmidsoftware.tableparser.core.parse.CellParser
See theCellParser companion object
trait CellParser[+T] extends StringConverter[T]

Type-class trait CellParser[T]. This trait has methods to parse and to convert from String to T.

TODO Need to define this better so that we don't have any non-implemented methods.

Type parameters

T

the (covariant) type of the resulting object.

Attributes

Companion
object
Graph
Supertypes
trait StringConverter[T]
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def parse(wo: Option[String], row: Row, columns: Header): Try[T]

Method to parse an Option[String] to a T.

Method to parse an Option[String] to a T.

Value parameters

columns

the column names. CONSIDER do we actually need the Header parameter here?

row

a Row of values.

wo

an optional String.

Attributes

Returns

a new instance of T.

Concrete methods

def parse(value: Convertible): Try[T]

Parse a Convertible value into a T.

Parse a Convertible value into a T.

Value parameters

value

the Convertible value.

Attributes

Returns

a new instance of T wrapped in Try.

Inherited and Abstract methods

def convertString(w: String): Try[T]

Convert a String into a T.

Convert a String into a T.

Value parameters

w

the String to be converted.

Attributes

Returns

a new instance of T wrapped in Try

Inherited from:
StringConverter