trait JsonSerializer[Data <: Identifiable[Data]] extends BasicSerializer[Data]
A simple serializer for flattened Json Identifiables.
- Data
The type of data that is to be serialized. NOTE: MUST BE Identifiable.
- Alphabetic
- By Inheritance
- JsonSerializer
- BasicSerializer
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
deserialize_(json: JsObject): Data
This needs to be implemented by the serializer; This tells you how to deserialize the object.
This needs to be implemented by the serializer; This tells you how to deserialize the object.
- json
The JSON Representation of a (flattened) JSON object.
- returns
The unserialized Data.
-
abstract
def
serializeToJson_(d: Data): JsObject
This needs to be implemented by the serializer; This tells you how to serialize the object.
This needs to be implemented by the serializer; This tells you how to serialize the object.
- d
The Data that needs to be serialized.
- returns
A JSON Representation of a (flattened) JSON object.
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from JsonSerializer[Data] to any2stringadd[JsonSerializer[Data]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (JsonSerializer[Data], B)
- Implicit
- This member is added by an implicit conversion from JsonSerializer[Data] to ArrowAssoc[JsonSerializer[Data]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
deserialize(s: String): Data
- Definition Classes
- BasicSerializer
-
def
deserialize_(str: String): Data
This takes care of the deserialization of the JSON.
This takes care of the deserialization of the JSON. First, it takes the serialized string and turns it into the JsObject representation of JSON. Then, it takes care of the meta-data, and then calls deserialize_() on the rest of the data.
- str
The serialized version of the object.
- returns
The object that got rebuilt from the serialization.
- Definition Classes
- JsonSerializer → BasicSerializer
-
def
ensuring(cond: (JsonSerializer[Data]) ⇒ Boolean, msg: ⇒ Any): JsonSerializer[Data]
- Implicit
- This member is added by an implicit conversion from JsonSerializer[Data] to Ensuring[JsonSerializer[Data]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (JsonSerializer[Data]) ⇒ Boolean): JsonSerializer[Data]
- Implicit
- This member is added by an implicit conversion from JsonSerializer[Data] to Ensuring[JsonSerializer[Data]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): JsonSerializer[Data]
- Implicit
- This member is added by an implicit conversion from JsonSerializer[Data] to Ensuring[JsonSerializer[Data]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): JsonSerializer[Data]
- Implicit
- This member is added by an implicit conversion from JsonSerializer[Data] to Ensuring[JsonSerializer[Data]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from JsonSerializer[Data] to StringFormat[JsonSerializer[Data]] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
serialize(a: Data): String
- Definition Classes
- BasicSerializer
-
def
serializeToJson(d: Data): JsObject
This does all of the serialization of data to a JSON Representation JsObject.
This does all of the serialization of data to a JSON Representation JsObject. This calls serializeToJson_ for the actual serialization, but this takes care of the meta-data of the Identifiable.
- d
The Identifiable that needs to be serialized.
- returns
A JSON Representation of a (flattened) JSON Object.
-
def
serialize_(d: Data): String
- Definition Classes
- JsonSerializer → BasicSerializer
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
→[B](y: B): (JsonSerializer[Data], B)
- Implicit
- This member is added by an implicit conversion from JsonSerializer[Data] to ArrowAssoc[JsonSerializer[Data]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc