object HierarchicalRenderer

Object HierarchicalRenderer provides a collection of implicit instances and type definitions for the UntaggedHierarchicalRenderer trait, allowing for hierarchical serialization of various primitive and common types such as String, Boolean, Int, Long, BigInt, Double, and LocalDate.

These implicit objects define how to render instances of their respective types into a hierarchical structure (Node) by extending the generic UntaggedHierarchicalRenderer which implements the HierarchicalRenderer interface.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HierarchicalRenderer
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. trait BigIntHierarchicalRenderer extends UntaggedHierarchicalRenderer[BigInt]

    A type class responsible for rendering instances of BigInt in a hierarchical structure without additional tagging or specific rendering formats.

    A type class responsible for rendering instances of BigInt in a hierarchical structure without additional tagging or specific rendering formats.

    This trait extends the functionality provided by UntaggedHierarchicalRenderer, specifically for the type BigInt. It inherits the capability of rendering hierarchical structures while allowing attributes for customization.

    Since it extends UntaggedHierarchicalRenderer, it provides a render method to convert a BigInt instance into a Node representation while factoring in additional attributes and style information predefined in UntaggedHierarchicalRenderer.

    Example usage:

    implicit object BigIntHierarchicalRenderer extends BigIntHierarchicalRenderer
    
    val bigIntInstance: BigInt = BigInt(12345)
    val renderedNode: Node = BigIntHierarchicalRenderer.render(bigIntInstance, Map("attr1" -> "value1"))
    
    println(renderedNode) // Node(style, Some("12345"), Map("attr1" -> "value1"))
    See also

    UntaggedHierarchicalRenderer for more details regarding the rendering framework.

  2. trait BooleanHierarchicalRenderer extends UntaggedHierarchicalRenderer[Boolean]

    Trait BooleanHierarchicalRenderer extends the UntaggedHierarchicalRenderer for handling Boolean types.

    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.

    See also

    UntaggedHierarchicalRenderer

    HierarchicalRenderer

  3. trait DoubleHierarchicalRenderer extends UntaggedHierarchicalRenderer[Double]

    Trait DoubleHierarchicalRenderer extends the UntaggedHierarchicalRenderer to provide rendering capabilities specifically for objects of type Double in a hierarchical structure.

    Trait DoubleHierarchicalRenderer extends the UntaggedHierarchicalRenderer to provide rendering capabilities specifically for objects of type Double in a hierarchical structure.

    This trait is used to define how instances of Double can be represented in a hierarchical format, inheriting the basic behavior and methods from the UntaggedHierarchicalRenderer type class.

    Key Features: - Automatic support for rendering Double objects in a hierarchical layout. - Includes rendering functionality inherited from UntaggedHierarchicalRenderer, such as the render method. - Provides a default styling structure through the style property inherited from the parent trait.

    This trait simplifies the customization and usage of hierarchical renderers specific to the Double type and can be utilized as part of a rendering pipeline where structured data representations are needed.

    See also

    UntaggedHierarchicalRenderer for more details on the base functionality.

  4. trait IntHierarchicalRenderer extends UntaggedHierarchicalRenderer[Int]

    A trait for rendering instances of type Int in a hierarchical structure, extending the UntaggedHierarchicalRenderer functionality tailored for the Int type.

    A trait for rendering instances of type Int in a hierarchical structure, extending the UntaggedHierarchicalRenderer functionality tailored for the Int type.

    This trait provides a framework for rendering integers with an associated set of attributes, potentially styled through the style property inherited from its parent trait.

    The IntHierarchicalRenderer can be utilized as a part of a broader rendering pipeline where structured (hierarchical) representation of data is required. This trait acts as the specific renderer for Int values, leveraging mechanisms defined in its supertype.

    See also

    UntaggedHierarchicalRenderer for further details around the rendering process and expected behavior of methods like render.

  5. trait LocalDateHierarchicalRenderer extends UntaggedHierarchicalRenderer[LocalDate]

    Trait LocalDateHierarchicalRenderer is a specialized implementation of the UntaggedHierarchicalRenderer for rendering instances of LocalDate in a hierarchical structured format.

    Trait LocalDateHierarchicalRenderer is a specialized implementation of the UntaggedHierarchicalRenderer for rendering instances of LocalDate in a hierarchical structured format. It provides a mechanism to render LocalDate objects as nodes with additional attributes.

    This trait inherits the rendering capabilities from UntaggedHierarchicalRenderer[LocalDate], which is designed for rendering objects of a specific type while supporting custom attributes and style.

    Example usage:

    implicit object MyLocalDateRenderer extends LocalDateHierarchicalRenderer
    val renderedNode: Node = MyLocalDateRenderer.render(LocalDate.now, Map("key" -> "value"))
    See also

    UntaggedHierarchicalRenderer for the base trait and its methods.

  6. trait LongHierarchicalRenderer extends UntaggedHierarchicalRenderer[Long]

    Trait LongHierarchicalRenderer extends UntaggedHierarchicalRenderer specifically for rendering hierarchical structures of type Long.

    Trait LongHierarchicalRenderer extends UntaggedHierarchicalRenderer specifically for rendering hierarchical structures of type Long. It provides a framework to transform instances of Long into a node-based hierarchical representation, leveraging the untagged style rendering provided by the parent trait.

    This trait does not define any additional members or behavior itself but inherits from UntaggedHierarchicalRenderer, using Long as the predefined type parameter.

    See also

    UntaggedHierarchicalRenderer

  7. trait StringHierarchicalRenderer extends UntaggedHierarchicalRenderer[String]

    A type class that provides functionality to render hierarchical data as strings.

    A type class that provides functionality to render hierarchical data as strings.

    The StringHierarchicalRenderer trait extends the UntaggedHierarchicalRenderer specifically for rendering data where the rendered output is of type String. This trait is the foundation for constructing string-based hierarchical renderings within a rendering framework.

    It inherits the capabilities from UntaggedHierarchicalRenderer[String], where: - It allows objects of type T to be systematically converted into a string format with optional attributes that define characteristics of rendering. - It contains a default style attribute that can be used when rendering (defaults to an empty string).

    By using StringHierarchicalRenderer, developers can define ways to represent data objects hierarchically in string form, while benefiting from shared behavior in the UntaggedHierarchicalRenderer parent trait.

    See also

    UntaggedHierarchicalRenderer

    HierarchicalRenderer

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  9. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  13. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  14. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  15. def toString(): String
    Definition Classes
    AnyRef → Any
  16. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  17. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  18. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  19. implicit object BigIntHierarchicalRenderer extends BigIntHierarchicalRenderer

    Implicit object for rendering BigInt instances hierarchically.

    Implicit object for rendering BigInt instances hierarchically.

    This object extends the BigIntHierarchicalRenderer trait, which itself is a specialized implementation of the UntaggedHierarchicalRenderer for BigInt. It serves as an implicit instance to provide hierarchical rendering functionality for the BigInt type.

    The hierarchical rendering defined by this object facilitates representing BigInt values in structured or nested formats, which may be used for serialization, visualization, or other purposes in applications requiring hierarchical representations.

    Usage Example:

    import com.example.renderers.BigIntHierarchicalRenderer
    
    val bigIntValue: BigInt = BigInt("12345678901234567890")
    val renderedOutput = someRenderingMethod(bigIntValue) // Uses BigIntHierarchicalRenderer implicitly
    println(renderedOutput)
  20. implicit object BooleanHierarchicalRenderer extends BooleanHierarchicalRenderer

    An implicit object for rendering Boolean values in a hierarchical structure.

    An implicit object for rendering Boolean values in a hierarchical structure.

    BooleanHierarchicalRenderer is an instance of the BooleanHierarchicalRenderer trait, which provides support for rendering Boolean values by adhering to the UntaggedHierarchicalRenderer contract. It allows for consistent and structured formatting of Boolean data to fit into a hierarchical rendering context.

    This implicit instance can be automatically utilized wherever a BooleanHierarchicalRenderer is required, making it easier to work with Boolean rendering across hierarchical structures without the need for explicitly defining renderers.

  21. implicit object DoubleHierarchicalRenderer extends DoubleHierarchicalRenderer

    Implicit object providing a default implementation of DoubleHierarchicalRenderer.

    Implicit object providing a default implementation of DoubleHierarchicalRenderer.

    The DoubleHierarchicalRenderer is an implicit, singleton object that serves as a type class instance for rendering Double values in a hierarchical structure. It extends the DoubleHierarchicalRenderer trait, which itself extends UntaggedHierarchicalRenderer[Double]. This ensures that the object integrates into systems utilizing the HierarchicalRenderer type class framework.

    This implicit object allows seamless rendering of Double values when a hierarchical rendering type class is required in the context of HierarchicalRenderer.

  22. implicit object IntHierarchicalRenderer extends IntHierarchicalRenderer

    Implicit object IntHierarchicalRenderer provides a default implementation of the IntHierarchicalRenderer trait, which extends the UntaggedHierarchicalRenderer type class for the Int type, enabling hierarchical rendering operations for Int values.

    Implicit object IntHierarchicalRenderer provides a default implementation of the IntHierarchicalRenderer trait, which extends the UntaggedHierarchicalRenderer type class for the Int type, enabling hierarchical rendering operations for Int values. This object acts as a companion and offers concrete behavior for rendering integers hierarchically.

    The purpose of this renderer is to support type-safe and composable rendering of Int values in contexts where hierarchical data needs to be processed. The implementation is expected to define how integers are transformed or rendered in a hierarchical structure.

    Usage: By being an implicit object, IntHierarchicalRenderer is automatically available wherever an IntHierarchicalRenderer instance is required implicitly. Users can this behavior by creating their own instances if a customized implementation is needed.

    Example:

    // Assuming a hierarchical rendering context
    val result = someHierarchicalRenderingMethod(42) // Uses IntHierarchicalRenderer implicitly
  23. implicit object LocalDateHierarchicalRenderer extends LocalDateHierarchicalRenderer

    Implicit object LocalDateHierarchicalRenderer for rendering LocalDate in a hierarchical structure.

    Implicit object LocalDateHierarchicalRenderer for rendering LocalDate in a hierarchical structure.

    This object extends the LocalDateHierarchicalRenderer trait, which specializes UntaggedHierarchicalRenderer for rendering instances of LocalDate. It provides type class support for hierarchical rendering of LocalDate objects.

    The rendering mechanism provided by this implicit object ensures that LocalDate instances are converted into a hierarchical representation that aligns with the expected structure defined by its associated renderer type class.

    This implicit is typically used for cases where LocalDate representation as part of a larger heterogeneous data structure needs to be rendered in a textual or hierarchical format that aligns with UntaggedHierarchicalRenderer semantics.

    Usage: Simply ensure LocalDateHierarchicalRenderer is in scope when rendering LocalDate within a hierarchical context, and the appropriate rendering implementation will be picked up implicitly.

    Example:

    import LocalDateHierarchicalRenderer._
    
    val localDate: LocalDate = LocalDate.of(2023, 10, 15)
    val rendered = implicitly[LocalDateHierarchicalRenderer].render(localDate, Map.empty)
    println(rendered) // Outputs the hierarchical representation of the LocalDate
  24. implicit object LongHierarchicalRenderer extends LongHierarchicalRenderer

    Implicit object for rendering Long values in a hierarchical manner.

    Implicit object for rendering Long values in a hierarchical manner.

    This object provides an implicit instance of LongHierarchicalRenderer trait to render Long type values in a structured, hierarchical format. The specific rendering behavior is defined within the LongHierarchicalRenderer trait.

    Usage: Implicitly used in contexts where a Long type value needs to be serialized or represented hierarchically.

  25. implicit object StringHierarchicalRenderer extends StringHierarchicalRenderer

    Implicit object for rendering hierarchical structures as strings.

    Implicit object for rendering hierarchical structures as strings.

    The StringHierarchicalRenderer provides an implicit instance of the StringHierarchicalRenderer type class, allowing hierarchical data structures to be rendered into a string format. This is useful for cases where hierarchical data needs to be displayed, logged, or processed in textual form.

    A StringHierarchicalRenderer is a subtype of UntaggedHierarchicalRenderer[String], enabling the rendering of hierarchy data without requiring specific type tags.

    Usage: By importing this implicit object into scope, you can provide a default mechanism for string-based hierarchical rendering for types supporting the StringHierarchicalRenderer trait.

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped