nu.xom.Element.setLocalName()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(1.0k)|赞(0)|评价(0)|浏览(284)

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

Element.setLocalName介绍

暂无

代码示例

代码示例来源:origin: org.xml-cml/cmlxom

  1. /** override setLocalName(localName) to make it immutable.
  2. * if localname is null sets it, else no-op
  3. * @param localName
  4. */
  5. public void setLocalName(String localName) {
  6. String lName = this.getLocalName();
  7. if (lName == null) {
  8. super.setLocalName(localName);
  9. }
  10. }

代码示例来源:origin: net.sf.opendse/opendse-io

  1. protected nu.xom.Element toElement(Routings<Task, Resource, Link> routings,
  2. Architecture<Resource, Link> architecture) {
  3. nu.xom.Element eRoutings = new nu.xom.Element("routings", NS);
  4. for (Task task : routings.getTasks()) {
  5. nu.xom.Element eRouting = toElement(routings.get(task), architecture);
  6. eRouting.setLocalName("routing");
  7. eRouting.addAttribute(new nu.xom.Attribute("source", task.getId()));
  8. eRoutings.appendChild(eRouting);
  9. }
  10. return eRoutings;
  11. }

相关文章