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.
- Alphabetic
- By Inheritance
- HierarchicalRenderers
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- 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] ]
- 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] ].
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def nameAttr(value: String): Map[String, String]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- 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] ].
- 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].
- 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].
- 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].
- 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].
- 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].
- 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].
- 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].
- 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].
- 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].
- 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].
- 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].
- 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].
- 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].
- 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].
- 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] ]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()