ColumnHelper

com.phasmidsoftware.tableparser.core.parse.ColumnHelper
See theColumnHelper companion object
trait ColumnHelper[T]

Type class representing a mapping from a case class parameter to the corresponding column header.

Type parameters

T

the type of the object being helped.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def lookup(so: Option[String], w: String): String

This is the lookup function

This is the lookup function

Value parameters

so

is an optional string to be inserted into the prefix

w

is the name of column, as determined from the Product which we are trying to fill.

Attributes

Returns

a String which may include a prefix.

Abstract fields

val _aliases: Seq[(String, String)]

These are the alias mappings

These are the alias mappings

Attributes

val _columnNameMapper: String => String

This defines the default mapping between parameter names and column names. It is only used if there is no mapping defined in aliases.

This defines the default mapping between parameter names and column names. It is only used if there is no mapping defined in aliases.

Attributes

Returns

the mapper function.

val _maybePrefix: Option[String]

This is the format for the prefix of a name, where "x" represents the value, if any, of the optional string.

This is the format for the prefix of a name, where "x" represents the value, if any, of the optional string.

Attributes