Library
core
src
data
loaders
common
classes
Loader

Lawtext core referencesDocs


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

Class: abstract Loader

Extended by

Constructors

new Loader()

new Loader(): Loader

Returns

Loader

Properties

_cache

protected _cache: object

lawListStruct

lawListStruct: null | LawInfosStruct

Defined in

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

Methods

cacheLawListStruct()

cacheLawListStruct(): Promise<LawInfosStruct>

Returns

Promise<LawInfosStruct>

Defined in

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


getLawInfoByLawID()

getLawInfoByLawID(lawID): Promise<null | LawInfo>

Parameters

lawID: string

Returns

Promise<null | LawInfo>

Defined in

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


getLawInfoByLawIDOrLawNum()

getLawInfoByLawIDOrLawNum(lawIDOrLawNum): Promise<null | LawInfo>

Parameters

lawIDOrLawNum: string

Returns

Promise<null | LawInfo>

Defined in

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


getLawInfoByLawNum()

getLawInfoByLawNum(lawNum): Promise<null | LawInfo>

Parameters

lawNum: string

Returns

Promise<null | LawInfo>

Defined in

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


loadBaseLawInfosFromCSV()

abstract loadBaseLawInfosFromCSV(): Promise<BaseLawInfo[]>

Returns

Promise<BaseLawInfo[]>

Defined in

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


loadLawInfosStruct()

abstract loadLawInfosStruct(): Promise<LawInfosStruct>

Returns

Promise<LawInfosStruct>

Defined in

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


loadLawXMLStructByInfo()

abstract loadLawXMLStructByInfo(info): Promise<LawXMLStruct>

Parameters

info: BaseLawInfo

Returns

Promise<LawXMLStruct>

Defined in

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


makeLawListFromBaseLawInfos()

makeLawListFromBaseLawInfos(baseLawInfos, onProgress): Promise<LawList>

Parameters

baseLawInfos: BaseLawInfo[]

onProgress = ...

Returns

Promise<LawList>

Defined in

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