ProductCsvRenderer

com.phasmidsoftware.tableparser.core.render.ProductCsvRenderer
See theProductCsvRenderer companion object
class ProductCsvRenderer[T](fieldRenderers: List[CsvRenderer[_]])(using ca: CsvAttributes) extends BaseCsvRenderer[T]

The CsvRenderer of a case class T, as derived by CsvRenderer.derived. Each field is rendered by its own CsvRenderer, and the results are separated by the delimiter.

Type parameters

T

the type of the case class.

Value parameters

ca

the CsvAttributes.

fieldRenderers

the CsvRenderers of the fields of T, in declaration order.

Attributes

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

Members list

Value members

Concrete 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].

Inherited 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 from:
BaseCsvRenderer
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

Concrete fields