本文整理了Java中nu.xom.Element.setLocalName()
方法的一些代码示例,展示了Element.setLocalName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Element.setLocalName()
方法的具体详情如下:
包路径:nu.xom.Element
类名称: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;
}
内容来源于网络,如有侵权,请联系作者删除!