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

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

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

Element.setLocalName介绍

暂无

代码示例

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

/** override setLocalName(localName) to make it immutable.
 * if localname is null sets it, else no-op
 * @param localName
 */
public void setLocalName(String localName) {
  String lName = this.getLocalName();
  if (lName == null) {
    super.setLocalName(localName);
  }
}

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

protected nu.xom.Element toElement(Routings<Task, Resource, Link> routings,
    Architecture<Resource, Link> architecture) {
  nu.xom.Element eRoutings = new nu.xom.Element("routings", NS);
  for (Task task : routings.getTasks()) {
    nu.xom.Element eRouting = toElement(routings.get(task), architecture);
    eRouting.setLocalName("routing");
    eRouting.addAttribute(new nu.xom.Attribute("source", task.getId()));
    eRoutings.appendChild(eRouting);
  }
  return eRoutings;
}

相关文章