t

com.phasmidsoftware.render

HierarchicalRenderers

trait HierarchicalRenderers extends AnyRef

Trait to define various renderers for rendering instance of case classes (with their various parameters), containers (Seq and Option), etc. to hierarchical output elements such as XML or HTML.

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

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. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. def headerRenderer(style: String, attrs: Map[String, String] = Map(), sequenced: Boolean)(renderer: HierarchicalRenderer[String]): HierarchicalRenderer[Header]

    Method to return a HierarchicalRenderer[Header].

    Method to return a HierarchicalRenderer[Header].

    CONSIDER using sequenceRenderer

    style

    the style for the header (e.g. "th" for an HTML table).

    attrs

    the attributes.

    returns

    a HierarchicalRenderer[ Seq[String] ]

  12. def indexedRenderer[T](overallStyle: String, indexStyle: String)(implicit arg0: HierarchicalRenderer[T]): HierarchicalRenderer[Indexed[T]]

    T

    the underlying type of the first parameter of the input to the render method.

    overallStyle

    the style of the Node which will be created by this HierarchicalRenderer.

    indexStyle

    the style of the Index node which will form part of the Node created by this HierarchicalRenderer.

    returns

    a HierarchicalRenderer[ Indexed[T] ].

  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. def nameAttr(value: String): Map[String, String]
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. def optionRenderer[T](style: String, attrs: Map[String, String] = Map())(implicit arg0: HierarchicalRenderer[T]): HierarchicalRenderer[Option[T]]

    Method to return a HierarchicalRenderer[ Option[T] ].

    Method to return a HierarchicalRenderer[ Option[T] ]. NOTE: there are no identifiers generated with this HierarchicalRenderer.

    T

    the underlying type of the first parameter of the input to the render method.

    returns

    a HierarchicalRenderer[ Option[T] ].

  19. def renderer[T](style: String, attrs: Map[String, String] = Map())(implicit arg0: HierarchicalRenderer[T]): HierarchicalRenderer[T]

    Method to return a HierarchicalRenderer[T].

    Method to return a HierarchicalRenderer[T]. You do not need to define such a renderer if you can use the default style.

    T

    the underlying type of the first parameter of the input to the render method.

    style

    the style of the resulting renderer.

    attrs

    a set of base attributes which are explicitly set for this HierarchicalRenderer;

    returns

    a HierarchicalRenderer[T].

  20. def renderer1[P1, T <: Product](style: String, attrs: Map[String, String] = Map())(construct: (P1) => T)(implicit arg0: HierarchicalRenderer[P1], arg1: ClassTag[T]): HierarchicalRenderer[T]

    Method to return a HierarchicalRenderer[T] where T is a 1-ary Product and which is based on a function to convert a P into a T.

    Method to return a HierarchicalRenderer[T] where T is a 1-ary Product and which is based on a function to convert a P into a T.

    NOTE: be careful using this particular method it only applies where T is a 1-tuple (e.g. a case class with one field -- not common). It probably shouldn't ever be used in practice. It can cause strange initialization errors! This note may be irrelevant now that we have overridden convertString to fix issue #1.

    P1

    the type of the (single) field of the Product type T.

    T

    the underlying type of the first parameter of the input to the render method.

    construct

    a function P => T, usually the apply method of a case class. The sole purpose of this function is for type inference--it is never actually invoked.

    returns

    a HierarchicalRenderer[T].

  21. def renderer10[P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, T <: Product](style: String, attrs: Map[String, String] = Map())(construct: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10) => T)(implicit arg0: HierarchicalRenderer[P1], arg1: HierarchicalRenderer[P2], arg2: HierarchicalRenderer[P3], arg3: HierarchicalRenderer[P4], arg4: HierarchicalRenderer[P5], arg5: HierarchicalRenderer[P6], arg6: HierarchicalRenderer[P7], arg7: HierarchicalRenderer[P8], arg8: HierarchicalRenderer[P9], arg9: HierarchicalRenderer[P10], arg10: ClassTag[T]): HierarchicalRenderer[T]

    Method to return a HierarchicalRenderer[T] where T is a 10-ary Product and which is based on a function to convert a (P1,P2,P3,P4,P5,P6,P7,P8,P9,P10) into a T.

    Method to return a HierarchicalRenderer[T] where T is a 10-ary Product and which is based on a function to convert a (P1,P2,P3,P4,P5,P6,P7,P8,P9,P10) into a T.

    P1

    the type of the first field of the Product type T.

    P2

    the type of the second field of the Product type T.

    P3

    the type of the second field of the Product type T.

    P4

    the type of the fourth field of the Product type T.

    P5

    the type of the fifth field of the Product type T.

    P6

    the type of the sixth field of the Product type T.

    P7

    the type of the seventh field of the Product type T.

    P8

    the type of the eighth field of the Product type T.

    P9

    the type of the ninth field of the Product type T.

    P10

    the type of the tenth field of the Product type T.

    T

    the underlying type of the first parameter of the input to the render method.

    construct

    a function (P1,P2,P3,P4,P5,P6,P7,P8,P9,P10) => T, usually the apply method of a case class. The sole purpose of this function is for type inference--it is never actually invoked.

    returns

    a HierarchicalRenderer[T].

  22. def renderer11[P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, T <: Product](style: String, attrs: Map[String, String] = Map())(construct: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11) => T)(implicit arg0: HierarchicalRenderer[P1], arg1: HierarchicalRenderer[P2], arg2: HierarchicalRenderer[P3], arg3: HierarchicalRenderer[P4], arg4: HierarchicalRenderer[P5], arg5: HierarchicalRenderer[P6], arg6: HierarchicalRenderer[P7], arg7: HierarchicalRenderer[P8], arg8: HierarchicalRenderer[P9], arg9: HierarchicalRenderer[P10], arg10: HierarchicalRenderer[P11], arg11: ClassTag[T]): HierarchicalRenderer[T]

    Method to return a HierarchicalRenderer[T] where T is a 11-ary Product and which is based on a function to convert a (P1,P2,P3,P4,P5,P6,P7,P8,P9,P10,P11) into a T.

    Method to return a HierarchicalRenderer[T] where T is a 11-ary Product and which is based on a function to convert a (P1,P2,P3,P4,P5,P6,P7,P8,P9,P10,P11) into a T.

    P1

    the type of the first field of the Product type T.

    P2

    the type of the second field of the Product type T.

    P3

    the type of the second field of the Product type T.

    P4

    the type of the fourth field of the Product type T.

    P5

    the type of the fifth field of the Product type T.

    P6

    the type of the sixth field of the Product type T.

    P7

    the type of the seventh field of the Product type T.

    P8

    the type of the eighth field of the Product type T.

    P9

    the type of the ninth field of the Product type T.

    P10

    the type of the tenth field of the Product type T.

    P11

    the type of the eleventh field of the Product type T.

    T

    the underlying type of the first parameter of the input to the render method.

    construct

    a function (P1,P2,P3,P4,P5,P6,P7,P8,P9,P10,P11) => T, usually the apply method of a case class. The sole purpose of this function is for type inference--it is never actually invoked.

    returns

    a HierarchicalRenderer[T].

  23. def renderer12[P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, T <: Product](style: String, attrs: Map[String, String] = Map())(construct: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12) => T)(implicit arg0: HierarchicalRenderer[P1], arg1: HierarchicalRenderer[P2], arg2: HierarchicalRenderer[P3], arg3: HierarchicalRenderer[P4], arg4: HierarchicalRenderer[P5], arg5: HierarchicalRenderer[P6], arg6: HierarchicalRenderer[P7], arg7: HierarchicalRenderer[P8], arg8: HierarchicalRenderer[P9], arg9: HierarchicalRenderer[P10], arg10: HierarchicalRenderer[P11], arg11: HierarchicalRenderer[P12], arg12: ClassTag[T]): HierarchicalRenderer[T]

    Method to return a HierarchicalRenderer[T] where T is a 12-ary Product and which is based on a function to convert a (P1,P2,P3,P4,P5,P6,P7,P8,P9,P10,P11,P12) into a T.

    Method to return a HierarchicalRenderer[T] where T is a 12-ary Product and which is based on a function to convert a (P1,P2,P3,P4,P5,P6,P7,P8,P9,P10,P11,P12) into a T.

    P1

    the type of the first field of the Product type T.

    P2

    the type of the second field of the Product type T.

    P3

    the type of the second field of the Product type T.

    P4

    the type of the fourth field of the Product type T.

    P5

    the type of the fifth field of the Product type T.

    P6

    the type of the sixth field of the Product type T.

    P7

    the type of the seventh field of the Product type T.

    P8

    the type of the eighth field of the Product type T.

    P9

    the type of the ninth field of the Product type T.

    P10

    the type of the tenth field of the Product type T.

    P11

    the type of the eleventh field of the Product type T.

    P12

    the type of the twelfth field of the Product type T.

    T

    the underlying type of the first parameter of the input to the render method.

    construct

    a function (P1,P2,P3,P4,P5,P6,P7,P8,P9,P10,P11,P12) => T, usually the apply method of a case class. The sole purpose of this function is for type inference--it is never actually invoked.

    returns

    a HierarchicalRenderer[T].

  24. def renderer2[P1, P2, T <: Product](style: String, attrs: Map[String, String] = Map())(construct: (P1, P2) => T)(implicit arg0: HierarchicalRenderer[P1], arg1: HierarchicalRenderer[P2], arg2: ClassTag[T]): HierarchicalRenderer[T]

    Method to return a HierarchicalRenderer[T] where T is a 2-ary Product and which is based on a function to convert a (P1,P2) into a T.

    Method to return a HierarchicalRenderer[T] where T is a 2-ary Product and which is based on a function to convert a (P1,P2) into a T.

    P1

    the type of the first field of the Product type T.

    P2

    the type of the second field of the Product type T.

    T

    the underlying type of the first parameter of the input to the render method.

    construct

    a function (P1,P2) => T, usually the apply method of a case class. The sole purpose of this function is for type inference--it is never actually invoked.

    returns

    a HierarchicalRenderer[T].

  25. def renderer3[P1, P2, P3, T <: Product](style: String, attrs: Map[String, String] = Map())(construct: (P1, P2, P3) => T)(implicit arg0: HierarchicalRenderer[P1], arg1: HierarchicalRenderer[P2], arg2: HierarchicalRenderer[P3], arg3: ClassTag[T]): HierarchicalRenderer[T]

    Method to return a HierarchicalRenderer[T] where T is a 3-ary Product and which is based on a function to convert a (P1,P2,P3) into a T.

    Method to return a HierarchicalRenderer[T] where T is a 3-ary Product and which is based on a function to convert a (P1,P2,P3) into a T.

    P1

    the type of the first field of the Product type T.

    P2

    the type of the second field of the Product type T.

    P3

    the type of the third field of the Product type T.

    T

    the underlying type of the first parameter of the input to the render method.

    construct

    a function (P1,P2,P3) => T, usually the apply method of a case class. The sole purpose of this function is for type inference--it is never actually invoked.

    returns

    a HierarchicalRenderer[T].

  26. def renderer4[P1, P2, P3, P4, T <: Product](style: String, attrs: Map[String, String] = Map())(construct: (P1, P2, P3, P4) => T)(implicit arg0: HierarchicalRenderer[P1], arg1: HierarchicalRenderer[P2], arg2: HierarchicalRenderer[P3], arg3: HierarchicalRenderer[P4], arg4: ClassTag[T]): HierarchicalRenderer[T]

    Method to return a HierarchicalRenderer[T] where T is a 4-ary Product and which is based on a function to convert a (P1,P2,P3,P4) into a T.

    Method to return a HierarchicalRenderer[T] where T is a 4-ary Product and which is based on a function to convert a (P1,P2,P3,P4) into a T.

    P1

    the type of the first field of the Product type T.

    P2

    the type of the second field of the Product type T.

    P3

    the type of the second field of the Product type T.

    P4

    the type of the fourth field of the Product type T.

    T

    the underlying type of the first parameter of the input to the render method.

    construct

    a function (P1,P2,P3,P4) => T, usually the apply method of a case class. The sole purpose of this function is for type inference--it is never actually invoked.

    returns

    a HierarchicalRenderer[T].

  27. def renderer5[P1, P2, P3, P4, P5, T <: Product](style: String, attrs: Map[String, String] = Map())(construct: (P1, P2, P3, P4, P5) => T)(implicit arg0: HierarchicalRenderer[P1], arg1: HierarchicalRenderer[P2], arg2: HierarchicalRenderer[P3], arg3: HierarchicalRenderer[P4], arg4: HierarchicalRenderer[P5], arg5: ClassTag[T]): HierarchicalRenderer[T]

    Method to return a HierarchicalRenderer[T] where T is a 5-ary Product and which is based on a function to convert a (P1,P2,P3,P4,P5) into a T.

    Method to return a HierarchicalRenderer[T] where T is a 5-ary Product and which is based on a function to convert a (P1,P2,P3,P4,P5) into a T.

    P1

    the type of the first field of the Product type T.

    P2

    the type of the second field of the Product type T.

    P3

    the type of the second field of the Product type T.

    P4

    the type of the fourth field of the Product type T.

    P5

    the type of the fifth field of the Product type T.

    T

    the underlying type of the first parameter of the input to the render method.

    construct

    a function (P1,P2,P3,P4,P5) => T, usually the apply method of a case class. The sole purpose of this function is for type inference--it is never actually invoked.

    returns

    a HierarchicalRenderer[T].

  28. def renderer6[P1, P2, P3, P4, P5, P6, T <: Product](style: String, attrs: Map[String, String] = Map())(construct: (P1, P2, P3, P4, P5, P6) => T)(implicit arg0: HierarchicalRenderer[P1], arg1: HierarchicalRenderer[P2], arg2: HierarchicalRenderer[P3], arg3: HierarchicalRenderer[P4], arg4: HierarchicalRenderer[P5], arg5: HierarchicalRenderer[P6], arg6: ClassTag[T]): HierarchicalRenderer[T]

    Method to return a HierarchicalRenderer[T] where T is a 6-ary Product and which is based on a function to convert a (P1,P2,P3,P4,P5,P6) into a T.

    Method to return a HierarchicalRenderer[T] where T is a 6-ary Product and which is based on a function to convert a (P1,P2,P3,P4,P5,P6) into a T.

    P1

    the type of the first field of the Product type T.

    P2

    the type of the second field of the Product type T.

    P3

    the type of the second field of the Product type T.

    P4

    the type of the fourth field of the Product type T.

    P5

    the type of the fifth field of the Product type T.

    P6

    the type of the sixth field of the Product type T.

    T

    the underlying type of the first parameter of the input to the render method.

    construct

    a function (P1,P2,P3,P4,P5,P6) => T, usually the apply method of a case class. The sole purpose of this function is for type inference--it is never actually invoked.

    returns

    a HierarchicalRenderer[T].

  29. def renderer7[P1, P2, P3, P4, P5, P6, P7, T <: Product](style: String, attrs: Map[String, String] = Map())(construct: (P1, P2, P3, P4, P5, P6, P7) => T)(implicit arg0: HierarchicalRenderer[P1], arg1: HierarchicalRenderer[P2], arg2: HierarchicalRenderer[P3], arg3: HierarchicalRenderer[P4], arg4: HierarchicalRenderer[P5], arg5: HierarchicalRenderer[P6], arg6: HierarchicalRenderer[P7], arg7: ClassTag[T]): HierarchicalRenderer[T]

    Method to return a HierarchicalRenderer[T] where T is a 7-ary Product and which is based on a function to convert a (P1,P2,P3,P4,P5,P6,P7) into a T.

    Method to return a HierarchicalRenderer[T] where T is a 7-ary Product and which is based on a function to convert a (P1,P2,P3,P4,P5,P6,P7) into a T.

    P1

    the type of the first field of the Product type T.

    P2

    the type of the second field of the Product type T.

    P3

    the type of the second field of the Product type T.

    P4

    the type of the fourth field of the Product type T.

    P5

    the type of the fifth field of the Product type T.

    P6

    the type of the sixth field of the Product type T.

    P7

    the type of the seventh field of the Product type T.

    T

    the underlying type of the first parameter of the input to the render method.

    construct

    a function (P1,P2,P3,P4,P5,P6,P7) => T, usually the apply method of a case class. The sole purpose of this function is for type inference--it is never actually invoked.

    returns

    a HierarchicalRenderer[T].

  30. def renderer8[P1, P2, P3, P4, P5, P6, P7, P8, T <: Product](style: String, attrs: Map[String, String] = Map())(construct: (P1, P2, P3, P4, P5, P6, P7, P8) => T)(implicit arg0: HierarchicalRenderer[P1], arg1: HierarchicalRenderer[P2], arg2: HierarchicalRenderer[P3], arg3: HierarchicalRenderer[P4], arg4: HierarchicalRenderer[P5], arg5: HierarchicalRenderer[P6], arg6: HierarchicalRenderer[P7], arg7: HierarchicalRenderer[P8], arg8: ClassTag[T]): HierarchicalRenderer[T]

    Method to return a HierarchicalRenderer[T] where T is a 8-ary Product and which is based on a function to convert a (P1,P2,P3,P4,P5,P6,P7,P8) into a T.

    Method to return a HierarchicalRenderer[T] where T is a 8-ary Product and which is based on a function to convert a (P1,P2,P3,P4,P5,P6,P7,P8) into a T.

    P1

    the type of the first field of the Product type T.

    P2

    the type of the second field of the Product type T.

    P3

    the type of the second field of the Product type T.

    P4

    the type of the fourth field of the Product type T.

    P5

    the type of the fifth field of the Product type T.

    P6

    the type of the sixth field of the Product type T.

    P7

    the type of the seventh field of the Product type T.

    P8

    the type of the eighth field of the Product type T.

    T

    the underlying type of the first parameter of the input to the render method.

    construct

    a function (P1,P2,P3,P4,P5,P6,P7,P8) => T, usually the apply method of a case class. The sole purpose of this function is for type inference--it is never actually invoked.

    returns

    a HierarchicalRenderer[T].

  31. def renderer9[P1, P2, P3, P4, P5, P6, P7, P8, P9, T <: Product](style: String, attrs: Map[String, String] = Map())(construct: (P1, P2, P3, P4, P5, P6, P7, P8, P9) => T)(implicit arg0: HierarchicalRenderer[P1], arg1: HierarchicalRenderer[P2], arg2: HierarchicalRenderer[P3], arg3: HierarchicalRenderer[P4], arg4: HierarchicalRenderer[P5], arg5: HierarchicalRenderer[P6], arg6: HierarchicalRenderer[P7], arg7: HierarchicalRenderer[P8], arg8: HierarchicalRenderer[P9], arg9: ClassTag[T]): HierarchicalRenderer[T]

    Method to return a HierarchicalRenderer[T] where T is a 9-ary Product and which is based on a function to convert a (P1,P2,P3,P4,P5,P6,P7,P8,P9) into a T.

    Method to return a HierarchicalRenderer[T] where T is a 9-ary Product and which is based on a function to convert a (P1,P2,P3,P4,P5,P6,P7,P8,P9) into a T.

    P1

    the type of the first field of the Product type T.

    P2

    the type of the second field of the Product type T.

    P3

    the type of the second field of the Product type T.

    P4

    the type of the fourth field of the Product type T.

    P5

    the type of the fifth field of the Product type T.

    P6

    the type of the sixth field of the Product type T.

    P7

    the type of the seventh field of the Product type T.

    P8

    the type of the eighth field of the Product type T.

    P9

    the type of the ninth field of the Product type T.

    T

    the underlying type of the first parameter of the input to the render method.

    construct

    a function (P1,P2,P3,P4,P5,P6,P7,P8,P9) => T, usually the apply method of a case class. The sole purpose of this function is for type inference--it is never actually invoked.

    returns

    a HierarchicalRenderer[T].

  32. def rendererExplicit[T](style: String, attrs: Map[String, String] = Map())(f: (T) => String)(implicit arg0: HierarchicalRenderer[T]): HierarchicalRenderer[T]

    Method to return a HierarchicalRenderer[T] where you wish to explicitly define a conversion o a T into a String.

    Method to return a HierarchicalRenderer[T] where you wish to explicitly define a conversion o a T into a String.

    TEST

    T

    the underlying type of the first parameter of the input to the render method.

    style

    the style of the resulting renderer.

    attrs

    a set of base attributes which are explicitly set for this HierarchicalRenderer;

    f

    the rendering function to transform a T into a String (overrides the default asString method).

    returns

    a HierarchicalRenderer[T].

  33. def sequenceRenderer[T](style: String, attrs: Map[String, String] = Map())(implicit arg0: HierarchicalRenderer[T]): HierarchicalRenderer[Seq[T]]

    Method to return a HierarchicalRenderer[ Seq[T] ].

    Method to return a HierarchicalRenderer[ Seq[T] ]. NOTE: there are no identifiers generated with this HierarchicalRenderer.

    T

    the underlying type of the first parameter of the input to the render method.

    returns

    a HierarchicalRenderer[ Seq[T] ]

  34. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  35. def toString(): String
    Definition Classes
    AnyRef → Any
  36. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  37. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  38. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped