Library
core
src
data
query
classes
Lawqueryitem

Lawtext core references


Lawtext core references / core/src/data/query / LawQueryItem

Class: LawQueryItem

Defined in: core/src/data/query.ts:562 (opens in a new tab)

LawQuery で列挙される、法令を表すオブジェクト。

Extends

Implements

  • QueryItem

Constructors

new LawQueryItem()

new LawQueryItem(LawID, LawNum, LawTitle, Enforced, Path, XmlName): LawQueryItem

Defined in: core/src/data/lawinfo.ts:46 (opens in a new tab)

Parameters

LawID

string

LawNum

string

LawTitle

string

Enforced

boolean

Path

string

XmlName

string

Returns

LawQueryItem

Inherited from

LawInfo.constructor

Properties

_cache

protected _cache: object

Defined in: core/src/data/query.ts:588 (opens in a new tab)

document

document: null | XMLDocument

el

el: null | EL

imageData

imageData: null | Uint8Array<ArrayBufferLike>

xml

xml: null | string


[symbolDoNotFinalize]

[symbolDoNotFinalize]: boolean = false

Defined in: core/src/data/query.ts:634 (opens in a new tab)

Implementation of

QueryItem.[symbolDoNotFinalize]


Enforced

Enforced: boolean

Defined in: core/src/data/lawinfo.ts:40 (opens in a new tab)

施行済みかどうか

Inherited from

LawInfo.Enforced


LawID

LawID: string

Defined in: core/src/data/lawinfo.ts:31 (opens in a new tab)

法令ID

Inherited from

LawInfo.LawID


LawNum

LawNum: string

Defined in: core/src/data/lawinfo.ts:34 (opens in a new tab)

法令番号

Inherited from

LawInfo.LawNum


LawTitle

LawTitle: string

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

法令名

Inherited from

LawInfo.LawTitle


loader

loader: null | Loader = null

Defined in: core/src/data/query.ts:564 (opens in a new tab)


Path

Path: string

Defined in: core/src/data/lawinfo.ts:42 (opens in a new tab)

Inherited from

LawInfo.Path


ReferencedLawNums

ReferencedLawNums: Set<string>

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

この法令を参照している法令の法令番号の一覧

Inherited from

LawInfo.ReferencedLawNums


ReferencingLawNums

ReferencingLawNums: Set<string>

Defined in: core/src/data/lawinfo.ts:25 (opens in a new tab)

この法令が参照している法令の法令番号の一覧

Inherited from

LawInfo.ReferencingLawNums


XmlName

XmlName: string

Defined in: core/src/data/lawinfo.ts:44 (opens in a new tab)

Inherited from

LawInfo.XmlName

Methods

[symbolFinalyzeQueryItem]()

[symbolFinalyzeQueryItem](): void

Defined in: core/src/data/query.ts:630 (opens in a new tab)

Returns

void

Implementation of

QueryItem.[symbolFinalyzeQueryItem]


addReferencingLawNums()

addReferencingLawNums(xml): void

Defined in: core/src/data/lawinfo.ts:148 (opens in a new tab)

Parameters

xml

string

Returns

void

Inherited from

LawInfo.addReferencingLawNums


getDocument()

getDocument(): Promise<null | XMLDocument>

Defined in: core/src/data/query.ts:612 (opens in a new tab)

e-Gov 法令APIから法令XMLを取得し、XMLDocument として返します。

Returns

Promise<null | XMLDocument>

法令XMLの XMLDocument


getEl()

getEl(): Promise<null | EL>

Defined in: core/src/data/query.ts:621 (opens in a new tab)

Returns

Promise<null | EL>


getXML()

getXML(): Promise<null | string>

Defined in: core/src/data/query.ts:594 (opens in a new tab)

e-Gov 法令APIから法令XMLを取得します。

Returns

Promise<null | string>

法令XML


toBaseLawInfo()

toBaseLawInfo(): BaseLawInfo

Defined in: core/src/data/lawinfo.ts:75 (opens in a new tab)

Returns

BaseLawInfo

Inherited from

LawInfo.toBaseLawInfo


toString()

toString(): string

Defined in: core/src/data/query.ts:640 (opens in a new tab)

「法令名(法令番号)」の形式の文字列を返します。未施行の場合は文頭に「【未施行】」を付します。

Returns

string

文字列


toTuple()

toTuple(): LawInfoListItem

Defined in: core/src/data/lawinfo.ts:62 (opens in a new tab)

Returns

LawInfoListItem

Inherited from

LawInfo.toTuple


fromBaseLawInfo()

static fromBaseLawInfo(baseLawInfo): LawInfo

Defined in: core/src/data/lawinfo.ts:86 (opens in a new tab)

Parameters

baseLawInfo

BaseLawInfo

Returns

LawInfo

Inherited from

LawInfo.fromBaseLawInfo


fromLawInfo()

static fromLawInfo(lawInfo, loader): LawQueryItem

Defined in: core/src/data/query.ts:565 (opens in a new tab)

Parameters

lawInfo

LawInfo

loader

null | Loader

Returns

LawQueryItem


fromTuple()

static fromTuple(tuple): LawInfo

Defined in: core/src/data/lawinfo.ts:122 (opens in a new tab)

Parameters

tuple

LawInfoListItem

Returns

LawInfo

Inherited from

LawInfo.fromTuple


getHeader()

static getHeader(): readonly ["LawID", "LawNum", "LawTitle", "Enforced", "Path", "XmlName", "ReferencingLawNums", "ReferencedLawNums"]

Defined in: core/src/data/lawinfo.ts:109 (opens in a new tab)

Returns

readonly ["LawID", "LawNum", "LawTitle", "Enforced", "Path", "XmlName", "ReferencingLawNums", "ReferencedLawNums"]

Inherited from

LawInfo.getHeader


initialCache()

protected static initialCache(): object

Defined in: core/src/data/query.ts:581 (opens in a new tab)

Returns

object

document

document: null | XMLDocument

el

el: null | EL

imageData

imageData: null | Uint8Array<ArrayBufferLike>

xml

xml: null | string