Renderer

com.phasmidsoftware.tableparser.core.render.Renderer
trait Renderer[-T, O]

Definition of trait Renderer for the purpose of serializing objects of type T as an object of type O. This trait may be used as a type class for either T or O (or both).

NOTE: this trait has no direct relationship with TableRenderable.

Type parameters

O

the type of the serialization result.

T

the (contravariant) type of object to be rendered.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

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

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.

Concrete methods

def render(t: T): O

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.