BooleanHierarchicalRenderer

com.phasmidsoftware.tableparser.core.render.HierarchicalRenderer.BooleanHierarchicalRenderer
See theBooleanHierarchicalRenderer companion object

Trait BooleanHierarchicalRenderer extends the UntaggedHierarchicalRenderer for handling Boolean types.

This trait provides rendering capabilities for Boolean values, which involve rendering them into a structured format while potentially applying additional attributes or styles. It serves as a type-specific implementation for rendering Boolean values in a hierarchical model.

The style associated with the rendering can be customized, and attributes can be passed to the render method for finer control over the rendered output.

==Type Parameters== None, as this is specifically defined for the Boolean type.

==Inheritance== This trait inherits from UntaggedHierarchicalRenderer, leveraging the base rendering functionality provided by that trait while specializing it for Boolean types.

==Usage== This trait is typically used where hierarchical rendering of Boolean values is required, such as in contexts involving nested or tree-like data structures.

An implicit instance of this trait is available, enabling seamless use in generic code that requires an implicit renderer for type Boolean.

Attributes

See also

UntaggedHierarchicalRenderer

HierarchicalRenderer

Companion
object
Graph
Supertypes
trait HierarchicalRenderer[Boolean]
trait Renderer[Boolean, Node]
class Object
trait Matchable
class Any
Show all
Known subtypes

Members list

Value members

Inherited methods

def asString(t: Boolean): String

Method to render content as a String. This method is invoked only when T is not a Product, sequence or Option. Normally, the default method is what is required, but it might be necessary to override in some situations. This method does not apply to style or attribute values.

Method to render content as a String. This method is invoked only when T is not a Product, sequence or Option. Normally, the default method is what is required, but it might be necessary to override in some situations. This method does not apply to style or attribute values.

Value parameters

t

the content value.

Attributes

Returns

a String corresponding to t.

Inherited from:
HierarchicalRenderer
def render(t: Boolean, attrs: Map[String, String]): Node

Render an instance of T as a U.

Render an instance of T as a U.

Value parameters

attrs

a map of attributes for this value of U.

t

the input parameter, i.e. the object to be rendered.

Attributes

Returns

a new instance of U.

Inherited from:
UntaggedHierarchicalRenderer
def render(t: Boolean): Node

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 fields

val baseAttrs: Map[String, String]

Defines the base attribute set for type T.

Defines the base attribute set for type T.

Attributes

Inherited from:
HierarchicalRenderer
val style: String

Defines the default style for type T.

Defines the default style for type T.

Attributes

Inherited from:
UntaggedHierarchicalRenderer