JsonValue<T>

Overview

Base class for json values.

Location

  • Reference:
    • Elements.dll  .NET, .NET Standard 2.0
    • elements.jar  Cooper
    • Elements.fx  Island, ToffeeV2
    • libElements.fx  Toffee
  • Namespace: RemObjects.Elements.RTL
  • Platforms: .NET, .NET Standard 2.0, Cooper, Island, Toffee, ToffeeV2
  • Ancestry: JsonNode | JsonValue<T>


 

constructor

 

constructor(aValue: not nullable T)

 

JsonValue<T>(T! aValue)

 

init(_ aValue: T)

 

JsonValue<T>(T aValue)

 

Sub New(aValue As T)

Parameters:

  • aValue:

BooleanValue  virtual    (declared in JsonNode)

Returns this value as boolean. Fails if the type mismatches.

 

property BooleanValue: Boolean read write;

 

Boolean BooleanValue { get; set; }

 

var BooleanValue: Boolean { get{} set{} }

 

Boolean BooleanValue { __get; __set; }

 

Property BooleanValue() As Boolean

Count  virtual    (declared in JsonNode)

Returns the nr of elements in this node.

 

property Count: Int32 read;

 

Int32 Count { get; }

 

var Count: Int32 { get{} }

 

Integer Count { __get; }

 

ReadOnly Property Count() As Int32

Create (nullable array of JsonNode): nullable JsonArray    (declared in JsonNode)

Create a new array node.

 

class method Create(aValue: nullable array of JsonNode): nullable JsonArray

 

static JsonArray? Create(JsonNode[]? aValue)

 

// Toffee
static func Create(_ aValue: JsonNode...) -> JsonArray
// ToffeeV2
static func Create(_ aValue: JsonNode...?) -> JsonArray?

 

static JsonArray Create(JsonNode[] aValue)

 

Shared Function Create(aValue As JsonNode()?) As JsonArray?

Parameters:

  • aValue:

Create (nullable Boolean): nullable JsonBooleanValue    (declared in JsonNode)

Create a new boolean node.

 

class method Create(aValue: nullable Boolean): nullable JsonBooleanValue

 

static JsonBooleanValue? Create(Boolean? aValue)

 

// Toffee
static func Create(_ aValue: Boolean!) -> JsonBooleanValue
// ToffeeV2
static func Create(_ aValue: Boolean!) -> JsonBooleanValue?

 

static JsonBooleanValue Create(Boolean aValue)

 

Shared Function Create(aValue As Boolean?) As JsonBooleanValue?

Parameters:

  • aValue:

Create (nullable Dictionary<String, JsonNode>): nullable JsonObject    (declared in JsonNode)

Create a new object node.

 

class method Create(aValue: nullable Dictionary<String, JsonNode>): nullable JsonObject

 

static JsonObject? Create(Dictionary<String, JsonNode>? aValue)

 

// Toffee
static func Create(_ aValue: Dictionary<String, JsonNode>) -> JsonObject
// ToffeeV2
static func Create(_ aValue: Dictionary<String, JsonNode>?) -> JsonObject?

 

static JsonObject Create(Dictionary<String, JsonNode> aValue)

 

Shared Function Create(aValue As Dictionary<String, JsonNode>?) As JsonObject?

Parameters:

  • aValue:

Create (nullable Double): nullable JsonFloatValue    (declared in JsonNode)

Create a new double node.

 

class method Create(aValue: nullable Double): nullable JsonFloatValue

 

static JsonFloatValue? Create(Double? aValue)

 

// Toffee
static func Create(_ aValue: Double!) -> JsonFloatValue
// ToffeeV2
static func Create(_ aValue: Double!) -> JsonFloatValue?

 

static JsonFloatValue Create(Double aValue)

 

Shared Function Create(aValue As Double?) As JsonFloatValue?

Parameters:

  • aValue:

Create (nullable Int64): nullable JsonIntegerValue    (declared in JsonNode)

