Class/Object

com.celadari.jsonlogicscala.deserialize

Deserializer

Related Docs: object Deserializer | package deserialize

Permalink

class Deserializer extends AnyRef

Responsible for deserializing json into scala com.celadari.jsonlogicscala.tree.JsonLogicCore data structure. May be extended to fit custom use cases. Providing the right configuration via com.celadari.jsonlogicscala.deserialize.DeserializerConf is enough to cover most cases. You may redefine methods to handle extreme uncommon cases.

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

Instance Constructors

  1. new Deserializer()(implicit conf: DeserializerConf)

    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. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  6. implicit val conf: DeserializerConf

    Permalink
  7. def deserialize(jsonLogic: JsObject, jsonLogicData: JsObject): JsonLogicCore

    Permalink

    Returns com.celadari.jsonlogicscala.tree.JsonLogicCore by combining logic from jsonLogic and data from jsonLogicData.

    Returns com.celadari.jsonlogicscala.tree.JsonLogicCore by combining logic from jsonLogic and data from jsonLogicData.

    returns

    JsonLogicCore.

  8. def deserializeArrayOfConditions(json: JsValue, jsonLogicData: JsObject): Array[JsonLogicCore]

    Permalink

    Returns array of com.celadari.jsonlogicscala.tree.JsonLogicCore from tuple of serialized (logic, data).

    Returns array of com.celadari.jsonlogicscala.tree.JsonLogicCore from tuple of serialized (logic, data). Logic is assumed to be an array of JsValue (JsArray) and each member of array is deserialized.

    returns

    array of com.celadari.jsonlogicscala.tree.JsonLogicCore.

    Attributes
    protected[this]
  9. def deserializeComposeLogic(jsonLogic: JsObject, jsonLogicData: JsObject): ComposeLogic

    Permalink

    Returns com.celadari.jsonlogicscala.tree.ComposeLogic by combining logic from jsonLogic and data from jsonLogicData.

    Returns com.celadari.jsonlogicscala.tree.ComposeLogic by combining logic from jsonLogic and data from jsonLogicData.

    returns

    ComposeLogic.

    Attributes
    protected[this]
  10. def deserializeValueLogic(jsonLogic: JsObject, jsonLogicData: JsObject): ValueLogic[_]

    Permalink

    Returns com.celadari.jsonlogicscala.tree.ValueLogic by combining logic from jsonLogic and data from jsonLogicData.

    Returns com.celadari.jsonlogicscala.tree.ValueLogic by combining logic from jsonLogic and data from jsonLogicData.

    returns

    ValueLogic.

    Attributes
    protected[this]
  11. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  14. def getUnmarshaller(typeValue: TypeValue): Unmarshaller

    Permalink

    Returns com.celadari.jsonlogicscala.deserialize.Unmarshaller associated with input typeValue.

    Returns com.celadari.jsonlogicscala.deserialize.Unmarshaller associated with input typeValue. If input typeValue is com.celadari.jsonlogicscala.tree.types.SimpleTypeValue then returns mapped value by unmarshallers attribute. If input typeValue is com.celadari.jsonlogicscala.tree.types.OptionTypeValue, com.celadari.jsonlogicscala.tree.types.ArrayTypeValue, com.celadari.jsonlogicscala.tree.types.MapTypeValue then a new com.celadari.jsonlogicscala.deserialize.Unmarshaller is recursively created by checking paramType of input typeValue.

    returns

    Unmarshaller associated to typeValue.

    Attributes
    protected[this]
  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  16. final def isInstanceOf[T0]: Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  20. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  22. val unmarshallers: Map[String, Unmarshaller]

    Permalink

    Maps type_codename to com.celadari.jsonlogicscala.deserialize.Unmarshaller.

    Attributes
    protected[this]
    Note

    More specifically, keys should be type_codename of com.celadari.jsonlogicscala.tree.types.SimpleTypeValue as generic types (OptionTypeValue, MapTypeValue, ArrayTypeValue) are handled recursively by getMarshaller.

  23. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped