Packages

t

bigglue.data.serializers

JsonSerializer

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.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JsonSerializer
  2. BasicSerializer
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. 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.

  2. 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

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. 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
  4. 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()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def deserialize(s: String): Data
    Definition Classes
    BasicSerializer
  9. 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
    JsonSerializerBasicSerializer
  10. 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
  11. 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
  12. 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
  13. 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
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. 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()
  18. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  19. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  24. def serialize(a: Data): String
    Definition Classes
    BasicSerializer
  25. 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.

  26. def serialize_(d: Data): String
    Definition Classes
    JsonSerializerBasicSerializer
  27. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  28. def toString(): String
    Definition Classes
    AnyRef → Any
  29. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. 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

Inherited from BasicSerializer[Data]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from JsonSerializer[Data] to any2stringadd[JsonSerializer[Data]]

Inherited by implicit conversion StringFormat from JsonSerializer[Data] to StringFormat[JsonSerializer[Data]]

Inherited by implicit conversion Ensuring from JsonSerializer[Data] to Ensuring[JsonSerializer[Data]]

Inherited by implicit conversion ArrowAssoc from JsonSerializer[Data] to ArrowAssoc[JsonSerializer[Data]]

Ungrouped