Package system.text.json
Class JsonSerializerOptions
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.text.json.JsonSerializerOptions
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class JsonSerializerOptions extends NetObject
The base .NET class managing System.Text.Json.JsonSerializerOptions, System.Text.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Text.Json.JsonSerializerOptions
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringassemblyFullNameFully assembly qualified name: System.Text.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51static java.lang.StringassemblyShortNameAssembly name: System.Text.Jsonstatic java.lang.StringclassNameQualified class name: System.Text.Json.JsonSerializerOptionsstatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description JsonSerializerOptions()JsonSerializerOptions(java.lang.Object instance)Internal constructor.JsonSerializerOptions(JsonSerializerDefaults defaults)JsonSerializerOptions(JsonSerializerOptions options)
-
Method Summary
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Text.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Text.Json- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Text.Json.JsonSerializerOptions- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JsonSerializerOptions
public JsonSerializerOptions(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
JsonSerializerOptions
public JsonSerializerOptions() throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, PlatformNotSupportedException, InvalidOperationException
-
JsonSerializerOptions
public JsonSerializerOptions(JsonSerializerDefaults defaults) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, ArgumentException, InvalidOperationException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionArgumentExceptionInvalidOperationException
-
JsonSerializerOptions
public JsonSerializerOptions(JsonSerializerOptions options) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classNetObject- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classNetObject- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classNetObject- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static JsonSerializerOptions cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoJsonSerializerOptions, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
JsonSerializerOptionsinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
GetConverter
public JsonConverter GetConverter(NetType typeToConvert) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, FormatException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, KeyNotFoundException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionIndexOutOfRangeExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionFormatExceptionMethodAccessExceptionMissingMethodExceptionMemberAccessExceptionTargetInvocationExceptionKeyNotFoundException
-
GetTypeInfo
public JsonTypeInfo GetTypeInfo(NetType type) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, FormatException, KeyNotFoundException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionIndexOutOfRangeExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionFormatExceptionKeyNotFoundException
-
getAllowTrailingCommas
public boolean getAllowTrailingCommas() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setAllowTrailingCommas
public void setAllowTrailingCommas(boolean AllowTrailingCommas) throws java.lang.Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, InvalidOperationException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionCultureNotFoundExceptionInvalidOperationException
-
getIgnoreNullValues
public boolean getIgnoreNullValues() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setIgnoreNullValues
public void setIgnoreNullValues(boolean IgnoreNullValues) throws java.lang.Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, InvalidOperationException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionCultureNotFoundExceptionInvalidOperationException
-
getIgnoreReadOnlyFields
public boolean getIgnoreReadOnlyFields() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setIgnoreReadOnlyFields
public void setIgnoreReadOnlyFields(boolean IgnoreReadOnlyFields) throws java.lang.Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, InvalidOperationException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionCultureNotFoundExceptionInvalidOperationException
-
getIgnoreReadOnlyProperties
public boolean getIgnoreReadOnlyProperties() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setIgnoreReadOnlyProperties
public void setIgnoreReadOnlyProperties(boolean IgnoreReadOnlyProperties) throws java.lang.Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, InvalidOperationException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionCultureNotFoundExceptionInvalidOperationException
-
getIncludeFields
public boolean getIncludeFields() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setIncludeFields
public void setIncludeFields(boolean IncludeFields) throws java.lang.Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, InvalidOperationException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionCultureNotFoundExceptionInvalidOperationException
-
getPropertyNameCaseInsensitive
public boolean getPropertyNameCaseInsensitive() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setPropertyNameCaseInsensitive
public void setPropertyNameCaseInsensitive(boolean PropertyNameCaseInsensitive) throws java.lang.Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, InvalidOperationException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionCultureNotFoundExceptionInvalidOperationException
-
getWriteIndented
public boolean getWriteIndented() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setWriteIndented
public void setWriteIndented(boolean WriteIndented) throws java.lang.Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, InvalidOperationException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionCultureNotFoundExceptionInvalidOperationException
-
getDefaultBufferSize
public int getDefaultBufferSize() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setDefaultBufferSize
public void setDefaultBufferSize(int DefaultBufferSize) throws java.lang.Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, InvalidOperationException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionCultureNotFoundExceptionInvalidOperationException
-
getMaxDepth
public int getMaxDepth() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setMaxDepth
public void setMaxDepth(int MaxDepth) throws java.lang.Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, InvalidOperationException, ArgumentOutOfRangeException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionCultureNotFoundExceptionInvalidOperationExceptionArgumentOutOfRangeException
-
getEncoder
public JavaScriptEncoder getEncoder() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setEncoder
public void setEncoder(JavaScriptEncoder Encoder) throws java.lang.Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, InvalidOperationException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionCultureNotFoundExceptionInvalidOperationException
-
getReadCommentHandling
public JsonCommentHandling getReadCommentHandling() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setReadCommentHandling
public void setReadCommentHandling(JsonCommentHandling ReadCommentHandling) throws java.lang.Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, InvalidOperationException, ArgumentOutOfRangeException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionCultureNotFoundExceptionInvalidOperationExceptionArgumentOutOfRangeException
-
getDictionaryKeyPolicy
public JsonNamingPolicy getDictionaryKeyPolicy() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setDictionaryKeyPolicy
public void setDictionaryKeyPolicy(JsonNamingPolicy DictionaryKeyPolicy) throws java.lang.Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, InvalidOperationException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionCultureNotFoundExceptionInvalidOperationException
-
getPropertyNamingPolicy
public JsonNamingPolicy getPropertyNamingPolicy() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setPropertyNamingPolicy
public void setPropertyNamingPolicy(JsonNamingPolicy PropertyNamingPolicy) throws java.lang.Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, InvalidOperationException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionCultureNotFoundExceptionInvalidOperationException
-
getDefault
public static JsonSerializerOptions getDefault() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeException
-
getDefaultIgnoreCondition
public JsonIgnoreCondition getDefaultIgnoreCondition() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setDefaultIgnoreCondition
public void setDefaultIgnoreCondition(JsonIgnoreCondition DefaultIgnoreCondition) throws java.lang.Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, InvalidOperationException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionCultureNotFoundExceptionInvalidOperationException
-
getNumberHandling
public JsonNumberHandling getNumberHandling() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setNumberHandling
public void setNumberHandling(JsonNumberHandling NumberHandling) throws java.lang.Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, InvalidOperationException, ArgumentOutOfRangeException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionCultureNotFoundExceptionInvalidOperationExceptionArgumentOutOfRangeException
-
getUnknownTypeHandling
public JsonUnknownTypeHandling getUnknownTypeHandling() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setUnknownTypeHandling
public void setUnknownTypeHandling(JsonUnknownTypeHandling UnknownTypeHandling) throws java.lang.Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, InvalidOperationException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionCultureNotFoundExceptionInvalidOperationException
-
getTypeInfoResolver
public IJsonTypeInfoResolver getTypeInfoResolver() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setTypeInfoResolver
public void setTypeInfoResolver(IJsonTypeInfoResolver TypeInfoResolver) throws java.lang.Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, InvalidOperationException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionCultureNotFoundExceptionInvalidOperationException
-
getReferenceHandler
public ReferenceHandler getReferenceHandler() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setReferenceHandler
public void setReferenceHandler(ReferenceHandler ReferenceHandler) throws java.lang.Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, InvalidOperationException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionCultureNotFoundExceptionInvalidOperationException
-
-