trait TableRenderable[X] extends AnyRef

Polymorphic trait which defines the behavior of some sort of collection with an underlying type X and which can be rendered.

CONSIDER: do we really need this trait? This trait is not, strictly speaking, a typeclass because X does not appear as a parameter or result of any of the methods. However, it cannot be sealed which implies that it is used as a typeclass.

NOTE: this trait has no direct relationship with Renderer. CONSIDER a refactoring of the whole set of traits.

X

the underlying type of this TableRenderable.

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

Abstract Value Members

  1. abstract def render[O](implicit ev: Renderer[Table[X], O]): O

    Method to render this TableRenderable to serialized type O without any constraint on O.

    Method to render this TableRenderable to serialized type O without any constraint on O.

    NOTE this is currently used only by JsonTableRendererSpec

    CONSIDER combining this with renderToWritable.

    CONSIDER generalizing the type of ev.

    O

    the type of the result.

    ev

    implicit evidence for Renderer of Table of X.

    returns

    an instance of O.

  2. abstract def renderHierarchical[U](style: String, attributes: Map[String, String] = Map())(implicit arg0: TreeWriter[U], xr: HierarchicalRenderer[X]): U

    Method to render a table in a hierarchical fashion.

    Method to render a table in a hierarchical fashion.

    TESTME

    NOTE: if your output structure is not hierarchical in nature, then simply loop through the rows of this table, outputting each row as you go.

    U

    a class which supports TreeWriter (i.e. there is evidence of TreeWriter[U]).

    style

    the "style" to be used for the node which will represent this table.

    attributes

    the attributes to be applied to the top level node for this table.

    xr

    an (implicit) HierarchicalRenderer[Row]

    returns

    a new instance of U which represents this Table as a tree of some sort.

  3. abstract def renderHierarchicalSequenced[U](style: String, attributes: Map[String, String] = Map())(implicit arg0: TreeWriter[U], xr: HierarchicalRenderer[Indexed[X]]): U

    Method to render a table in a hierarchical fashion.

    Method to render a table in a hierarchical fashion.

    TESTME

    NOTE: if your output structure is not hierarchical in nature, then simply loop through the rows of this table, outputting each row as you go.

    U

    a class which supports TreeWriter (i.e. there is evidence of TreeWriter[U]).

    style

    the "style" to be used for the node which will represent this table.

    attributes

    the attributes to be applied to the top level node for this table.

    xr

    an (implicit) HierarchicalRenderer[ Indexed [ Row ] ]

    returns

    a new instance of U which represents this Table as a tree of some sort.

  4. abstract def renderToWritable[O](implicit z: Writable[O]): O

    NOTE this is never used

    NOTE this is never used

    CONSIDER redefining the definition of Renderer such that we can accommodate the various different types of output.

    Method to render a table in a sequential (serialized) fashion.

    O

    a type which supports Writable (via evidence of type Writable[O])

    returns

    a new (or possibly old) instance of O.

Concrete 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()

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