本文整理了Java中com.thoughtworks.xstream.io.xml.xppdom.XppDom.getName()
方法的一些代码示例,展示了XppDom.getName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XppDom.getName()
方法的具体详情如下:
包路径:com.thoughtworks.xstream.io.xml.xppdom.XppDom
类名称:XppDom
方法名:getName
暂无
代码示例来源:origin: com.thoughtworks.xstream/xstream
Object readResolve() {
childMap = new HashMap();
for (final Iterator iter = childList.iterator(); iter.hasNext();) {
final XppDom element = (XppDom)iter.next();
childMap.put(element.getName(), element);
}
return this;
}
代码示例来源:origin: com.thoughtworks.xstream/xstream
public XppDom[] getChildren(String name) {
if (null == childList) {
return new XppDom[0];
} else {
ArrayList children = new ArrayList();
int size = this.childList.size();
for (int i = 0; i < size; i++ ) {
XppDom configuration = (XppDom)this.childList.get(i);
if (name.equals(configuration.getName())) {
children.add(configuration);
}
}
return (XppDom[])children.toArray(new XppDom[0]);
}
}
代码示例来源:origin: com.thoughtworks.xstream/xstream
public void addChild(XppDom xpp3Dom) {
xpp3Dom.setParent(this);
childList.add(xpp3Dom);
childMap.put(xpp3Dom.getName(), xpp3Dom);
}
代码示例来源:origin: com.thoughtworks.xstream/xstream
public String getNodeName() {
return decodeNode(currentElement.getName());
}
代码示例来源:origin: com.thoughtworks.xstream/xstream
public String peekNextChild() {
if (currentElement.getChildCount() == 0) {
return null;
}
return decodeNode(currentElement.getChild(0).getName());
}
代码示例来源:origin: com.thoughtworks.xstream/xstream
private int compareInternal(final XppDom dom1, final XppDom dom2,
final StringBuffer xpath, final int count) {
final int pathlen = xpath.length();
final String name = dom1.getName();
int s = name.compareTo(dom2.getName());
xpath.append(name);
if (count >= 0) {
final XppDom child1 = dom1.getChild(i);
final XppDom child2 = dom2.getChild(i);
final String child = child1.getName();
if (!names.containsKey(child)) {
names.put(child, new int[1]);
代码示例来源:origin: x-stream/xstream
Object readResolve() {
childMap = new HashMap<>();
for (final XppDom element : childList) {
childMap.put(element.getName(), element);
}
return this;
}
代码示例来源:origin: org.sonatype.nexus.xstream/xstream
Object readResolve() {
childMap = new HashMap();
for (final Iterator iter = childList.iterator(); iter.hasNext();) {
final XppDom element = (XppDom)iter.next();
childMap.put(element.getName(), element);
}
return this;
}
代码示例来源:origin: com.haulmont.thirdparty/xstream
Object readResolve() {
childMap = new HashMap();
for (final Iterator iter = childList.iterator(); iter.hasNext();) {
final XppDom element = (XppDom)iter.next();
childMap.put(element.getName(), element);
}
return this;
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xstream
Object readResolve() {
childMap = new HashMap();
for (final Iterator iter = childList.iterator(); iter.hasNext();) {
final XppDom element = (XppDom)iter.next();
childMap.put(element.getName(), element);
}
return this;
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xstream-java8
Object readResolve() {
childMap = new HashMap();
for (final Iterator iter = childList.iterator(); iter.hasNext();) {
final XppDom element = (XppDom)iter.next();
childMap.put(element.getName(), element);
}
return this;
}
代码示例来源:origin: x-stream/xstream
public void addChild(final XppDom xpp3Dom) {
xpp3Dom.setParent(this);
childList.add(xpp3Dom);
childMap.put(xpp3Dom.getName(), xpp3Dom);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xstream
public void addChild(XppDom xpp3Dom) {
xpp3Dom.setParent(this);
childList.add(xpp3Dom);
childMap.put(xpp3Dom.getName(), xpp3Dom);
}
代码示例来源:origin: com.haulmont.thirdparty/xstream
public void addChild(XppDom xpp3Dom) {
xpp3Dom.setParent(this);
childList.add(xpp3Dom);
childMap.put(xpp3Dom.getName(), xpp3Dom);
}
代码示例来源:origin: org.sonatype.nexus.xstream/xstream
public void addChild(XppDom xpp3Dom) {
xpp3Dom.setParent(this);
childList.add(xpp3Dom);
childMap.put(xpp3Dom.getName(), xpp3Dom);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xstream-java8
public void addChild(XppDom xpp3Dom) {
xpp3Dom.setParent(this);
childList.add(xpp3Dom);
childMap.put(xpp3Dom.getName(), xpp3Dom);
}
代码示例来源:origin: x-stream/xstream
@Override
public String getNodeName() {
return decodeNode(currentElement.getName());
}
代码示例来源:origin: x-stream/xstream
@Override
public String peekNextChild() {
if (currentElement.getChildCount() == 0) {
return null;
}
return decodeNode(currentElement.getChild(0).getName());
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xstream-java8
public String peekNextChild() {
if (currentElement.getChildCount() == 0) {
return null;
}
return decodeNode(currentElement.getChild(0).getName());
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xstream
public String peekNextChild() {
if (currentElement.getChildCount() == 0) {
return null;
}
return decodeNode(currentElement.getChild(0).getName());
}
内容来源于网络,如有侵权,请联系作者删除!