BaseCsvRenderer

com.phasmidsoftware.tableparser.core.render.BaseCsvRenderer
trait BaseCsvRenderer[-T] extends CsvRenderer[T]

Trait BaseCsvRenderer[-T] which extends CsvRenderer[T] to render, as CSV, an instance of Product (typically a case class).

Type parameters

T

the contravariant type of object to be rendered.

Attributes

Graph
Supertypes
trait CsvRenderer[T]
trait Renderer[T, String]
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def elements(t: T): Strings

Method to obtain a Seq of Strings corresponding to each of the members of the given value of t.

Method to obtain a Seq of Strings corresponding to each of the members of the given value of t.

Value parameters

t

an instance of type T.

Attributes

Returns

a Strings, i.e. a Seq[String].

Concrete methods

def render(t: T, attrs: Map[String, String]): String

Concrete method to render t as a single String, where the columns are delimited according to csvAttributes.delimiter.

Concrete method to render t as a single String, where the columns are delimited according to csvAttributes.delimiter.

Value parameters

attrs

a map of attributes for this value of O.

t

the input parameter, i.e., the T object to render.

Attributes

Returns

an instance of type String.

Inherited methods

def render(t: T): String

Render an instance of T as an O, qualifying the rendering with no attributes.

Render an instance of T as an O, qualifying the rendering with no attributes.

Value parameters

t

a T to be rendered.

Attributes

Returns

an instance of type O.

Inherited from:
Renderer

Inherited and Abstract fields

Attributes

Inherited from:
CsvRenderer