انتقل إلى المحتوى الرئيسي

Class: BaseObjectNodeMapping

Hierarchy

Constructors

constructor

new BaseObjectNodeMapping(): BaseObjectNodeMapping

Returns

BaseObjectNodeMapping

Methods

_addObj

_addObj(obj): void

Parameters

NameType
objany

Returns

void

Defined in

packages/core/src/objects/base.ts:30


_fromNode

_fromNode(node): any

Parameters

NameType
nodeBaseNode<Metadata>

Returns

any

Defined in

packages/core/src/objects/base.ts:38


addObj

addObj(obj): void

Parameters

NameType
objany

Returns

void

Defined in

packages/core/src/objects/base.ts:24


fromNode

fromNode(node): any

Parameters

NameType
nodeBaseNode<Metadata>

Returns

any

Defined in

packages/core/src/objects/base.ts:41


fromObjects

fromObjects<OT>(objs, ...args): BaseObjectNodeMapping

Type parameters

Name
OT

Parameters

NameType
objsOT[]
...argsany[]

Returns

BaseObjectNodeMapping

Defined in

packages/core/src/objects/base.ts:14


objNodeMapping

objNodeMapping(): Record<any, any>

Returns

Record<any, any>

Defined in

packages/core/src/objects/base.ts:17


persist

persist(persistDir, objNodeMappingFilename): void

Parameters

NameType
persistDirstring
objNodeMappingFilenamestring

Returns

void

Defined in

packages/core/src/objects/base.ts:48


toNode

toNode(obj): TextNode<Metadata>

Parameters

NameType
objany

Returns

TextNode<Metadata>

Defined in

packages/core/src/objects/base.ts:18


toNodes

toNodes(objs): TextNode<Metadata>[]

Parameters

NameType
objsany[]

Returns

TextNode<Metadata>[]

Defined in

packages/core/src/objects/base.ts:33


validateObject

validateObject(obj): void

Parameters

NameType
objany

Returns

void

Defined in

packages/core/src/objects/base.ts:21