public class JsonTypeInfo extends NetObject
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Text.Json.Serialization.Metadata.JsonTypeInfo
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=8.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.Serialization.Metadata.JsonTypeInfo
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
JsonTypeInfo() |
JsonTypeInfo(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static JsonTypeInfo |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into JsonTypeInfo, a cast assert is made to check if types are compatible. |
JsonPropertyInfo |
CreateJsonPropertyInfo(NetType propertyType,
java.lang.String name)
Invokes the .NET member CreateJsonPropertyInfo.
|
static <T extends IJCOBridgeReflected> |
CreateJsonTypeInfo(JsonSerializerOptions options)
Invokes the .NET member CreateJsonTypeInfo.
|
static JsonTypeInfo |
CreateJsonTypeInfo(NetType type,
JsonSerializerOptions options)
Invokes the .NET member CreateJsonTypeInfo.
|
JsonConverter |
getConverter()
Gets the value of the .NET property Converter.
|
Func_1 |
getCreateObject()
Gets the value of the .NET property CreateObject.
|
boolean |
getIsReadOnly()
Gets the value of the .NET property IsReadOnly.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
JsonTypeInfoKind |
getKind()
Gets the value of the .NET property Kind.
|
Nullable_1 |
getNumberHandling()
Gets the value of the .NET property NumberHandling.
|
Action_1 |
getOnDeserialized()
Gets the value of the .NET property OnDeserialized.
|
Action_1 |
getOnDeserializing()
Gets the value of the .NET property OnDeserializing.
|
Action_1 |
getOnSerialized()
Gets the value of the .NET property OnSerialized.
|
Action_1 |
getOnSerializing()
Gets the value of the .NET property OnSerializing.
|
JsonSerializerOptions |
getOptions()
Gets the value of the .NET property Options.
|
IJsonTypeInfoResolver |
getOriginatingResolver()
Gets the value of the .NET property OriginatingResolver.
|
JsonPolymorphismOptions |
getPolymorphismOptions()
Gets the value of the .NET property PolymorphismOptions.
|
Nullable_1 |
getPreferredPropertyObjectCreationHandling()
Gets the value of the .NET property PreferredPropertyObjectCreationHandling.
|
IList_1 |
getProperties()
Gets the value of the .NET property Properties.
|
NetType |
getType()
Gets the value of the .NET property Type.
|
Nullable_1 |
getUnmappedMemberHandling()
Gets the value of the .NET property UnmappedMemberHandling.
|
void |
MakeReadOnly()
Invokes the .NET member MakeReadOnly.
|
void |
setCreateObject(Func_1 CreateObject)
Sets the value of the .NET property CreateObject.
|
void |
setIsReadOnly(boolean IsReadOnly)
Sets the value of the .NET property IsReadOnly.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
void |
setKind(JsonTypeInfoKind Kind)
Sets the value of the .NET property Kind.
|
void |
setNumberHandling(Nullable_1 NumberHandling)
Sets the value of the .NET property NumberHandling.
|
void |
setOnDeserialized(Action_1 OnDeserialized)
Sets the value of the .NET property OnDeserialized.
|
void |
setOnDeserializing(Action_1 OnDeserializing)
Sets the value of the .NET property OnDeserializing.
|
void |
setOnSerialized(Action_1 OnSerialized)
Sets the value of the .NET property OnSerialized.
|
void |
setOnSerializing(Action_1 OnSerializing)
Sets the value of the .NET property OnSerializing.
|
void |
setOriginatingResolver(IJsonTypeInfoResolver OriginatingResolver)
Sets the value of the .NET property OriginatingResolver.
|
void |
setPolymorphismOptions(JsonPolymorphismOptions PolymorphismOptions)
Sets the value of the .NET property PolymorphismOptions.
|
void |
setPreferredPropertyObjectCreationHandling(Nullable_1 PreferredPropertyObjectCreationHandling)
Sets the value of the .NET property PreferredPropertyObjectCreationHandling.
|
void |
setUnmappedMemberHandling(Nullable_1 UnmappedMemberHandling)
Sets the value of the .NET property UnmappedMemberHandling.
|
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public JsonTypeInfo()
throws java.lang.Throwable
java.lang.Throwablepublic JsonTypeInfo(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic static JsonTypeInfo cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into JsonTypeInfo, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedJsonTypeInfo instancejava.lang.Throwable - in case of error during cast operationpublic JsonPropertyInfo CreateJsonPropertyInfo(NetType propertyType, java.lang.String name) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException
propertyType - the argument of type NetTypename - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itpublic static <T extends IJCOBridgeReflected> JsonTypeInfo_1 CreateJsonTypeInfo(JsonSerializerOptions options) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException, OutOfMemoryException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException
T - the type of the generic argument Toptions - the argument of type JsonSerializerOptionsjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itMethodAccessException - if the .NET member raises itMissingMethodException - if the .NET member raises itMemberAccessException - if the .NET member raises itTargetInvocationException - if the .NET member raises itpublic static JsonTypeInfo CreateJsonTypeInfo(NetType type, JsonSerializerOptions options) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException, OutOfMemoryException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException
type - the argument of type NetTypeoptions - the argument of type JsonSerializerOptionsjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itMethodAccessException - if the .NET member raises itMissingMethodException - if the .NET member raises itMemberAccessException - if the .NET member raises itTargetInvocationException - if the .NET member raises itpublic JsonConverter getConverter() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic Func_1 getCreateObject() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsReadOnly()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectpublic JsonTypeInfoKind getKind() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic Nullable_1 getNumberHandling() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic Action_1 getOnDeserialized() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic Action_1 getOnDeserializing() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic Action_1 getOnSerialized() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic Action_1 getOnSerializing() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic JsonSerializerOptions getOptions() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic IJsonTypeInfoResolver getOriginatingResolver() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic JsonPolymorphismOptions getPolymorphismOptions() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic Nullable_1 getPreferredPropertyObjectCreationHandling() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic IList_1 getProperties() throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, PlatformNotSupportedException, FormatException, KeyNotFoundException, ArrayTypeMismatchException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itFormatException - if the .NET member raises itKeyNotFoundException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic NetType getType() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic Nullable_1 getUnmappedMemberHandling() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void MakeReadOnly()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setCreateObject(Func_1 CreateObject) throws java.lang.Throwable
CreateObject - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setIsReadOnly(boolean IsReadOnly)
throws java.lang.Throwable
IsReadOnly - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class NetObjectinstance - the new underlying objectpublic void setKind(JsonTypeInfoKind Kind) throws java.lang.Throwable
Kind - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setNumberHandling(Nullable_1 NumberHandling) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException
NumberHandling - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic void setOnDeserialized(Action_1 OnDeserialized) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException
OnDeserialized - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic void setOnDeserializing(Action_1 OnDeserializing) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException
OnDeserializing - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic void setOnSerialized(Action_1 OnSerialized) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException
OnSerialized - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic void setOnSerializing(Action_1 OnSerializing) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException
OnSerializing - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic void setOriginatingResolver(IJsonTypeInfoResolver OriginatingResolver) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException
OriginatingResolver - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic void setPolymorphismOptions(JsonPolymorphismOptions PolymorphismOptions) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException
PolymorphismOptions - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic void setPreferredPropertyObjectCreationHandling(Nullable_1 PreferredPropertyObjectCreationHandling) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException
PreferredPropertyObjectCreationHandling - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic void setUnmappedMemberHandling(Nullable_1 UnmappedMemberHandling) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException
UnmappedMemberHandling - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises it