CsvTableStringRenderer

com.phasmidsoftware.tableparser.core.render.CsvTableStringRenderer
case class CsvTableStringRenderer[T]()(using z1: CsvRenderer[T], z2: CsvGenerator[T], csvAttributes: CsvAttributes) extends CsvTableRenderer[T, StringBuilder]

Case class to help render a Table to a StringBuilder in CSV format.

Type parameters

T

the type of object to be rendered; must provide evidence of CsvRenderer[T] amd CsvGenerator[T].

Value parameters

csvAttributes

implicit instance of CsvAttributes.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class CsvTableRenderer[T, StringBuilder]
trait Renderer[Table[T], Try[StringBuilder]]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

protected def generateText(ow: Writable[StringBuilder], tc: CsvRenderer[T], o: StringBuilder, t: T): StringBuilder

CONSIDER replacing ow by implicitly of Writable[O]. CONSIDER replacing tc by implicitly of CsvRenderer[T].

CONSIDER replacing ow by implicitly of Writable[O]. CONSIDER replacing tc by implicitly of CsvRenderer[T].

Value parameters

o

O.

ow

Writable[O].

t

T.

tc

CsvRenderer[T].

Attributes

Returns

O.

Inherited from:
CsvTableRenderer
def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
def render(t: Table[T], attrs: Map[String, String]): Try[StringBuilder]

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 Table[T] instance to render.

Attributes

Returns

an instance of type O.

Inherited from:
CsvTableRenderer
def render(t: Table[T]): Try[StringBuilder]

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