Create a new int64 node.

 

class method Create(aValue: nullable Int64): nullable JsonIntegerValue

 

static JsonIntegerValue? Create(Int64? aValue)

 

// Toffee
static func Create(_ aValue: Int64!) -> JsonIntegerValue
// ToffeeV2
static func Create(_ aValue: Int64!) -> JsonIntegerValue?

 

static JsonIntegerValue Create(Long aValue)

 

Shared Function Create(aValue As Int64?) As JsonIntegerValue?

Parameters:

  • aValue:

Create (nullable List<JsonNode>): nullable JsonArray    (declared in JsonNode)

Create a new array node.

 

class method Create(aValue: nullable List<JsonNode>): nullable JsonArray

 

static JsonArray? Create(List<JsonNode>? aValue)

 

// Toffee
static func Create(_ aValue: List<JsonNode>) -> JsonArray
// ToffeeV2
static func Create(_ aValue: List<JsonNode>?) -> JsonArray?

 

static JsonArray Create(List<JsonNode> aValue)

 

Shared Function Create(aValue As List<JsonNode>?) As JsonArray?

Parameters:

  • aValue:

Create (nullable String): nullable JsonStringValue    (declared in JsonNode)

Create a new string node,.

 

class method Create(aValue: nullable String): nullable JsonStringValue

 

static JsonStringValue? Create(String? aValue)

 

// Toffee
static func Create(_ aValue: String) -> JsonStringValue
// ToffeeV2
static func Create(_ aValue: String?) -> JsonStringValue?

 

static JsonStringValue Create(String aValue)

 

Shared Function Create(aValue As String?) As JsonStringValue?

Parameters:

  • aValue:

description  override Toffee, ToffeeV2

Returns the string representation of this node.

 

func description() -> NSString

equals Cooper

 

method equals(Obj: Object): Boolean

 

Boolean equals(Object Obj)

 

func equals(_ Obj: Object) -> Boolean

 

Boolean equals(Object Obj)

 

Function equals(Obj As Object) As Boolean

Parameters:

  • Obj:

FloatValue  virtual    (declared in JsonNode)

Returns the value of this node as float.

 

property FloatValue: Double read write;

 

Double FloatValue { get; set; }

 

var FloatValue: Double { get{} set{} }

 

Double FloatValue { __get; __set; }

 

Property FloatValue() As Double

GetHashCode  virtual

Returns a hashcode of the value.

 

method GetHashCode: Int32

 

Int32 GetHashCode()

 

func GetHashCode() -> Int32

 

Integer GetHashCode()

 

Function GetHashCode() As Int32

hash  override ToffeeV2

 

func hash() -> NativeUInt

hash  override Toffee-watchOS

 

method hash: UInt32

 

UInt32 hash()

 

func hash() -> UInt32

 

UInt32 hash()

 

Function hash() As UInt32

hash  override Toffee-iOS, Toffee-iOS Simulator, Toffee-Mac Catalyst, Toffee-macOS, Toffee-tvOS, Toffee-tvOS Simulator, Toffee-watchOS Simulator

Returns a hashcode of the value.

 

func hash() -> UInt64

hashCode Cooper

Returns a hashcode of the value.

 

method hashCode: Integer

 

Integer hashCode()

 

func hashCode() -> Integer

 

Integer hashCode()

 

Function hashCode() As Integer

IntegerValue  virtual    (declared in JsonNode)

Returns the value of this node as integer.

 

property IntegerValue: Int64 read write;

 

Int64 IntegerValue { get; set; }

 

var IntegerValue: Int64 { get{} set{} }

 

Int64 IntegerValue { __get; __set; }

 

Property IntegerValue() As Int64

isEqual  override Toffee, ToffeeV2

Returns true if this object matches the value given.

 

// Toffee
func isEqual(_ obj: NSObject) -> Boolean
// ToffeeV2
func isEqual(_ obj: Object) -> Boolean

