public class JsonSourceGenerationOptionsAttribute extends JsonAttribute
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Text.Json.Serialization.JsonSourceGenerationOptionsAttribute
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.JsonSourceGenerationOptionsAttribute
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
JsonSourceGenerationOptionsAttribute()
Initializes a new instance by invoking the .NET constructor.
|
JsonSourceGenerationOptionsAttribute(JsonSerializerDefaults defaults)
Initializes a new instance by invoking the .NET constructor.
|
JsonSourceGenerationOptionsAttribute(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static JsonSourceGenerationOptionsAttribute |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into JsonSourceGenerationOptionsAttribute, a cast assert is made to check if types are compatible. |
boolean |
getAllowTrailingCommas()
Gets the value of the .NET property AllowTrailingCommas.
|
NetType[] |
getConverters()
Gets the value of the .NET property Converters.
|
int |
getDefaultBufferSize()
Gets the value of the .NET property DefaultBufferSize.
|
JsonIgnoreCondition |
getDefaultIgnoreCondition()
Gets the value of the .NET property DefaultIgnoreCondition.
|
JsonKnownNamingPolicy |
getDictionaryKeyPolicy()
Gets the value of the .NET property DictionaryKeyPolicy.
|
JsonSourceGenerationMode |
getGenerationMode()
Gets the value of the .NET property GenerationMode.
|
boolean |
getIgnoreReadOnlyFields()
Gets the value of the .NET property IgnoreReadOnlyFields.
|
boolean |
getIgnoreReadOnlyProperties()
Gets the value of the .NET property IgnoreReadOnlyProperties.
|
boolean |
getIncludeFields()
Gets the value of the .NET property IncludeFields.
|
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. |
int |
getMaxDepth()
Gets the value of the .NET property MaxDepth.
|
JsonNumberHandling |
getNumberHandling()
Gets the value of the .NET property NumberHandling.
|
JsonObjectCreationHandling |
getPreferredObjectCreationHandling()
Gets the value of the .NET property PreferredObjectCreationHandling.
|
boolean |
getPropertyNameCaseInsensitive()
Gets the value of the .NET property PropertyNameCaseInsensitive.
|
JsonKnownNamingPolicy |
getPropertyNamingPolicy()
Gets the value of the .NET property PropertyNamingPolicy.
|
JsonCommentHandling |
getReadCommentHandling()
Gets the value of the .NET property ReadCommentHandling.
|
JsonUnknownTypeHandling |
getUnknownTypeHandling()
Gets the value of the .NET property UnknownTypeHandling.
|
JsonUnmappedMemberHandling |
getUnmappedMemberHandling()
Gets the value of the .NET property UnmappedMemberHandling.
|
boolean |
getUseStringEnumConverter()
Gets the value of the .NET property UseStringEnumConverter.
|
boolean |
getWriteIndented()
Gets the value of the .NET property WriteIndented.
|
void |
setAllowTrailingCommas(boolean AllowTrailingCommas)
Sets the value of the .NET property AllowTrailingCommas.
|
void |
setConverters(NetType[] Converters)
Sets the value of the .NET property Converters.
|
void |
setDefaultBufferSize(int DefaultBufferSize)
Sets the value of the .NET property DefaultBufferSize.
|
void |
setDefaultIgnoreCondition(JsonIgnoreCondition DefaultIgnoreCondition)
Sets the value of the .NET property DefaultIgnoreCondition.
|
void |
setDictionaryKeyPolicy(JsonKnownNamingPolicy DictionaryKeyPolicy)
Sets the value of the .NET property DictionaryKeyPolicy.
|
void |
setGenerationMode(JsonSourceGenerationMode GenerationMode)
Sets the value of the .NET property GenerationMode.
|
void |
setIgnoreReadOnlyFields(boolean IgnoreReadOnlyFields)
Sets the value of the .NET property IgnoreReadOnlyFields.
|
void |
setIgnoreReadOnlyProperties(boolean IgnoreReadOnlyProperties)
Sets the value of the .NET property IgnoreReadOnlyProperties.
|
void |
setIncludeFields(boolean IncludeFields)
Sets the value of the .NET property IncludeFields.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
void |
setMaxDepth(int MaxDepth)
Sets the value of the .NET property MaxDepth.
|
void |
setNumberHandling(JsonNumberHandling NumberHandling)
Sets the value of the .NET property NumberHandling.
|
void |
setPreferredObjectCreationHandling(JsonObjectCreationHandling PreferredObjectCreationHandling)
Sets the value of the .NET property PreferredObjectCreationHandling.
|
void |
setPropertyNameCaseInsensitive(boolean PropertyNameCaseInsensitive)
Sets the value of the .NET property PropertyNameCaseInsensitive.
|
void |
setPropertyNamingPolicy(JsonKnownNamingPolicy PropertyNamingPolicy)
Sets the value of the .NET property PropertyNamingPolicy.
|
void |
setReadCommentHandling(JsonCommentHandling ReadCommentHandling)
Sets the value of the .NET property ReadCommentHandling.
|
void |
setUnknownTypeHandling(JsonUnknownTypeHandling UnknownTypeHandling)
Sets the value of the .NET property UnknownTypeHandling.
|
void |
setUnmappedMemberHandling(JsonUnmappedMemberHandling UnmappedMemberHandling)
Sets the value of the .NET property UnmappedMemberHandling.
|
void |
setUseStringEnumConverter(boolean UseStringEnumConverter)
Sets the value of the .NET property UseStringEnumConverter.
|
void |
setWriteIndented(boolean WriteIndented)
Sets the value of the .NET property WriteIndented.
|
GetCustomAttribute, GetCustomAttribute, GetCustomAttribute, GetCustomAttribute, GetCustomAttribute, GetCustomAttribute, GetCustomAttribute, GetCustomAttribute, GetCustomAttributes, GetCustomAttributes, GetCustomAttributes, GetCustomAttributes, GetCustomAttributes, GetCustomAttributes, GetCustomAttributes, GetCustomAttributes, GetCustomAttributes, GetCustomAttributes, GetCustomAttributes, GetCustomAttributes, GetCustomAttributes, GetCustomAttributes, GetCustomAttributes, GetCustomAttributes, getTypeId, IsDefaultAttribute, IsDefined, IsDefined, IsDefined, IsDefined, IsDefined, IsDefined, IsDefined, IsDefined, Matchpublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public JsonSourceGenerationOptionsAttribute()
throws java.lang.Throwable
java.lang.Throwable - if the .NET constructor failspublic JsonSourceGenerationOptionsAttribute(JsonSerializerDefaults defaults) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
defaults - the argument of type JsonSerializerDefaultsjava.lang.Throwable - if the .NET constructor failsArgumentException - 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 itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic JsonSourceGenerationOptionsAttribute(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 JsonSourceGenerationOptionsAttribute cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into JsonSourceGenerationOptionsAttribute, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedJsonSourceGenerationOptionsAttribute instancejava.lang.Throwable - in case of error during cast operationpublic boolean getAllowTrailingCommas()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic final NetType[] getConverters() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic int getDefaultBufferSize()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic JsonIgnoreCondition getDefaultIgnoreCondition() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic JsonKnownNamingPolicy getDictionaryKeyPolicy() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic JsonSourceGenerationMode getGenerationMode() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIgnoreReadOnlyFields()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIgnoreReadOnlyProperties()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIncludeFields()
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 JsonAttributepublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class JsonAttributepublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class JsonAttributenull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class JsonAttributepublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class JsonAttributepublic int getMaxDepth()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic JsonNumberHandling getNumberHandling() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic JsonObjectCreationHandling getPreferredObjectCreationHandling() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getPropertyNameCaseInsensitive()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic JsonKnownNamingPolicy getPropertyNamingPolicy() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic JsonCommentHandling getReadCommentHandling() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic JsonUnknownTypeHandling getUnknownTypeHandling() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic JsonUnmappedMemberHandling getUnmappedMemberHandling() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getUseStringEnumConverter()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getWriteIndented()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setAllowTrailingCommas(boolean AllowTrailingCommas)
throws java.lang.Throwable
AllowTrailingCommas - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setConverters(NetType[] Converters) throws java.lang.Throwable
Converters - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setDefaultBufferSize(int DefaultBufferSize)
throws java.lang.Throwable
DefaultBufferSize - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setDefaultIgnoreCondition(JsonIgnoreCondition DefaultIgnoreCondition) throws java.lang.Throwable
DefaultIgnoreCondition - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setDictionaryKeyPolicy(JsonKnownNamingPolicy DictionaryKeyPolicy) throws java.lang.Throwable
DictionaryKeyPolicy - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setGenerationMode(JsonSourceGenerationMode GenerationMode) throws java.lang.Throwable
GenerationMode - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setIgnoreReadOnlyFields(boolean IgnoreReadOnlyFields)
throws java.lang.Throwable
IgnoreReadOnlyFields - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setIgnoreReadOnlyProperties(boolean IgnoreReadOnlyProperties)
throws java.lang.Throwable
IgnoreReadOnlyProperties - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setIncludeFields(boolean IncludeFields)
throws java.lang.Throwable
IncludeFields - 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 JsonAttributeinstance - the new underlying objectpublic void setMaxDepth(int MaxDepth)
throws java.lang.Throwable
MaxDepth - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setNumberHandling(JsonNumberHandling NumberHandling) throws java.lang.Throwable
NumberHandling - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setPreferredObjectCreationHandling(JsonObjectCreationHandling PreferredObjectCreationHandling) throws java.lang.Throwable
PreferredObjectCreationHandling - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setPropertyNameCaseInsensitive(boolean PropertyNameCaseInsensitive)
throws java.lang.Throwable
PropertyNameCaseInsensitive - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setPropertyNamingPolicy(JsonKnownNamingPolicy PropertyNamingPolicy) throws java.lang.Throwable
PropertyNamingPolicy - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setReadCommentHandling(JsonCommentHandling ReadCommentHandling) throws java.lang.Throwable
ReadCommentHandling - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setUnknownTypeHandling(JsonUnknownTypeHandling UnknownTypeHandling) throws java.lang.Throwable
UnknownTypeHandling - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setUnmappedMemberHandling(JsonUnmappedMemberHandling UnmappedMemberHandling) throws java.lang.Throwable
UnmappedMemberHandling - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setUseStringEnumConverter(boolean UseStringEnumConverter)
throws java.lang.Throwable
UseStringEnumConverter - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setWriteIndented(boolean WriteIndented)
throws java.lang.Throwable
WriteIndented - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLR