asposewordscloud
Version:
Aspose.Words Cloud SDK for Node.js
61 lines (60 loc) • 2.69 kB
TypeScript
import { AttributeInfo } from '../internal/attributeInfo';
import { ModelInterface } from './modelInterface';
export declare const importsMapJsonDataLoadOptions: {};
/**
* Represents options for parsing JSON data.
* An instance of this class can be passed into constructors of Aspose.Words.Reporting.JsonDataSource.
*/
export declare class JsonDataLoadOptions implements ModelInterface {
/**
* Attribute type map
*/
static attributeTypeMap: Array<AttributeInfo>;
/**
* Returns attribute type map
*/
static getAttributeTypeMap(): AttributeInfo[];
/**
* Gets or sets a value indicating whether a generated data source will always contain
* an object for a JSON root element. If a JSON root element contains a single complex
* property, such an object is not created by default.
* The default value is false.
*/
alwaysGenerateRootObject: boolean;
/**
* Gets or sets exact formats for parsing JSON date-time values while loading JSON.
* The default is null.
* 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:
* • When Aspose.Words.Reporting.JsonDataLoadOptions.ExactDateTimeParseFormats 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.
* • When Aspose.Words.Reporting.JsonDataLoadOptions.ExactDateTimeParseFormats contains
* strings, they are used as additional date-time formats utilizing the current
* culture.
* • When Aspose.Words.Reporting.JsonDataLoadOptions.ExactDateTimeParseFormats is
* empty, no additional date-time formats are used.
*/
exactDateTimeParseFormats: Array<string>;
/**
* Gets or sets a mode for parsing JSON simple values (null, boolean, number, integer,
* and string) while loading JSON. Such a mode does not affect parsing of date-time
* values. The default is Aspose.Words.Reporting.JsonSimpleValueParseMode.Loose.
*/
simpleValueParseMode: JsonDataLoadOptions.SimpleValueParseModeEnum;
constructor(init?: Partial<JsonDataLoadOptions>);
collectFilesContent(_resultFilesContent: Array<any>): void;
validate(): void;
}
/**
* Enums for JsonDataLoadOptions
*/
export declare namespace JsonDataLoadOptions {
enum SimpleValueParseModeEnum {
Loose,
Strict
}
}