TreeInspector
Inspector that maintains an attribute bag.
Initializers
import { TreeInspector } from '@alicloud/ros-cdk-core'
new TreeInspector()
Name | Type | Description |
---|---|---|
Methods
Name | Description |
---|---|
addAttribute |
Adds attribute to bag. |
addAttribute
public addAttribute(key: string, value: any): void
Adds attribute to bag.
Keys should be added by convention to prevent conflicts
- Type: string
key for metadata.
- Type: any
value of metadata.
Properties
Name | Type | Description |
---|---|---|
attributes |
{[ key: string ]: any} |
Represents the bag of attributes as key-value pairs. |
attributes
Required
public readonly attributes: {[ key: string ]: any};
- Type: {[ key: string ]: any}
Represents the bag of attributes as key-value pairs.