BaseRow

com.phasmidsoftware.tableparser.core.table.BaseRow
abstract class BaseRow(ws: Seq[String], hdr: Header) extends String => Try[String]

Abstract class to represent a (raw) row from a table.

Value parameters

hdr

is the Header containing the column names.

ws

the (raw) Strings that make up the row.

Attributes

Graph
Supertypes
trait String => Try[String]
class Object
trait Matchable
class Any
Known subtypes
class RawRow
class Row

Members list

Value members

Concrete methods

def apply(w: String): Try[String]

Method to yield the value for a given column name

Method to yield the value for a given column name

CONSIDER: why is ParserException not found to link to?

Value parameters

w

the column name.

Attributes

Returns

the value as a String.

def apply(x: Int): Try[String]

Method to yield the xth element of this Row.

Method to yield the xth element of this Row.

Value parameters

x

an index from 0 thru length-1.

Attributes

Returns

the value as a String.

def getIndex(column: String): Int

Method to get the index of a column name

Method to get the index of a column name

Value parameters

column

the column name

Attributes

Returns

the index, which might be -1

override def toString(): String

Generates a string representation of the row, including its values and header information.

Generates a string representation of the row, including its values and header information.

Attributes

Returns

a string in the format "Row: [value1, value2, ...] with header=HeaderObject".

Definition Classes
Function1 -> Any

Inherited methods

def andThen[A](g: Try[String] => A): String => A

Composes two instances of Function1 in a new Function1, with this function applied first.

Composes two instances of Function1 in a new Function1, with this function applied first.

Type parameters

A

the result type of function g

Value parameters

g

a function R => A

Attributes

Returns

a new function f such that f(x) == g(apply(x))

Inherited from:
Function1
def compose[A](g: A => String): A => Try[String]

Composes two instances of Function1 in a new Function1, with this function applied last.

Composes two instances of Function1 in a new Function1, with this function applied last.

Type parameters

A

the type to which function g can be applied

Value parameters

g

a function A => T1

Attributes

Returns

a new function f such that f(x) == apply(g(x))

Inherited from:
Function1