Parameters:

  • obj:

Item  virtual    (declared in JsonNode)

Access an element node by index.

 

property Item[Index: Int32]: not nullable JsonNode read write;

 

JsonNode! Item[Int32 Index] { get; set; }

 

subscript Item(_ Index: Int32) -> JsonNode { get{} set{} }

 

JsonNode Item[Integer Index] { __get; __set; }

 

Property Item(Index As Int32) As JsonNode

Item  virtual    (declared in JsonNode)

Access an element node by index.

 

property Item[Key: not nullable String]: nullable JsonNode read write;

 

JsonNode? Item[String! Key] { get; set; }

 

// .NET, .NET Standard 2.0, Island, ToffeeV2
subscript Item(_ Key: String) -> JsonNode? { get{} set{} }
// Toffee
subscript Item(_ Key: String) -> JsonNode { get{} set{} }

 

JsonNode Item[String Key] { __get; __set; }

 

Property Item(Key As String) As JsonNode?

Item  virtual    (declared in JsonNode)

Access an element by name.

 

property Item[aKey: not nullable String]: Boolean write;

 

Boolean Item[String! aKey] { set; }

 

subscript Item(_ aKey: String) -> Boolean { set{} }

 

Boolean Item[String aKey] { __set; }

 

WriteOnly Property Item(aKey As String) As Boolean

Item  virtual    (declared in JsonNode)

Access an element by name.

 

property Item[aKey: not nullable String]: Double write;

 

Double Item[String! aKey] { set; }

 

subscript Item(_ aKey: String) -> Double { set{} }

 

Double Item[String aKey] { __set; }

 

WriteOnly Property Item(aKey As String) As Double

Item  virtual    (declared in JsonNode)

Access an element by name.

 

property Item[aKey: not nullable String]: Int32 write;

 

Int32 Item[String! aKey] { set; }

 

subscript Item(_ aKey: String) -> Int32 { set{} }

 

Integer Item[String aKey] { __set; }

 

WriteOnly Property Item(aKey As String) As Int32

Item  virtual    (declared in JsonNode)

Access an element by name.

 

property Item[aKey: not nullable String]: nullable String write;

 

String? Item[String! aKey] { set; }

 

// .NET, .NET Standard 2.0, Island, ToffeeV2
subscript Item(_ aKey: String) -> String? { set{} }
// Toffee
subscript Item(_ aKey: String) -> String { set{} }

 

String Item[String aKey] { __set; }

 

WriteOnly Property Item(aKey As String) As String?

Keys  virtual    (declared in JsonNode)

Returns all keys in this node.

 

property Keys: not nullable IEnumerable<String> read;

 

IEnumerable<String>! Keys { get; }

 

// .NET, .NET Standard 2.0, Island, ToffeeV2
var Keys: IEnumerable<String> { get{} }
// Toffee
var Keys: INSFastEnumeration<String> { get{} }

 

Iterable<String> Keys { __get; }

 

ReadOnly Property Keys() As IEnumerable<String>

StringValue  virtual    (declared in JsonNode)

Returns the string representation of this node.

 

property StringValue: String read write;

 

String StringValue { get; set; }

 

var StringValue: String { get{} set{} }

 

String StringValue { __get; __set; }

 

Property StringValue() As String

ToJson  virtual abstract    (declared in JsonNode)

 

method ToJson(aFormat: JsonFormat): String

 

String ToJson(JsonFormat aFormat)

 

func ToJson(_ aFormat: JsonFormat) -> String

 

String ToJson(JsonFormat aFormat)

 

Function ToJson(aFormat As JsonFormat) As String

Parameters:

  • aFormat:

toString Cooper

 

method toString: PlatformString

 

PlatformString toString()

 

func toString() -> PlatformString

 

PlatformString toString()

 

Function toString() As PlatformString

ToString  override Toffee, ToffeeV2

 

