Packages

case class JsObjParser(spec: JsObjSpec, additionalKeys: Boolean = false) extends Parser[JsObj] with Product with Serializable

Represents a Json object parser. The parsed Json object must conform the specification

spec

specification of the Json object

additionalKeys

if true, the parser accepts other keys different than the specified in the spec

Linear Supertypes
Serializable, Serializable, Product, Equals, Parser[JsObj], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JsObjParser
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Parser
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new JsObjParser(spec: JsObjSpec, additionalKeys: Boolean = false)

    spec

    specification of the Json object

    additionalKeys

    if true, the parser accepts other keys different than the specified in the spec

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val additionalKeys: Boolean
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  13. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  14. def parse(inputStream: InputStream): Try[JsObj]

    parses an input stream of bytes into a Json object that must conform the spec of the parser.

    parses an input stream of bytes into a Json object that must conform the spec of the parser. If the the input stream of bytes doesn't represent a well-formed Json object or is a well-formed Json that doesn't conform the spec of the parser, a ParsingException failure wrapped in a Try computation is returned. Any I/O exception processing the input stream is wrapped in a Try computation as well

    inputStream

    the input stream of bytes

    returns

    a try computation with the result

  15. def parse(str: String): Either[InvalidJson, JsObj]

    parses a string into a Json object that must conform the spec of the parser.

    parses a string into a Json object that must conform the spec of the parser. If the string doesn't represent a well-formed Json or is a well-formed Json that doesn't conform the spec of the parser, a ParsingException failure wrapped in a Try computation is returned.

    str

    a Json object serialized in a string

    returns

    a try computation with the result

  16. def parse(bytes: Array[Byte]): Either[InvalidJson, JsObj]

    parses an array of bytes into a Json object that must conform the spec of the parser.

    parses an array of bytes into a Json object that must conform the spec of the parser. If the array of bytes doesn't represent a well-formed Json or is a well-formed Json that doesn't conform the spec of the parser, a ParsingException failure wrapped in a Try computation is returned.

    bytes

    a Json object serialized in an array of bytes

    returns

    a try computation with the result

  17. val spec: JsObjSpec
  18. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  19. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. 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 Parser[JsObj]

Inherited from AnyRef

Inherited from Any

Ungrouped