Class: SimpleToolNodeMapping
Hierarchy
-
↳
SimpleToolNodeMapping
Constructors
constructor
• new SimpleToolNodeMapping(objs?
): SimpleToolNodeMapping
Parameters
Name | Type | Default value |
---|---|---|
objs | BaseTool [] | [] |
Returns
Overrides
BaseObjectNodeMapping.constructor
Defined in
packages/core/src/objects/base.ts:93
Properties
_tools
• Private
_tools: Record
<string
, BaseTool
>
Defined in
packages/core/src/objects/base.ts:91
Methods
_addObj
▸ _addObj(tool
): void
Parameters
Name | Type |
---|---|
tool | BaseTool |
Returns
void
Overrides
Defined in
packages/core/src/objects/base.ts:109
_fromNode
▸ _fromNode(node
): BaseTool
Parameters
Name | Type |
---|---|
node | BaseNode <Metadata > |
Returns
BaseTool
Overrides
BaseObjectNodeMapping._fromNode
Defined in
packages/core/src/objects/base.ts:113
addObj
▸ addObj(obj
): void
Parameters
Name | Type |
---|---|
obj | BaseTool |
Returns
void
Overrides
Defined in
packages/core/src/objects/base.ts:128
fromNode
▸ fromNode(node
): BaseTool
Parameters
Name | Type |
---|---|
node | BaseNode <Metadata > |
Returns
BaseTool
Overrides
BaseObjectNodeMapping.fromNode
Defined in
packages/core/src/objects/base.ts:132
fromObjects
▸ fromObjects<OT
>(objs
, ...args
): BaseObjectNodeMapping
Type parameters
Name |
---|
OT |
Parameters
Name | Type |
---|---|
objs | any |
...args | any [] |
Returns
Overrides
BaseObjectNodeMapping.fromObjects
Defined in
packages/core/src/objects/base.ts:140
objNodeMapping
▸ objNodeMapping(): Record
<any
, any
>
Returns
Record
<any
, any
>
Overrides
BaseObjectNodeMapping.objNodeMapping
Defined in
packages/core/src/objects/base.ts:101
persist
▸ persist(persistDir
, objNodeMappingFilename
): void
Parameters
Name | Type |
---|---|
persistDir | string |
objNodeMappingFilename | string |
Returns
void
Overrides
Defined in
packages/core/src/objects/base.ts:120
toNode
▸ toNode(tool
): TextNode
<Metadata
>
Parameters
Name | Type |
---|---|
tool | BaseTool |
Returns
Overrides
Defined in
packages/core/src/objects/base.ts:105
toNodes
▸ toNodes(objs
): TextNode
<Metadata
>[]
Parameters
Name | Type |
---|---|
objs | BaseTool [] |
Returns
Overrides
Defined in
packages/core/src/objects/base.ts:124
validateObject
▸ validateObject(obj
): void
Parameters
Name | Type |
---|---|
obj | any |
Returns
void
Inherited from
BaseObjectNodeMapping.validateObject
Defined in
packages/core/src/objects/base.ts:18
fromObjects
▸ fromObjects(objs
, ...args
): BaseObjectNodeMapping
Parameters
Name | Type |
---|---|
objs | any |
...args | any [] |