跳到主要内容

Class: SimpleToolNodeMapping

Hierarchy

Constructors

constructor

new SimpleToolNodeMapping(objs?): SimpleToolNodeMapping

Parameters

NameTypeDefault value
objsBaseTool<any>[][]

Returns

SimpleToolNodeMapping

Overrides

BaseObjectNodeMapping.constructor

Defined in

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

Properties

_tools

Private _tools: Record<string, BaseTool<any>>

Defined in

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

Methods

_addObj

_addObj(tool): void

Parameters

NameType
toolBaseTool<any>

Returns

void

Overrides

BaseObjectNodeMapping._addObj

Defined in

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


_fromNode

_fromNode(node): BaseTool<any>

Parameters

NameType
nodeBaseNode<Metadata>

Returns

BaseTool<any>

Overrides

BaseObjectNodeMapping._fromNode

Defined in

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


addObj

addObj(obj): void

Parameters

NameType
objBaseTool<any>

Returns

void

Overrides

BaseObjectNodeMapping.addObj

Defined in

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


fromNode

fromNode(node): BaseTool<any>

Parameters

NameType
nodeBaseNode<Metadata>

Returns

BaseTool<any>

Overrides

BaseObjectNodeMapping.fromNode

Defined in

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


fromObjects

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

Type parameters

Name
OT

Parameters

NameType
objsany
...argsany[]

Returns

BaseObjectNodeMapping

Overrides

BaseObjectNodeMapping.fromObjects

Defined in

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


objNodeMapping

objNodeMapping(): Record<any, any>

Returns

Record<any, any>

Overrides

BaseObjectNodeMapping.objNodeMapping

Defined in

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


persist

persist(persistDir, objNodeMappingFilename): void

Parameters

NameType
persistDirstring
objNodeMappingFilenamestring

Returns

void

Overrides

BaseObjectNodeMapping.persist

Defined in

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


toNode

toNode(tool): TextNode<Metadata>

Parameters

NameType
toolBaseTool<any>

Returns

TextNode<Metadata>

Overrides

BaseObjectNodeMapping.toNode

Defined in

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


toNodes

toNodes(objs): TextNode<Metadata>[]

Parameters

NameType
objsBaseTool<any>[]

Returns

TextNode<Metadata>[]

Overrides

BaseObjectNodeMapping.toNodes

Defined in

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


validateObject

validateObject(obj): void

Parameters

NameType
objany

Returns

void

Inherited from

BaseObjectNodeMapping.validateObject

Defined in

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


fromObjects

fromObjects(objs, ...args): BaseObjectNodeMapping

Parameters

NameType
objsany
...argsany[]

Returns

BaseObjectNodeMapping

Defined in

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