Skip to content

TreeInspector

Inspector that maintains an attribute bag.

Initializers

import com.aliyun.ros.cdk.core.TreeInspector;
new TreeInspector();
Name Type Description

Methods

Name Description
addAttribute Adds attribute to bag.

addAttribute

public void addAttribute(java.lang.String key, java.lang.Object value)

Adds attribute to bag.

Keys should be added by convention to prevent conflicts

keyRequired

  • Type: java.lang.String

key for metadata.


valueRequired

  • Type: java.lang.Object

value of metadata.


Properties

Name Type Description
attributes java.util.Map Represents the bag of attributes as key-value pairs.

attributesRequired

public java.util.Map<java.lang.String, java.lang.Object> getAttributes();
  • Type: java.util.Map

Represents the bag of attributes as key-value pairs.