本文整理了Java中org.dom4j.Attribute.getUniquePath()
方法的一些代码示例,展示了Attribute.getUniquePath()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Attribute.getUniquePath()
方法的具体详情如下:
包路径:org.dom4j.Attribute
类名称:Attribute
方法名:getUniquePath
暂无
代码示例来源:origin: org.jasig.portal/uPortal-layout-impl
logger.warn(
"Layout element '{}' from user '{}' failed to match noderef '{}'",
org.getUniquePath(),
person.getAttribute(IPerson.USERNAME),
org.getValue());
logger.warn(
"Layout element '{}' from user '{}' failed to match noderef '{}'",
target.getUniquePath(),
person.getAttribute(IPerson.USERNAME),
target.getValue());
logger.warn(
"Layout element '{}' from user '{}' failed to match noderef '{}'",
n.getUniquePath(),
person.getAttribute(IPerson.USERNAME),
n.getValue());
代码示例来源:origin: dom4j/dom4j
public void testBug569927() {
Document doc = DocumentHelper.createDocument();
QName elName = DocumentFactory.getInstance().createQName("a", "ns",
"uri://myuri");
Element a = doc.addElement(elName);
QName attName = DocumentFactory.getInstance().createQName("attribute",
"ns", "uri://myuri");
a = a.addAttribute(attName, "test");
Attribute att = a.attribute(attName);
assertSame(att, doc.selectSingleNode(att.getPath()));
assertSame(att, doc.selectSingleNode(att.getUniquePath()));
}
内容来源于网络,如有侵权,请联系作者删除!