func ToString() -> String

Value

Get or sets the actual underlying value.

 

property Value: not nullable T read write;

 

T! Value { get; set; }

 

var Value: T { get{} set{} }

 

T Value { __get; __set; }

 

Property Value() As T

 

BooleanValue  virtual    (declared in JsonNode)

Returns this value as boolean. Fails if the type mismatches.

 

property BooleanValue: Boolean read write;

 

Boolean BooleanValue { get; set; }

 

var BooleanValue: Boolean { get{} set{} }

 

Boolean BooleanValue { __get; __set; }

 

Property BooleanValue() As Boolean

Count  virtual    (declared in JsonNode)

Returns the nr of elements in this node.

 

property Count: Int32 read;

 

Int32 Count { get; }

 

var Count: Int32 { get{} }

 

Integer Count { __get; }

 

ReadOnly Property Count() As Int32

FloatValue  virtual    (declared in JsonNode)

Returns the value of this node as float.

 

property FloatValue: Double read write;

 

Double FloatValue { get; set; }

 

var FloatValue: Double { get{} set{} }

 

Double FloatValue { __get; __set; }

 

Property FloatValue() As Double

IntegerValue  virtual    (declared in JsonNode)

Returns the value of this node as integer.

 

property IntegerValue: Int64 read write;

 

Int64 IntegerValue { get; set; }

 

var IntegerValue: Int64 { get{} set{} }

 

Int64 IntegerValue { __get; __set; }

 

Property IntegerValue() As Int64

Item  virtual    (declared in JsonNode)

Access an element node by index.

 

property Item[Index: Int32]: not nullable JsonNode read write;

 

JsonNode! Item[Int32 Index] { get; set; }

 

subscript Item(_ Index: Int32) -> JsonNode { get{} set{} }

 

JsonNode Item[Integer Index] { __get; __set; }

 

Property Item(Index As Int32) As JsonNode

Item  virtual    (declared in JsonNode)

Access an element node by index.

 

property Item[Key: not nullable String]: nullable JsonNode read write;

 

JsonNode? Item[String! Key] { get; set; }

 

// .NET, .NET Standard 2.0, Island, ToffeeV2
subscript Item(_ Key: String) -> JsonNode? { get{} set{} }
// Toffee
subscript Item(_ Key: String) -> JsonNode { get{} set{} }

 

JsonNode Item[String Key] { __get; __set; }

 

Property Item(Key As String) As JsonNode?

Item  virtual    (declared in JsonNode)

Access an element by name.

 

property Item[aKey: not nullable String]: Boolean write;

 

Boolean Item[String! aKey] { set; }

 

subscript Item(_ aKey: String) -> Boolean { set{} }

 

Boolean Item[String aKey] { __set; }

 

WriteOnly Property Item(aKey As String) As Boolean

Item  virtual    (declared in JsonNode)

Access an element by name.

 

property Item[aKey: not nullable String]: Double write;

 

Double Item[String! aKey] { set; }

 

subscript Item(_ aKey: String) -> Double { set{} }

 

Double Item[String aKey] { __set; }

 

WriteOnly Property Item(aKey As String) As Double

Item  virtual    (declared in JsonNode)

Access an element by name.

 

property Item[aKey: not nullable String]: Int32 write;

 

Int32 Item[String! aKey] { set; }

 

subscript Item(_ aKey: String) -> Int32 { set{} }

 

Integer Item[String aKey] { __set; }

 

WriteOnly Property Item(aKey As String) As Int32

Item  virtual    (declared in JsonNode)

Access an element by name.

 

property Item[aKey: not nullable String]: nullable String write;

 

String? Item[String! aKey] { set; }

 

// .NET, .NET Standard 2.0, Island, ToffeeV2
subscript Item(_ aKey: String) -> String? { set{} }
// Toffee
subscript Item(_ aKey: String) -> String { set{} }

 

String Item[String aKey] { __set; }

 

