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.
- Alphabetic
- By Inheritance
- Deserializer
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
-  new Deserializer()(implicit conf: DeserializerConf)
Value Members
-   final  def !=(arg0: Any): Boolean- Definition Classes
- AnyRef → Any
 
-   final  def ##: Int- Definition Classes
- AnyRef → Any
 
-   final  def ==(arg0: Any): Boolean- Definition Classes
- AnyRef → Any
 
-   final  def asInstanceOf[T0]: T0- Definition Classes
- Any
 
-    def clone(): AnyRef- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
 
-  implicit val conf: DeserializerConf
-    def deserialize(jsonLogic: JsObject, jsonLogicData: JsObject): JsonLogicCoreReturns 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. 
 
-    def deserializeArrayOfConditions(json: JsValue, jsonLogicData: JsObject): Array[JsonLogicCore]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
 - Attributes
- protected[this]
 
-    def deserializeComposeLogic(jsonLogic: JsObject, jsonLogicData: JsObject): ComposeLogicReturns 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]
 
-    def deserializeValueLogic(jsonLogic: JsObject, jsonLogicData: JsObject): ValueLogic[_]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]
 
-   final  def eq(arg0: AnyRef): Boolean- Definition Classes
- AnyRef
 
-    def equals(arg0: AnyRef): Boolean- Definition Classes
- AnyRef → Any
 
-   final  def getClass(): Class[_ <: AnyRef]- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
 
-    def getUnmarshaller(typeValue: TypeValue): UnmarshallerReturns 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]
 
-    def hashCode(): Int- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
 
-   final  def isInstanceOf[T0]: Boolean- Definition Classes
- Any
 
-   final  def ne(arg0: AnyRef): Boolean- Definition Classes
- AnyRef
 
-   final  def notify(): Unit- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
 
-   final  def notifyAll(): Unit- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
 
-   final  def synchronized[T0](arg0: => T0): T0- Definition Classes
- AnyRef
 
-    def toString(): String- Definition Classes
- AnyRef → Any
 
-    val unmarshallers: Map[String, Unmarshaller]Maps type_codename to com.celadari.jsonlogicscala.deserialize.Unmarshaller. 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. 
 
-   final  def wait(arg0: Long, arg1: Int): Unit- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
 
-   final  def wait(arg0: Long): Unit- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
 
-   final  def wait(): Unit- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
 
Deprecated Value Members
-    def finalize(): Unit- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
- Deprecated
- (Since version ) see corresponding Javadoc for more information.