Packages

  • package root
    Definition Classes
    root
  • package scalax
    Definition Classes
    root
  • package collection
    Definition Classes
    scalax
  • package io
    Definition Classes
    collection
  • package json

    Facilitates populating graphs with nodes/edges from JSON text and exporting Graphinstances to JSON text.

    Facilitates populating graphs with nodes/edges from JSON text and exporting Graphinstances to JSON text.

    See also the Graph for Scala JSON User Guide.

    Definition Classes
    io
  • package descriptor

    These classes serve as meta-data controlling JSON import by fromJson and export by toJson.

    These classes serve as meta-data controlling JSON import by fromJson and export by toJson. Among all, the meta-data contain identifiers based on which JSON edges will be matched to edge classes and Graph-specific serializers to be involved.

    Definition Classes
    json
  • package error

    Error/warning constants and message producing.

    Error/warning constants and message producing.

    Definition Classes
    json
  • package exp

    Export of graphs to JSON text.

    Export of graphs to JSON text.

    Definition Classes
    json
  • package imp

    Import of JSON text into graphs including the steps

    Import of JSON text into graphs including the steps

    1. parsing (extracting and checking all data from JSON texts relevant to Graph) and
    2. InputStream creation on the basis of parsing results in preparation of calling Graph.fromStream.
    Definition Classes
    json
  • package serializer

    Lift-JSON Serializers that convert from/to unnamed JSON values and edge data containers (parameters) covering all predefined edge types.

    Lift-JSON Serializers that convert from/to unnamed JSON values and edge data containers (parameters) covering all predefined edge types. They allow to save space as default Lift-JSON serializers would require the JSON text to contain JFields for every node and edge.

    Definition Classes
    json
  • JsonGraph
  • JsonGraphCoreCompanion
c

scalax.collection.io.json

JsonGraphCoreCompanion

implicit final class JsonGraphCoreCompanion[+G[N, E <: Edge[N]] <: AnyGraph[N, E] with GraphLike[N, E, G]] extends AnyVal

Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JsonGraphCoreCompanion
  2. AnyVal
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new JsonGraphCoreCompanion(companion: GenericGraphCoreFactory[G])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##: Int
    Definition Classes
    Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from JsonGraphCoreCompanion[G] toany2stringadd[JsonGraphCoreCompanion[G]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (JsonGraphCoreCompanion[G], B)
    Implicit
    This member is added by an implicit conversion from JsonGraphCoreCompanion[G] toArrowAssoc[JsonGraphCoreCompanion[G]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. val companion: GenericGraphCoreFactory[G]
  8. def ensuring(cond: (JsonGraphCoreCompanion[G]) => Boolean, msg: => Any): JsonGraphCoreCompanion[G]
    Implicit
    This member is added by an implicit conversion from JsonGraphCoreCompanion[G] toEnsuring[JsonGraphCoreCompanion[G]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  9. def ensuring(cond: (JsonGraphCoreCompanion[G]) => Boolean): JsonGraphCoreCompanion[G]
    Implicit
    This member is added by an implicit conversion from JsonGraphCoreCompanion[G] toEnsuring[JsonGraphCoreCompanion[G]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: Boolean, msg: => Any): JsonGraphCoreCompanion[G]
    Implicit
    This member is added by an implicit conversion from JsonGraphCoreCompanion[G] toEnsuring[JsonGraphCoreCompanion[G]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: Boolean): JsonGraphCoreCompanion[G]
    Implicit
    This member is added by an implicit conversion from JsonGraphCoreCompanion[G] toEnsuring[JsonGraphCoreCompanion[G]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def fromJson[N, E <: Edge[N]](jsonLists: Iterable[JsonList], descriptor: Descriptor[N])(implicit config: GraphConfig): G[N, E]

    Creates a new Graph instance and populates it with all nodes/edges found in jsonLists.

    Creates a new Graph instance and populates it with all nodes/edges found in jsonLists.

    jsonLists

    node/edge lists usually attained by parsing a JSON text

    descriptor

    $DESCR

    returns

    new Graph instance populated from jsonText

  13. def fromJson[N, E <: Edge[N]](jsonText: String, descriptor: Descriptor[N])(implicit config: GraphConfig = CoreConfig()): G[N, E]

    Creates a new Graph instance and populates it with all nodes/edges found in the node/edge sections of a JSON text.

    Creates a new Graph instance and populates it with all nodes/edges found in the node/edge sections of a JSON text.

    jsonText

    the JSON text to be parsed for node/edge sections

    descriptor

    $DESCR

    returns

    new Graph instance populated from jsonText

  14. def fromJson[N, E <: Edge[N]](jsonAST: JValue, descriptor: Descriptor[N])(implicit config: GraphConfig): G[N, E]

    Creates a new Graph instance and populates it with all nodes/edges found in the node/edge sections of a JSON text.

    Creates a new Graph instance and populates it with all nodes/edges found in the node/edge sections of a JSON text.

    jsonAST

    the JSON tree to be parsed for node/edge sections

    descriptor

    $DESCR

    returns

    new Graph instance populated from jsonAST

  15. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. def toString(): String
    Definition Classes
    Any

Deprecated Value Members

  1. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from JsonGraphCoreCompanion[G] toStringFormat[JsonGraphCoreCompanion[G]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.12.16) Use formatString.format(value) instead of value.formatted(formatString), or use the f"" string interpolator. In Java 15 and later, formatted resolves to the new method in String which has reversed parameters.

  2. def [B](y: B): (JsonGraphCoreCompanion[G], B)
    Implicit
    This member is added by an implicit conversion from JsonGraphCoreCompanion[G] toArrowAssoc[JsonGraphCoreCompanion[G]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from AnyVal

Inherited from Any

Inherited by implicit conversion any2stringadd fromJsonGraphCoreCompanion[G] to any2stringadd[JsonGraphCoreCompanion[G]]

Inherited by implicit conversion StringFormat fromJsonGraphCoreCompanion[G] to StringFormat[JsonGraphCoreCompanion[G]]

Inherited by implicit conversion Ensuring fromJsonGraphCoreCompanion[G] to Ensuring[JsonGraphCoreCompanion[G]]

Inherited by implicit conversion ArrowAssoc fromJsonGraphCoreCompanion[G] to ArrowAssoc[JsonGraphCoreCompanion[G]]

Ungrouped