Value

com.tersesystems.blindsight.jsonld.Value$
See theValue companion class
object Value

Attributes

Companion:
class
Source:
Node.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Value.type

Members list

Concise view

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
Source:
Mirror.scala

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
Source:
Mirror.scala

Value members

Concrete methods

def apply[T : ValueMapper](v: T): Value[_]

Factory for value mappers.

Factory for value mappers.

implicit val fooMapper: ValueMapper[Foo] = ...
val foo: Foo = ...
val fooValue: Value[_] = Value(foo)

Attributes

T

the type

v

the value

Returns:

the value instance

Source:
Node.scala
def apply(v: String, stringDirection: StringDirection): StringValue

A convenience constructor for a string value with a string direction.

A convenience constructor for a string value with a string direction.

Attributes

Source:
Node.scala
def apply(v: String, stringDirection: StringDirection, lang: String): StringValue

A convenience constructor for a string value with a direction and locale.

A convenience constructor for a string value with a direction and locale.

Attributes

Source:
Node.scala
def apply(value: String, valueType: IRIValue): TypedValue

A convenience constructor for a JSON-LD typed value.

A convenience constructor for a JSON-LD typed value.

Attributes

value

the string value.

valueType

the IRI value used.

Returns:

a typed value.

Source:
Node.scala
def none: Value[None.type]

Convenience function for returning NullLiteral, a value representing null.

Convenience function for returning NullLiteral, a value representing null.

Attributes

Returns:

a value indicating null

Source:
Node.scala