StandardCsvRenderer

com.phasmidsoftware.tableparser.core.render.CsvRenderers.StandardCsvRenderer
abstract class StandardCsvRenderer[T] extends CsvRenderer[T]

The StandardCsvRenderer is an abstract class that provides a base implementation of the CsvRenderer trait for rendering objects of type T into CSV (Comma-Separated Values) format.

This class is typically extended to create concrete renderers for specific types. By default, it implements the render method to simply convert the input object to its string representation, but this behavior may be overridden in subclasses to implement more specific serialization logic.

Type parameters

T

The type of object to be rendered into CSV format.

Attributes

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

Members list

Value members

Concrete methods

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

Renders an object of type T into its string representation. Additional attributes can be specified via a map, but they are not used in the default implementation.

Renders an object of type T into its string representation. Additional attributes can be specified via a map, but they are not used in the default implementation.

Value parameters

attrs

a map of attributes influencing the rendering process; not used in the default implementation.

t

the object of type T to be rendered.

Attributes

Returns

a string representation of the object t.

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

Concrete fields