WriteOnly Property Item(aKey As String) As String?

Keys  virtual    (declared in JsonNode)

Returns all keys in this node.

 

property Keys: not nullable IEnumerable<String> read;

 

IEnumerable<String>! Keys { get; }

 

// .NET, .NET Standard 2.0, Island, ToffeeV2
var Keys: IEnumerable<String> { get{} }
// Toffee
var Keys: INSFastEnumeration<String> { get{} }

 

Iterable<String> Keys { __get; }

 

ReadOnly Property Keys() As IEnumerable<String>

StringValue  virtual    (declared in JsonNode)

Returns the string representation of this node.

 

property StringValue: String read write;

 

String StringValue { get; set; }

 

var StringValue: String { get{} set{} }

 

String StringValue { __get; __set; }

 

Property StringValue() As String

Value

Get or sets the actual underlying value.

 

property Value: not nullable T read write;

 

T! Value { get; set; }

 

var Value: T { get{} set{} }

 

T Value { __get; __set; }

 

Property Value() As T

 

Create (nullable array of JsonNode): nullable JsonArray    (declared in JsonNode)

Create a new array node.

 

class method Create(aValue: nullable array of JsonNode): nullable JsonArray

 

static JsonArray? Create(JsonNode[]? aValue)

 

// Toffee
static func Create(_ aValue: JsonNode...) -> JsonArray
// ToffeeV2
static func Create(_ aValue: JsonNode...?) -> JsonArray?

 

static JsonArray Create(JsonNode[] aValue)

 

Shared Function Create(aValue As JsonNode()?) As JsonArray?

Parameters:

  • aValue:

Create (nullable Boolean): nullable JsonBooleanValue    (declared in JsonNode)

Create a new boolean node.

 

class method Create(aValue: nullable Boolean): nullable JsonBooleanValue

 

static JsonBooleanValue? Create(Boolean? aValue)

 

// Toffee
static func Create(_ aValue: Boolean!) -> JsonBooleanValue
// ToffeeV2
static func Create(_ aValue: Boolean!) -> JsonBooleanValue?

 

static JsonBooleanValue Create(Boolean aValue)

 

Shared Function Create(aValue As Boolean?) As JsonBooleanValue?

Parameters:

  • aValue:

Create (nullable Dictionary<String, JsonNode>): nullable JsonObject    (declared in JsonNode)

Create a new object node.

 

class method Create(aValue: nullable Dictionary<String, JsonNode>): nullable JsonObject

 

static JsonObject? Create(Dictionary<String, JsonNode>? aValue)

 

// Toffee
static func Create(_ aValue: Dictionary<String, JsonNode>) -> JsonObject
// ToffeeV2
static func Create(_ aValue: Dictionary<String, JsonNode>?) -> JsonObject?

 

static JsonObject Create(Dictionary<String, JsonNode> aValue)

 

Shared Function Create(aValue As Dictionary<String, JsonNode>?) As JsonObject?

Parameters:

  • aValue:

Create (nullable Double): nullable JsonFloatValue    (declared in JsonNode)

Create a new double node.

 

class method Create(aValue: nullable Double): nullable JsonFloatValue

 

static JsonFloatValue? Create(Double? aValue)

 

// Toffee
static func Create(_ aValue: Double!) -> JsonFloatValue
// ToffeeV2
static func Create(_ aValue: Double!) -> JsonFloatValue?

 

static JsonFloatValue Create(Double aValue)

 

Shared Function Create(aValue As Double?) As JsonFloatValue?

Parameters:

  • aValue:

Create (nullable Int64): nullable JsonIntegerValue    (declared in JsonNode)

Create a new int64 node.

 

class method Create(aValue: nullable Int64): nullable JsonIntegerValue

 

static JsonIntegerValue? Create(Int64? aValue)

 

// Toffee
static func Create(_ aValue: Int64!) -> JsonIntegerValue
// ToffeeV2
static func Create(_ aValue: Int64!) -> JsonIntegerValue?

 

