gpt4 book ai didi

com.thoughtworks.xstream.io.xml.xppdom.Xpp3Dom类的使用及代码示例

转载 作者:知者 更新时间:2024-03-21 05:05:05 28 4
gpt4 key购买 nike

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

Xpp3Dom介绍

[英]Simple Document Object Model for XmlPullParser implementations.
[中]用于XmlPullParser实现的简单文档对象模型。

代码示例

代码示例来源:origin: com.thoughtworks.xstream/xstream

XppDom child = new Xpp3Dom(rawName);

代码示例来源:origin: ovea-deprecated/jetty-session-redis

String rawName = parser.getName();
Xpp3Dom child = new Xpp3Dom(rawName);
  Xpp3Dom parent = (Xpp3Dom) elements.get(depth - 1);
  parent.addChild(child);
  child.setAttribute(name, value);
finalNode.setValue(finishedValue);

代码示例来源:origin: org.jvnet.hudson/xstream

protected Object createNode(final String name) {
  final Xpp3Dom newNode = new Xpp3Dom(escapeXmlName(name));
  final Xpp3Dom top = top();
  if (top != null) {
    top().addChild(newNode);
  }
  return newNode;
}

代码示例来源:origin: org.jvnet.hudson/xstream

public String peekNextChild() {
  if(currentElement.getChildCount()==0)   return null;
  return unescapeXmlName(currentElement.getChild(0).getName());
}

代码示例来源:origin: org.jvnet.hudson/xstream

public void addChild(Xpp3Dom xpp3Dom) {
  xpp3Dom.setParent(this);
  childList.add(xpp3Dom);
  childMap.put(xpp3Dom.getName(), xpp3Dom);
}

代码示例来源:origin: org.jvnet.hudson/xstream

public String getAttribute(int index) {
  return currentElement.getAttribute(currentElement.getAttributeNames()[index]);
}

代码示例来源:origin: org.jvnet.hudson/xstream

public int getAttributeCount() {
  return currentElement.getAttributeNames().length;
}

代码示例来源:origin: org.jvnet.hudson/xstream

public Xpp3Dom[] getChildren( String name ) {
  if ( null == childList ) {
    return new Xpp3Dom[0];
  }
  else {
    ArrayList children = new ArrayList();
    int size = this.childList.size();
    for ( int i = 0; i < size; i++ ) {
      Xpp3Dom configuration = (Xpp3Dom) this.childList.get( i );
      if ( name.equals( configuration.getName() ) ) {
        children.add( configuration );
      }
    }
    return (Xpp3Dom[]) children.toArray( new Xpp3Dom[0] );
  }
}

代码示例来源:origin: org.jvnet.hudson/xstream

public String getAttribute(String attributeName) {
  return currentElement.getAttribute(attributeName);
}

代码示例来源:origin: org.jvnet.hudson/xstream

protected int getChildCount() {
  return currentElement.getChildCount();
}

代码示例来源:origin: org.jvnet.hudson/xstream

protected Object getParent() {
  return currentElement.getParent();
}

代码示例来源:origin: org.jvnet.hudson/xstream

protected Object getChild(int index) {
  return currentElement.getChild(index);
}

代码示例来源:origin: org.jvnet.hudson/xstream

String rawName = parser.getName();
Xpp3Dom child = new Xpp3Dom(rawName);
  Xpp3Dom parent = (Xpp3Dom) elements.get(depth - 1);
  parent.addChild(child);
  child.setAttribute(name, value);
finalNode.setValue(finishedValue);

代码示例来源:origin: ovea-deprecated/jetty-session-redis

protected Object createNode(final String name) {
  final Xpp3Dom newNode = new Xpp3Dom(escapeXmlName(name));
  final Xpp3Dom top = top();
  if (top != null) {
    top().addChild(newNode);
  }
  return newNode;
}

代码示例来源:origin: ovea-deprecated/jetty-session-redis

public void addChild(Xpp3Dom xpp3Dom) {
  xpp3Dom.setParent(this);
  childList.add(xpp3Dom);
  childMap.put(xpp3Dom.getName(), xpp3Dom);
}

代码示例来源:origin: ovea-deprecated/jetty-session-redis

public String getAttribute(int index) {
  return currentElement.getAttribute(currentElement.getAttributeNames()[index]);
}

代码示例来源:origin: ovea-deprecated/jetty-session-redis

public int getAttributeCount() {
  return currentElement.getAttributeNames().length;
}

代码示例来源:origin: ovea-deprecated/jetty-session-redis

public Xpp3Dom[] getChildren( String name ) {
  if ( null == childList ) {
    return new Xpp3Dom[0];
  }
  else {
    ArrayList children = new ArrayList();
    int size = this.childList.size();
    for ( int i = 0; i < size; i++ ) {
      Xpp3Dom configuration = (Xpp3Dom) this.childList.get( i );
      if ( name.equals( configuration.getName() ) ) {
        children.add( configuration );
      }
    }
    return (Xpp3Dom[]) children.toArray( new Xpp3Dom[0] );
  }
}

代码示例来源:origin: ovea-deprecated/jetty-session-redis

public String getAttribute(String attributeName) {
  return currentElement.getAttribute(attributeName);
}

代码示例来源:origin: ovea-deprecated/jetty-session-redis

protected int getChildCount() {
  return currentElement.getChildCount();
}

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com