Context node attribute expand trouble shooting guide

60 阅读1分钟

Created by Jerry Wang, last modified on Jan 23, 2015

如果context node attribute expand之后出现问题,例如某些attribute 虽然期望出现,但是展开后missing时,可以在如下方法里设置断点:
clipboard1
然后展开attribute folder,断点即可触发:
clipboard2
该method首先使用class API 读取context node implementation class的metadata信息:
clipboard3
clipboard4

将所有public方法,名称中包含GET,参数包含ATTRIBUTE_PATH和value 提取出来,将方法名中GET_后的attribute name放入结果lt_direct_attributes中。
clipboard5
采用相同的逻辑再取super class的对应属性:
clipboard6