static JsonIntegerValue Create(Long aValue)

 

Shared Function Create(aValue As Int64?) As JsonIntegerValue?

Parameters:

  • aValue:

Create (nullable List<JsonNode>): nullable JsonArray    (declared in JsonNode)

Create a new array node.

 

class method Create(aValue: nullable List<JsonNode>): nullable JsonArray

 

static JsonArray? Create(List<JsonNode>? aValue)

 

// Toffee
static func Create(_ aValue: List<JsonNode>) -> JsonArray
// ToffeeV2
static func Create(_ aValue: List<JsonNode>?) -> JsonArray?

 

static JsonArray Create(List<JsonNode> aValue)

 

Shared Function Create(aValue As List<JsonNode>?) As JsonArray?

Parameters:

  • aValue:

Create (nullable String): nullable JsonStringValue    (declared in JsonNode)

Create a new string node,.

 

class method Create(aValue: nullable String): nullable JsonStringValue

 

static JsonStringValue? Create(String? aValue)

 

// Toffee
static func Create(_ aValue: String) -> JsonStringValue
// ToffeeV2
static func Create(_ aValue: String?) -> JsonStringValue?

 

static JsonStringValue Create(String aValue)

 

Shared Function Create(aValue As String?) As JsonStringValue?

Parameters:

  • aValue:

 

constructor

 

constructor(aValue: not nullable T)

 

JsonValue<T>(T! aValue)

 

init(_ aValue: T)

 

JsonValue<T>(T aValue)

 

Sub New(aValue As T)

Parameters:

  • aValue:

description  override Toffee, ToffeeV2

Returns the string representation of this node.

 

func description() -> NSString

equals Cooper

 

method equals(Obj: Object): Boolean

 

Boolean equals(Object Obj)

 

func equals(_ Obj: Object) -> Boolean

 

Boolean equals(Object Obj)

 

Function equals(Obj As Object) As Boolean

Parameters:

  • Obj:

GetHashCode  virtual

Returns a hashcode of the value.

 

method GetHashCode: Int32

 

Int32 GetHashCode()

 

func GetHashCode() -> Int32

 

Integer GetHashCode()

 

Function GetHashCode() As Int32

hash  override ToffeeV2

 

func hash() -> NativeUInt

hash  override Toffee-watchOS

 

method hash: UInt32

 

UInt32 hash()

 

func hash() -> UInt32

 

UInt32 hash()

 

Function hash() As UInt32

hash  override Toffee-iOS, Toffee-iOS Simulator, Toffee-Mac Catalyst, Toffee-macOS, Toffee-tvOS, Toffee-tvOS Simulator, Toffee-watchOS Simulator

Returns a hashcode of the value.

 

func hash() -> UInt64

hashCode Cooper

Returns a hashcode of the value.

 

method hashCode: Integer

 

Integer hashCode()

 

func hashCode() -> Integer

 

Integer hashCode()

 

Function hashCode() As Integer

isEqual  override Toffee, ToffeeV2

Returns true if this object matches the value given.

 

// Toffee
func isEqual(_ obj: NSObject) -> Boolean
// ToffeeV2
func isEqual(_ obj: Object) -> Boolean

Parameters:

  • obj:

ToJson  virtual abstract    (declared in JsonNode)

 

method ToJson(aFormat: JsonFormat): String

 

String ToJson(JsonFormat aFormat)

 

func ToJson(_ aFormat: JsonFormat) -> String

 

String ToJson(JsonFormat aFormat)

 

Function ToJson(aFormat As JsonFormat) As String

Parameters:

  • aFormat:

toString Cooper

 

method toString: PlatformString

 

PlatformString toString()

 

func toString() -> PlatformString

 

PlatformString toString()

 

Function toString() As PlatformString

ToString  override Toffee, ToffeeV2

 

func ToString() -> String