Package

scalax.collection.io

json

Permalink

package json

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

See also the Graph for Scala JSON User Guide.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. json
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. type Descriptor[N] = json.descriptor.Descriptor[N]

    Permalink
  2. type EdgeDescriptor[N, E[X] <: UnDiEdge[X], +C <: EdgeCompanion[E]] = json.descriptor.EdgeDescriptor[N, E, C]

    Permalink
  3. type EdgeDescriptorBase[N, E[X] <: EdgeLikeIn[X], +C <: EdgeCompanionBase[E]] = json.descriptor.EdgeDescriptorBase[N, E, C]

    Permalink
  4. type HyperEdgeDescriptor[N, E[X] <: HyperEdge[X], +C <: HyperEdgeCompanion[E]] = json.descriptor.HyperEdgeDescriptor[N, E, C]

    Permalink
  5. implicit final class JsonGraph[N, E[X] <: EdgeLikeIn[X]] extends AnyVal

    Permalink
  6. implicit final class JsonGraphCoreCompanion[+G[N, E[X] <: EdgeLikeIn[X]] <: Graph[N, E[X]] with GraphLike[N, E[X], G]] extends AnyVal

    Permalink
  7. type LEdgeDescriptor[N, E[X] <: UnDiEdge[X] with LEdge[X], +C <: LEdgeCompanion[E], L <: AnyRef] = json.descriptor.LEdgeDescriptor[N, E, C, L]

    Permalink
  8. type LHyperEdgeDescriptor[N, E[X] <: LHyperEdge[X] with LEdge[X], +C <: LHyperEdgeCompanion[E], L <: AnyRef] = json.descriptor.LHyperEdgeDescriptor[N, E, C, L]

    Permalink
  9. type NodeDescriptor[N] = json.descriptor.NodeDescriptor[N]

    Permalink
  10. type WEdgeDescriptor[N, E[X] <: UnDiEdge[X] with WEdge[X], +C <: WEdgeCompanion[E]] = json.descriptor.WEdgeDescriptor[N, E, C]

    Permalink
  11. type WHyperEdgeDescriptor[N, E[X] <: WHyperEdge[X] with WEdge[X], +C <: WHyperEdgeCompanion[E]] = json.descriptor.WHyperEdgeDescriptor[N, E, C]

    Permalink
  12. type WLEdgeDescriptor[N, E[X] <: UnDiEdge[X] with WLEdge[X], +C <: WLEdgeCompanion[E], L <: AnyRef] = json.descriptor.WLEdgeDescriptor[N, E, C, L]

    Permalink
  13. type WLHyperEdgeDescriptor[N, E[X] <: WLHyperEdge[X] with WLEdge[X], +C <: WLHyperEdgeCompanion[E], L <: AnyRef] = json.descriptor.WLHyperEdgeDescriptor[N, E, C, L]

    Permalink

Value Members

  1. package descriptor

    Permalink

    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.

  2. package error

    Permalink

    Error/warning constants and message producing.

  3. package exp

    Permalink

    Export of graphs to JSON text.

  4. package imp

    Permalink

    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.
  5. def replacePlaceholders(source: String, params: Iterable[String], maxLength: Int = 50, paramPlaceholder: String = "{}"): String

    Permalink

    Replaces all occurrences of paramPlaceholder in source with the elements in params one by one.

    Replaces all occurrences of paramPlaceholder in source with the elements in params one by one. The result is guaranteed not to become longer than maxLength.

  6. package serializer

    Permalink

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

    Lift-JSON Serializers converting 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.

Inherited from AnyRef

Inherited from Any

Ungrouped