ProductCellParser

com.phasmidsoftware.tableparser.core.parse.ProductCellParser
See theProductCellParser companion class

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def readCell[T, A](typeName: String, cellParser: CellParser[A], wo: Option[String], row: Row, header: Header, field: String)(using helper: ColumnHelper[T]): Try[A]

Method to read the value of one field of a case class T from a Row. The column is the one named by helper for the field (and the prefix wo, if any). If there is no such column, the field's parser is given the whole row (for a field which is itself a case class).

Method to read the value of one field of a case class T from a Row. The column is the one named by helper for the field (and the prefix wo, if any). If there is no such column, the field's parser is given the whole row (for a field which is itself a case class).

Type parameters

A

the type of the field.

T

the type of the case class.

Value parameters

cellParser

the CellParser of the field.

field

the name of the field.

header

the Header.

helper

the ColumnHelper[T].

row

the Row.

typeName

the name of T (used in error messages).

wo

an optional prefix (the name of the enclosing field, if any).

Attributes

Returns

the value of the field, wrapped in Try.