Package

com.rayrobdod.json

builder

Permalink

package builder

Contains the various built-in builders.

Pretty much every parser will require a Builder when parsing data. The builder will basically determine how the parser will treat complex data types.

Source
package.scala
Linear Supertypes
Content Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. builder
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. final class BeanBuilder[Value, A] extends Builder[String, Value, A]

    Permalink

    A builder that builds a JavaBean

    A builder that builds a JavaBean

    As with anything that works with javabeans, this requires the class to have a zero-argument constructor and will interact with methods of the form setX.

    Value

    the parser's primitive values

    A

    the type of object to build

    Version

    next

  2. final case class BuildableBuilder[Key, Value, Subject](init: Subject, defaultKeyDef: KeyDef[Key, Value, Subject] = ..., keyDefs: Map[Key, KeyDef[Key, Value, Subject]] = ...) extends Builder[Key, Value, Subject] with Product with Serializable

    Permalink

    A Builder which can be built piecewise.

    A Builder which can be built piecewise.

    TODO: mention how

    Key

    the key types

    Value

    the primitive value types

    Subject

    the type of object to build

    init

    The starting point of the folding process

    defaultKeyDef

    the KeyDef executed when no other keys exist

    keyDefs

    the mapping of known keys to actual applies

    Since

    next

    See also

    Inspired by https://github.com/scopt/scopt/

  3. trait Builder[Key, Value, Subject] extends AnyRef

    Permalink

    An object used by a Builder to generate an object using a sequence of 'fold'-style method calls

    An object used by a Builder to generate an object using a sequence of 'fold'-style method calls

    Key

    the type of keys used by the Parser that this Builder will be used by

    Value

    the type of primitive value types used by the Parser that this Builder will be used by

    Subject

    the type of object built by this Builder

    Version

    next

    See also

    com.rayrobdod.json.parser.Parser

  4. final class CaseClassBuilder[Value, A <: Product] extends Builder[String, Value, A]

    Permalink

    A builder that builds a Case Class

    A builder that builds a Case Class

    Value

    the primitive values produced by the parser

    A

    the type of object to build

    Version

    next

  5. final class CborBuilder extends Builder[CborValue, CborValue, Seq[Byte]]

    Permalink

    A builder that will create a series of bytes in Cbor Object format

    A builder that will create a series of bytes in Cbor Object format

    Since

    next

  6. final class MapBuilder[K, V, Inner] extends Builder[K, V, Map[K, Either[Inner, V]]]

    Permalink

    A builder that creates maps

    A builder that creates maps

    Version

    next

  7. final class PrettyJsonBuilder extends Builder[StringOrInt, JsonValue, String]

    Permalink

    A builder that serializes its input into json format

    A builder that serializes its input into json format

    Since

    next

    See also

    [http://argonaut.io/scaladocs/#argonaut.PrettyParams] the only decent idea in argonaut

  8. final class PrimitiveSeqBuilder[Key, Value] extends Builder[Key, Value, Seq[Value]]

    Permalink

    Since

    next

  9. final class SeqBuilder[Key, Value, Inner] extends Builder[Key, Value, Seq[Inner]]

    Permalink

    A Builder that will build a Vector of values, where each inner value was c

    A Builder that will build a Vector of values, where each inner value was c

    Key

    the type of keys used by the Parser that this Builder will be used by

    Value

    the type of primitive value types used by the Parser that this Builder will be used by

    Version

    next

  10. final class ThrowBuilder[K, V] extends Builder[K, V, Any]

    Permalink

    A Builder that will always return a failure on call to apply

    A Builder that will always return a failure on call to apply

    Since

    next

  11. final class CborArrayBuilder extends Builder[Any, CborValue, Seq[Byte]]

    Permalink

    A builder that will create a series of bytes in Cbor Array format

    A builder that will create a series of bytes in Cbor Array format

    Annotations
    @deprecated
    Deprecated

    (Since version next) use CborBuilder instead

    Version

    next

  12. final class CborObjectBuilder extends Builder[CborValue, CborValue, Seq[Byte]]

    Permalink

    A builder that will create a series of bytes in Cbor Object format

    A builder that will create a series of bytes in Cbor Object format

    Annotations
    @deprecated
    Deprecated

    (Since version next) use CborBuilder(true) instead

    Version

    next

  13. final class MinifiedJsonArrayBuilder extends Builder[Any, JsonValue, String]

    Permalink

    A builder that will output an array as a json format string

    A builder that will output an array as a json format string

    Annotations
    @deprecated
    Deprecated

    (Since version next) use PrettyJsonBuilder(PrettyJsonBuilder.MinifiedPrettyParams) instead

    Version

    next

  14. final class MinifiedJsonObjectBuilder extends Builder[String, JsonValue, String]

    Permalink

    A builder that will output an object as an json format string

    A builder that will output an object as an json format string

    Annotations
    @deprecated
    Deprecated

    (Since version next) use PrettyJsonBuilder(PrettyJsonBuilder.MinifiedPrettyParams) instead

    Version

    next

Value Members

  1. object BuildableBuilder extends Serializable

    Permalink

    Since

    next

  2. object MapBuilder

    Permalink

    Since

    next

  3. object PrettyJsonBuilder

    Permalink

    Since

    next

Inherited from AnyRef

Inherited from Any

Ungrouped