Library
core
src
data
loaders
common
classes
Loader

Lawtext core references


Lawtext core references / core/src/data/loaders/common / Loader

Class: abstract Loader

Defined in: core/src/data/loaders/common.ts:19 (opens in a new tab)

Extended by

Constructors

new Loader()

new Loader(): Loader

Returns

Loader

Properties

_cache

protected _cache: object

Defined in: core/src/data/loaders/common.ts:24 (opens in a new tab)

lawListStruct

lawListStruct: null | LawInfosStruct

Methods

cacheLawListStruct()

cacheLawListStruct(): Promise<LawInfosStruct>

Defined in: core/src/data/loaders/common.ts:28 (opens in a new tab)

Returns

Promise<LawInfosStruct>


getLawInfoByLawID()

getLawInfoByLawID(lawID): Promise<null | LawInfo>

Defined in: core/src/data/loaders/common.ts:50 (opens in a new tab)

Parameters

lawID

string

Returns

Promise<null | LawInfo>


getLawInfoByLawIDOrLawNum()

getLawInfoByLawIDOrLawNum(lawIDOrLawNum): Promise<null | LawInfo>

Defined in: core/src/data/loaders/common.ts:63 (opens in a new tab)

Parameters

lawIDOrLawNum

string

Returns

Promise<null | LawInfo>


getLawInfoByLawNum()

getLawInfoByLawNum(lawNum): Promise<null | LawInfo>

Defined in: core/src/data/loaders/common.ts:37 (opens in a new tab)

Parameters

lawNum

string

Returns

Promise<null | LawInfo>


loadBaseLawInfosFromCSV()

abstract loadBaseLawInfosFromCSV(): Promise<BaseLawInfo[]>

Defined in: core/src/data/loaders/common.ts:21 (opens in a new tab)

Returns

Promise<BaseLawInfo[]>


loadLawInfosStruct()

abstract loadLawInfosStruct(): Promise<LawInfosStruct>

Defined in: core/src/data/loaders/common.ts:20 (opens in a new tab)

Returns

Promise<LawInfosStruct>


loadLawXMLStructByInfo()

abstract loadLawXMLStructByInfo(info): Promise<LawXMLStruct>

Defined in: core/src/data/loaders/common.ts:22 (opens in a new tab)

Parameters

info

BaseLawInfo

Returns

Promise<LawXMLStruct>


makeLawListFromBaseLawInfos()

makeLawListFromBaseLawInfos(baseLawInfos, onProgress): Promise<LawList>

Defined in: core/src/data/loaders/common.ts:69 (opens in a new tab)

Parameters

baseLawInfos

BaseLawInfo[]

onProgress

(ratio, message) => void

Returns

Promise<LawList>