public class JsonElement extends ValueType
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Text.Json.JsonElement
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Text.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
|
static java.lang.String |
assemblyShortName
Assembly name: System.Text.Json
|
static java.lang.String |
className
Qualified class name: System.Text.Json.JsonElement
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
JsonElement() |
JsonElement(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static JsonElement |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into JsonElement, a cast assert is made to check if types are compatible. |
JsonElement |
Clone() |
static boolean |
DeepEquals(JsonElement element1,
JsonElement element2) |
int |
GetArrayLength() |
boolean |
GetBoolean() |
byte |
GetByte() |
byte[] |
GetBytesFromBase64() |
DateTime |
GetDateTime() |
DateTimeOffset |
GetDateTimeOffset() |
Decimal |
GetDecimal() |
double |
GetDouble() |
Guid |
GetGuid() |
short |
GetInt16() |
int |
GetInt32() |
long |
GetInt64() |
java.lang.String |
getJCOAssemblyName()
Returns the reflected Assembly name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
JsonElement |
GetProperty(java.lang.String propertyName) |
int |
GetPropertyCount() |
java.lang.String |
GetRawText() |
SByte |
GetSByte() |
Single |
GetSingle() |
java.lang.String |
GetString() |
UInt16 |
GetUInt16() |
UInt32 |
GetUInt32() |
UInt64 |
GetUInt64() |
JsonValueKind |
getValueKind() |
static JsonElement |
Parse(java.lang.String json,
JsonDocumentOptions options) |
static JsonElement |
ParseValue(JCORefOut<Utf8JsonReader> reader) |
void |
setJCOInstance(JCObject instance) |
boolean |
TryGetByte(JCORefOut<java.util.concurrent.atomic.AtomicReference<java.lang.Byte>> value) |
boolean |
TryGetBytesFromBase64(JCORefOut value) |
boolean |
TryGetDateTime(JCORefOut<DateTime> value) |
boolean |
TryGetDateTimeOffset(JCORefOut<DateTimeOffset> value) |
boolean |
TryGetDecimal(JCORefOut<Decimal> value) |
boolean |
TryGetDouble(JCORefOut<java.util.concurrent.atomic.AtomicReference<java.lang.Double>> value) |
boolean |
TryGetGuid(JCORefOut<Guid> value) |
boolean |
TryGetInt16(JCORefOut<java.util.concurrent.atomic.AtomicReference<java.lang.Short>> value) |
boolean |
TryGetInt32(JCORefOut<java.util.concurrent.atomic.AtomicInteger> value) |
boolean |
TryGetInt64(JCORefOut<java.util.concurrent.atomic.AtomicLong> value) |
boolean |
TryGetProperty(java.lang.String propertyName,
JCORefOut<JsonElement> value) |
boolean |
TryGetSByte(JCORefOut<SByte> value) |
boolean |
TryGetSingle(JCORefOut<Single> value) |
boolean |
TryGetUInt16(JCORefOut<UInt16> value) |
boolean |
TryGetUInt32(JCORefOut<UInt32> value) |
boolean |
TryGetUInt64(JCORefOut<UInt64> value) |
boolean |
ValueEquals(java.lang.String text) |
void |
WriteTo(Utf8JsonWriter writer) |
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public JsonElement()
throws java.lang.Throwable
java.lang.Throwablepublic JsonElement(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic static JsonElement cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into JsonElement, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedJsonElement instancejava.lang.Throwable - in case of error during cast operationpublic JsonElement Clone() throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
public static boolean DeepEquals(JsonElement element1, JsonElement element2) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, ObjectDisposedException, InsufficientExecutionStackException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException, RankException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionInvalidOperationExceptionObjectDisposedExceptionInsufficientExecutionStackExceptionArrayTypeMismatchExceptionIndexOutOfRangeExceptionFormatExceptionRankExceptionpublic int GetArrayLength()
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException,
FormatException
public boolean GetBoolean()
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
ObjectDisposedException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
InvalidOperationException
public byte GetByte()
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
IndexOutOfRangeException,
FormatException
public byte[] GetBytesFromBase64()
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
IndexOutOfRangeException,
FormatException,
UnreachableException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionIndexOutOfRangeExceptionFormatExceptionUnreachableExceptionpublic DateTime GetDateTime() throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException
public DateTimeOffset GetDateTimeOffset() throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException
public Decimal GetDecimal() throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, FormatException, IndexOutOfRangeException
public double GetDouble()
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
IndexOutOfRangeException,
FormatException,
OverflowException
public Guid GetGuid() throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException
public short GetInt16()
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
IndexOutOfRangeException,
FormatException
public int GetInt32()
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
IndexOutOfRangeException,
FormatException
public long GetInt64()
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
IndexOutOfRangeException,
FormatException
public java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class ValueTypeString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class ValueTypeString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class ValueTypeObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class ValueTypeString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class ValueTypeJCType representing the CLR Type of the instantiated Classpublic JsonElement GetProperty(java.lang.String propertyName) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException, KeyNotFoundException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionFormatExceptionKeyNotFoundExceptionpublic int GetPropertyCount()
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException,
FormatException
public java.lang.String GetRawText()
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException
public SByte GetSByte() throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException
public Single GetSingle() throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException, OverflowException
public java.lang.String GetString()
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException,
FormatException
public UInt16 GetUInt16() throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException
public UInt32 GetUInt32() throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException
public UInt64 GetUInt64() throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException
public JsonValueKind getValueKind() throws java.lang.Throwable, NotSupportedException, ArgumentException, ObjectDisposedException, ArgumentOutOfRangeException, PlatformNotSupportedException, ArrayTypeMismatchException
public static JsonElement Parse(java.lang.String json, JsonDocumentOptions options) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, JsonException, IndexOutOfRangeException
public static JsonElement ParseValue(JCORefOut<Utf8JsonReader> reader) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, FormatException, InvalidOperationException, JsonException, IndexOutOfRangeException, ArrayTypeMismatchException, ObjectDisposedException, RankException, NullReferenceException, NotSupportedException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionFormatExceptionInvalidOperationExceptionJsonExceptionIndexOutOfRangeExceptionArrayTypeMismatchExceptionObjectDisposedExceptionRankExceptionNullReferenceExceptionNotSupportedExceptionpublic void setJCOInstance(JCObject instance)
setJCOInstance in class ValueTypepublic boolean TryGetByte(JCORefOut<java.util.concurrent.atomic.AtomicReference<java.lang.Byte>> value) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException
public boolean TryGetBytesFromBase64(JCORefOut value) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException, UnreachableException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionFormatExceptionUnreachableExceptionpublic boolean TryGetDateTime(JCORefOut<DateTime> value) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException, OverflowException
public boolean TryGetDateTimeOffset(JCORefOut<DateTimeOffset> value) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException
public boolean TryGetDecimal(JCORefOut<Decimal> value) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException
public boolean TryGetDouble(JCORefOut<java.util.concurrent.atomic.AtomicReference<java.lang.Double>> value) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException, OverflowException
public boolean TryGetGuid(JCORefOut<Guid> value) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException
public boolean TryGetInt16(JCORefOut<java.util.concurrent.atomic.AtomicReference<java.lang.Short>> value) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException
public boolean TryGetInt32(JCORefOut<java.util.concurrent.atomic.AtomicInteger> value) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException
public boolean TryGetInt64(JCORefOut<java.util.concurrent.atomic.AtomicLong> value) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException
public boolean TryGetProperty(java.lang.String propertyName,
JCORefOut<JsonElement> value)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
IndexOutOfRangeException,
FormatException
public boolean TryGetSByte(JCORefOut<SByte> value) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException
public boolean TryGetSingle(JCORefOut<Single> value) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException, OverflowException
public boolean TryGetUInt16(JCORefOut<UInt16> value) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException
public boolean TryGetUInt32(JCORefOut<UInt32> value) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException
public boolean TryGetUInt64(JCORefOut<UInt64> value) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException
public boolean ValueEquals(java.lang.String text)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
ObjectDisposedException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
InvalidOperationException,
UnreachableException,
FormatException
public void WriteTo(Utf8JsonWriter writer) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, OutOfMemoryException, IndexOutOfRangeException, FormatException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionFormatException