public class JsonDataLoadOptions
extends java.lang.Object
To learn more, visit the LINQ Reporting Engine documentation article.
An instance of this class can be passed into constructors ofJsonDataSource.| Constructor and Description |
|---|
JsonDataLoadOptions()
Initializes a new instance of this class with default options.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAlwaysGenerateRootObject()
Gets a flag indicating whether a generated data source will always contain an object for a JSON root element.
|
java.lang.String |
getExactDateTimeParseFormat()
Gets an exact format for parsing JSON date-time values while loading JSON.
|
java.lang.Iterable |
getExactDateTimeParseFormats()
Gets exact formats for parsing JSON date-time values while loading JSON.
|
int |
getSimpleValueParseMode()
Gets a mode for parsing JSON simple values (null, boolean, number, integer, and string) while loading JSON.
|
void |
setAlwaysGenerateRootObject(boolean value)
Sets a flag indicating whether a generated data source will always contain an object for a JSON root element.
|
void |
setExactDateTimeParseFormat(java.lang.String value)
Sets an exact format for parsing JSON date-time values while loading JSON.
|
void |
setExactDateTimeParseFormats(java.lang.Iterable value)
Sets exact formats for parsing JSON date-time values while loading JSON.
|
void |
setSimpleValueParseMode(int value)
Sets a mode for parsing JSON simple values (null, boolean, number, integer, and string) while loading JSON.
|
public JsonDataLoadOptions()
public int getSimpleValueParseMode()
JsonSimpleValueParseMode.LOOSE.JsonSimpleValueParseMode constants.public void setSimpleValueParseMode(int value)
JsonSimpleValueParseMode.LOOSE.value - A mode for parsing JSON simple values (null, boolean, number, integer, and string) while loading JSON. The value must be one of JsonSimpleValueParseMode constants.public java.lang.String getExactDateTimeParseFormat()
Strings encoded using Microsoft® JSON date-time format (for example, "/Date(1224043200000)/") are always recognized as date-time values regardless of a value of this property. The property defines additional formats to be used while parsing date-time values from strings in the following way:
getExactDateTimeParseFormat() / setExactDateTimeParseFormat(java.lang.String) is null, the ISO-8601 format and all date-time formats supported for the current, English USA, and English New Zealand cultures are used additionally in the mentioned order.
getExactDateTimeParseFormat() / setExactDateTimeParseFormat(java.lang.String) is a non-empty string, it is used as a single additional date-time format utilizing the current culture.
getExactDateTimeParseFormat() / setExactDateTimeParseFormat(java.lang.String) is an empty string, no additional date-time formats are used.
public void setExactDateTimeParseFormat(java.lang.String value)
Strings encoded using Microsoft® JSON date-time format (for example, "/Date(1224043200000)/") are always recognized as date-time values regardless of a value of this property. The property defines additional formats to be used while parsing date-time values from strings in the following way:
getExactDateTimeParseFormat() / setExactDateTimeParseFormat(java.lang.String) is null, the ISO-8601 format and all date-time formats supported for the current, English USA, and English New Zealand cultures are used additionally in the mentioned order.
getExactDateTimeParseFormat() / setExactDateTimeParseFormat(java.lang.String) is a non-empty string, it is used as a single additional date-time format utilizing the current culture.
getExactDateTimeParseFormat() / setExactDateTimeParseFormat(java.lang.String) is an empty string, no additional date-time formats are used.
value - An exact format for parsing JSON date-time values while loading JSON.public java.lang.Iterable getExactDateTimeParseFormats()
Strings encoded using Microsoft® JSON date-time format (for example, "/Date(1224043200000)/") are always recognized as date-time values regardless of a value of this property. The property defines additional formats to be used while parsing date-time values from strings in the following way:
getExactDateTimeParseFormats() / setExactDateTimeParseFormats(java.lang.Iterable) is null, the ISO-8601 format and all date-time formats supported for the current, English USA, and English New Zealand cultures are used additionally in the mentioned order.
getExactDateTimeParseFormats() / setExactDateTimeParseFormats(java.lang.Iterable) contains strings, they are used as additional date-time formats utilizing the current culture.
getExactDateTimeParseFormats() / setExactDateTimeParseFormats(java.lang.Iterable) is empty, no additional date-time formats are used.
public void setExactDateTimeParseFormats(java.lang.Iterable value)
Strings encoded using Microsoft® JSON date-time format (for example, "/Date(1224043200000)/") are always recognized as date-time values regardless of a value of this property. The property defines additional formats to be used while parsing date-time values from strings in the following way:
getExactDateTimeParseFormats() / setExactDateTimeParseFormats(java.lang.Iterable) is null, the ISO-8601 format and all date-time formats supported for the current, English USA, and English New Zealand cultures are used additionally in the mentioned order.
getExactDateTimeParseFormats() / setExactDateTimeParseFormats(java.lang.Iterable) contains strings, they are used as additional date-time formats utilizing the current culture.
getExactDateTimeParseFormats() / setExactDateTimeParseFormats(java.lang.Iterable) is empty, no additional date-time formats are used.
value - Exact formats for parsing JSON date-time values while loading JSON.public boolean getAlwaysGenerateRootObject()
public void setAlwaysGenerateRootObject(boolean value)
value - A flag indicating whether a generated data source will always contain an object for a JSON root element.