org.dom4j.Attribute.getUniquePath()方法的使用及代码示例

x33g5p2x  于2022-01-15 转载在 其他  
字(1.3k)|赞(0)|评价(0)|浏览(120)

本文整理了Java中org.dom4j.Attribute.getUniquePath()方法的一些代码示例,展示了Attribute.getUniquePath()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Attribute.getUniquePath()方法的具体详情如下:
包路径:org.dom4j.Attribute
类名称:Attribute
方法名:getUniquePath

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()));
}

相关文章