【发布时间】:2017-12-08 12:59:30
【问题描述】:
我正在尝试检索节点 0 的属性 - 标记值,我相信这是一个linkedList 对象属性。如您所见,它是 [****,****]
我希望检索对象值并存储到List<String> 对象中
所以我可以将每个值取出以供后期使用,例如
String idA = "542f74fd-bfaf-4377-854a-8e62082edc6c";
string idB = "39aab11f-243f-464c-ae6d-c1f069f17d6c";
我的尝试如下:
List<String> tagList = new ArrayList<String>();
tagList = componentNode.getProperties(node, "tags");
也试过这个:
List<String> tagList = new ArrayList<String>();
tagList = PropertyUtil.getProperty(node, "tags");
但它们都不起作用。
请向我推荐代码示例。 谢谢
【问题讨论】:
标签: java linked-list jcr magnolia xpathnodeiterator