Passa al contenuto principale

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:28


_fromNode

_fromNode(node): any

Parameters

NameType
nodeBaseNode<Metadata>

Returns

any

Defined in

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


addObj

addObj(obj): void

Parameters

NameType
objany

Returns

void

Defined in

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


fromNode

fromNode(node): any

Parameters

NameType
nodeBaseNode<Metadata>

Returns

any

Defined in

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


fromObjects

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

Type parameters

Name
OT

Parameters

NameType
objsOT[]
...argsany[]

Returns

BaseObjectNodeMapping

Defined in

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


objNodeMapping

objNodeMapping(): Record<any, any>

Returns

Record<any, any>

Defined in

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


persist

persist(persistDir, objNodeMappingFilename): void

Parameters

NameType
persistDirstring
objNodeMappingFilenamestring

Returns

void

Defined in

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


toNode

toNode(obj): TextNode<Metadata>

Parameters

NameType
objany

Returns

TextNode<Metadata>

Defined in

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


toNodes

toNodes(objs): TextNode<Metadata>[]

Parameters

NameType
objsany[]

Returns

TextNode<Metadata>[]

Defined in

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


validateObject

validateObject(obj): void

Parameters

NameType
objany

Returns

void

Defined in

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