Object

org.coursera.courier.templates

DataTemplates

Related Doc: package templates

Permalink

object DataTemplates

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

Type Members

  1. type DataConversion = DataTemplates.DataConversion.Value

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. object DataConversion extends Enumeration

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. def getDeclaringTyperefSchema(clazz: Class[_]): Option[TyperefDataSchema]

    Permalink

    For types declared within typeref, gets the schema of the typeref.

    For types declared within typeref, gets the schema of the typeref.

    For example, the typeref declaration:

    typeref MyUnion = union[Alpha, Beta]

    declares a union that will be generated as the class MyUnion. This generated union class will contain both a SCHEMA field to access the union schema (union[Alpha, Beta]) and a TYPEREF_SCHEMA field to access the declaring typeref schema (typeref MyUnion = union[Alpha, Beta]).

    clazz

    provides a Scala generated data binding class.

    returns

    a typeref data schema.

  12. def getSchema(clazz: Class[_]): DataSchema

    Permalink

    Gets the schema of the Scala generated data binding class.

    Gets the schema of the Scala generated data binding class.

    clazz

    provides a Scala generated data binding class.

    returns

    a data schema.

  13. def getSchema[T <: DataTemplate[_]](implicit tag: ClassTag[T]): DataSchema

    Permalink

    Gets the schema of the Scala generated data binding class.

    Gets the schema of the Scala generated data binding class.

    returns

    a data schema.

  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. def makeImmutable[T <: DataComplex](data: T, conversion: DataConversion): T

    Permalink
  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. def readArray[T <: DataTemplate[DataList]](json: String)(implicit tag: ClassTag[T]): T

    Permalink

    Dynamically instantiates an array template type from json.

  21. def readDataList(json: String): DataList

    Permalink
  22. def readDataMap(json: String): DataMap

    Permalink
  23. def readMap[T <: DataTemplate[DataMap]](json: String)(implicit tag: ClassTag[T]): T

    Permalink

    Dynamically instantiates a map template type from json.

  24. def readRecord[T <: RecordTemplate](json: String)(implicit tag: ClassTag[T]): T

    Permalink

    Dynamically instantiates a record template type from json.

  25. def readUnion[T <: UnionTemplate](json: String)(implicit tag: ClassTag[T]): T

    Permalink

    Dynamically instantiates a union template type from json.

  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  27. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  28. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. def writeArray[T <: DataTemplate[DataList]](template: T)(implicit tag: ClassTag[T]): String

    Permalink

    Writes an array template to json.

  32. def writeDataList(dataList: DataList): String

    Permalink
  33. def writeDataMap(dataMap: DataMap): String

    Permalink
  34. def writeMap[T <: DataTemplate[DataMap]](template: T)(implicit tag: ClassTag[T]): String

    Permalink

    Writes a map template to json.

  35. def writeRecord[T <: RecordTemplate](template: T)(implicit tag: ClassTag[T]): String

    Permalink

    Writes a record template to json.

  36. def writeUnion[T <: UnionTemplate](template: T)(implicit tag: ClassTag[T]): String

    Permalink

    Writes a union template to json.

Inherited from AnyRef

Inherited from Any

Ungrouped