c

org.json4s

MappedTypeHints

case class MappedTypeHints(hintMap: Map[Class[_], String], typeHintFieldName: String = "jsonClass") extends TypeHints with Product with Serializable

Use a map of keys as type hints. Values may not be mapped by multiple keys

Source
MappedTypeHints.scala
Linear Supertypes
Serializable, Serializable, Product, Equals, TypeHints, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MappedTypeHints
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. TypeHints
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MappedTypeHints(hintMap: Map[Class[_], String], typeHintFieldName: String = "jsonClass")

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(hints: TypeHints): TypeHints

    Adds the specified type hints to this type hints.

    Adds the specified type hints to this type hints.

    Definition Classes
    TypeHints
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def classFor(hint: String, parent: Class[_]): Option[Class[_]]

    Return type for given hint.

    Return type for given hint.

    Definition Classes
    MappedTypeHintsTypeHints
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  8. def components: List[TypeHints]
    Definition Classes
    TypeHints
  9. def containsHint(clazz: Class[_]): Boolean
    Definition Classes
    TypeHints
  10. def deserialize: PartialFunction[(String, JObject), Any]
    Definition Classes
    TypeHints
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def hintFor(clazz: Class[_]): Option[String]

    Return hint for given type.

    Return hint for given type.

    Definition Classes
    MappedTypeHintsTypeHints
  15. val hintMap: Map[Class[_], String]
  16. val hints: List[Class[_]]
    Definition Classes
    MappedTypeHintsTypeHints
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. def isTypeHintField(f: JField, parent: Class[_]): Boolean
    Definition Classes
    TypeHints
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. def serialize: PartialFunction[Any, JObject]
    Definition Classes
    TypeHints
  23. def shouldExtractHints(clazz: Class[_]): Boolean
    Definition Classes
    TypeHints
  24. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  25. val typeHintFieldName: String

    The name of the field in JSON where type hints are added (jsonClass by default)

    The name of the field in JSON where type hints are added (jsonClass by default)

    Definition Classes
    MappedTypeHintsTypeHints
  26. def typeHintFieldNameForClass(clazz: Class[_]): Option[String]
    Definition Classes
    TypeHints
  27. def typeHintFieldNameForHint(hint: String, parent: Class[_]): Option[String]
    Definition Classes
    TypeHints
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from TypeHints

Inherited from AnyRef

Inherited from Any

Ungrouped