io.atomicbits.scraml.dsl.json.TypedJson

TypeHintFormat

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
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

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

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

  5. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  6. final def ==(arg0: Any): Boolean

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

    Definition Classes
    Reads
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

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

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

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

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

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

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

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

    Definition Classes
    Reads
  17. def finalize(): Unit

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

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

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

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

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

    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

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

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

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

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

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

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

  31. val typeHintKey: String

  32. final def wait(): Unit

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

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

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

    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