Class/Object

io.atomicbits.scraml.dsl.json.TypedJson

TypeHintFormat

Related Docs: object TypeHintFormat | package TypedJson

Permalink

case class TypeHintFormat[A](typeHintKey: String, typeHintFormats: TypeHint[_ <: A]*) extends Format[A] with Product with Serializable

Create a Format that will find the correct format amongst the passed formats when serialising/deserialising, using the type hint in the TypeFormat. The field that holds the type hint will be the value of typeKey

Linear Supertypes
Serializable, Serializable, Product, Equals, Format[A], Reads[A], Writes[A], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TypeHintFormat
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Format
  7. Reads
  8. Writes
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TypeHintFormat(typeHintKey: String, typeHintFormats: TypeHint[_ <: A]*)

    Permalink

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def ++[U >: A, B <: U](that: TypeHintFormat[B]): TypeHintFormat[U]

    Permalink
  4. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  5. def andThen[B](rb: Reads[B])(implicit witness: <:<[A, JsValue]): Reads[B]

    Permalink
    Definition Classes
    Reads
  6. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def collect[B](error: ValidationError)(f: PartialFunction[A, B]): Reads[B]

    Permalink
    Definition Classes
    Reads
  9. def compose[B <: JsValue](rb: Reads[B]): Reads[A]

    Permalink
    Definition Classes
    Reads
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def filter(error: ValidationError)(f: (A) ⇒ Boolean): Reads[A]

    Permalink
    Definition Classes
    Reads
  12. def filter(f: (A) ⇒ Boolean): Reads[A]

    Permalink
    Definition Classes
    Reads
  13. def filterNot(error: ValidationError)(f: (A) ⇒ Boolean): Reads[A]

    Permalink
    Definition Classes
    Reads
  14. def filterNot(f: (A) ⇒ Boolean): Reads[A]

    Permalink
    Definition Classes
    Reads
  15. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def flatMap[B](f: (A) ⇒ Reads[B]): Reads[B]

    Permalink
    Definition Classes
    Reads
  17. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    Any
  19. def map[B](f: (A) ⇒ B): Reads[B]

    Permalink
    Definition Classes
    Reads
  20. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  23. def orElse(v: Reads[A]): Reads[A]

    Permalink
    Definition Classes
    Reads
  24. def reads(json: JsValue): JsResult[A]

    Permalink
    Definition Classes
    TypeHintFormat → Reads
  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  26. def transform(transformer: Writes[JsValue]): Writes[A]

    Permalink
    Definition Classes
    Writes
  27. def transform(transformer: (JsValue) ⇒ JsValue): Writes[A]

    Permalink
    Definition Classes
    Writes
  28. val typeHintFormats: TypeHint[_ <: A]*

    Permalink
  29. val typeHintKey: String

    Permalink
  30. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. def writes(obj: A): JsValue

    Permalink
    Definition Classes
    TypeHintFormat → Writes

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Format[A]

Inherited from Reads[A]

Inherited from Writes[A]

Inherited from AnyRef

Inherited from Any

Ungrouped