CsvProduct

com.phasmidsoftware.tableparser.core.render.CsvProduct
See theCsvProduct companion object
trait CsvProduct[-T] extends CsvRenderer[T], CsvGenerator[T]

Type class which combines CsvRenderer and CsvGenerator

Type parameters

T

the contravariant type of object to be rendered.

Attributes

Companion
object
Graph
Supertypes
trait CsvGenerator[T]
trait CsvRenderer[T]
trait Renderer[T, String]
class Object
trait Matchable
class Any
Show all
Known subtypes

Members list

Value members

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 methods

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

Render an instance of T as an O, qualifying the rendering with attributes defined in attrs.

Render an instance of T as an O, qualifying the rendering with attributes defined in attrs.

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 O.

Inherited from:
Renderer
def toColumnName(po: Option[String], name: String): String

Method to generate a list of appropriate column names for a value of t.

Method to generate a list of appropriate column names for a value of t.

Value parameters

name

the name of this column.

po

the (optional) name of the parent.

Attributes

Returns

a list of names of the form parent.column.

Inherited from:
CsvGenerator

Inherited and Abstract fields

Attributes

Inherited from:
CsvGenerator