メインコンテンツまでスキップ

Class: SimpleToolNodeMapping

Extends

Constructors

new SimpleToolNodeMapping()

private new SimpleToolNodeMapping(objs): SimpleToolNodeMapping

Parameters

objs: BaseTool<any>[]= []

Returns

SimpleToolNodeMapping

Overrides

BaseObjectNodeMapping . constructor

Source

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

Properties

_tools

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

Source

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

Methods

_addObj()

_addObj(tool): void

Parameters

tool: BaseTool<any>

Returns

void

Overrides

BaseObjectNodeMapping . _addObj

Source

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


_fromNode()

_fromNode(node): BaseTool<any>

Parameters

node: BaseNode <Metadata>

Returns

BaseTool<any>

Overrides

BaseObjectNodeMapping . _fromNode

Source

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


addObj()

addObj(obj): void

Parameters

obj: BaseTool<any>

Returns

void

Overrides

BaseObjectNodeMapping . addObj

Source

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


fromNode()

fromNode(node): BaseTool<any>

Parameters

node: BaseNode <Metadata>

Returns

BaseTool<any>

Overrides

BaseObjectNodeMapping . fromNode

Source

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


fromObjects()

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

Type parameters

OT

Parameters

objs: any

• ...args: any[]

Returns

BaseObjectNodeMapping

Overrides

BaseObjectNodeMapping . fromObjects

Source

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


objNodeMapping()

objNodeMapping(): Record<any, any>

Returns

Record<any, any>

Overrides

BaseObjectNodeMapping . objNodeMapping

Source

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


persist()

persist(persistDir, objNodeMappingFilename): void

Parameters

persistDir: string

objNodeMappingFilename: string

Returns

void

Overrides

BaseObjectNodeMapping . persist

Source

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


toNode()

toNode(tool): TextNode <Metadata>

Parameters

tool: BaseTool<any>

Returns

TextNode <Metadata>

Overrides

BaseObjectNodeMapping . toNode

Source

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


toNodes()

toNodes(objs): TextNode <Metadata>[]

Parameters

objs: BaseTool<any>[]

Returns

TextNode <Metadata>[]

Overrides

BaseObjectNodeMapping . toNodes

Source

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


validateObject()

validateObject(obj): void

Parameters

obj: any

Returns

void

Inherited from

BaseObjectNodeMapping . validateObject

Source

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


fromObjects()

static fromObjects(objs, ...args): BaseObjectNodeMapping

Parameters

objs: any

• ...args: any[]

Returns

BaseObjectNodeMapping

Source

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