私はJavaにかなり慣れていないので、ご容赦ください。子ノードのプロパティを取得しようとしています。たとえば、画像プロパティに関連付けられているすべてのプロパティを取得しようとしています。
/content
/foo
/jcr:content
/page
/page_child
/image <-----
現在、私のスクリプトは page_child からすべてのプロパティを取得していますが、「画像」のプロパティを取得するにはどうすればよいですか
public void setPageContext(PageContext context) {
ValueMap properties = (ValueMap) context.getAttribute("properties");
closeText = properties.get("closeText", "");
imageURL = properties.get("fileReference", "");
}
public String getCloseText() { return closeText; }
public String getCloseText() { return imageURL; }