com.thoughtworks.xstream.io.xml.xppdom.XppDom.setValue()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(3.6k)|赞(0)|评价(0)|浏览(126)

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

XppDom.setValue介绍

暂无

代码示例

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

public void setValue(final String text) {
  top().setValue(text);
}

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

finalNode.setValue(finishedValue);
if (0 == depth) {
  node = finalNode;

代码示例来源:origin: x-stream/xstream

@Override
public void setValue(final String text) {
  top().setValue(text);
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xstream

public void setValue(final String text) {
  top().setValue(text);
}

代码示例来源:origin: apache/servicemix-bundles

public void setValue(final String text) {
  top().setValue(text);
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xstream-java8

public void setValue(final String text) {
  top().setValue(text);
}

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

public void setValue(final String text) {
  top().setValue(text);
}

代码示例来源:origin: org.sonatype.nexus.xstream/xstream

public void setValue(final String text) {
  top().setValue(text);
}

代码示例来源:origin: senbox-org/snap-desktop

private void setParamsToConfiguration(final XppDom config) {
  if (paramMap == null) return;
  final Set<String> keys = paramMap.keySet();                     // The set of keys in the map.
  for (String key : keys) {
    final Object value = paramMap.get(key);             // Get the value for that key.
    if (value == null) continue;
    XppDom xml = config.getChild(key);
    if (xml == null) {
      xml = new XppDom(key);
      config.addChild(xml);
    }
    xml.setValue(value.toString());
  }
}

代码示例来源:origin: x-stream/xstream

finalNode.setValue(finishedValue);
if (0 == depth) {
  node = finalNode;

代码示例来源:origin: org.sonatype.nexus.xstream/xstream

finalNode.setValue(finishedValue);
if (0 == depth) {
  node = finalNode;

代码示例来源:origin: apache/servicemix-bundles

finalNode.setValue(finishedValue);
if (0 == depth) {
  node = finalNode;

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xstream

finalNode.setValue(finishedValue);
if (0 == depth) {
  node = finalNode;

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

finalNode.setValue(finishedValue);
if (0 == depth) {
  node = finalNode;

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xstream-java8

finalNode.setValue(finishedValue);
if (0 == depth) {
  node = finalNode;

代码示例来源:origin: senbox-org/snap-desktop

private void AssignAllParameters() throws GraphException {
  final XppDom presentationXML = new XppDom("Presentation");
  // save graph description
  final XppDom descXML = new XppDom("Description");
  descXML.setValue(graphDescription);
  presentationXML.addChild(descXML);
  graphNodeList.assignParameters(presentationXML);
  graph.setAppData("Presentation", presentationXML);
}

代码示例来源:origin: bcdev/beam

font.setValue("big");
xpp3Dom.addChild(font);
graph1.setAppData("foo", xpp3Dom);
colour.setValue("red");
xpp3Dom2.addChild(colour);
graph1.setAppData("baz", xpp3Dom2);

代码示例来源:origin: bcdev/beam

public void testApplicationData() throws Exception {
  Graph graph = new Graph("chain1");
  assertNull(graph.getApplicationData("foo"));
  XppDom xpp3Dom1 = new XppDom("");
  XppDom font = new XppDom("font");
  font.setValue("big");
  xpp3Dom1.addChild(font);
  graph.setAppData("foo", xpp3Dom1);
  assertSame(xpp3Dom1, graph.getApplicationData("foo"));
  XppDom xpp3Dom2 = new XppDom("");
  XppDom font2 = new XppDom("font");
  font2.setValue("small");
  xpp3Dom2.addChild(font2);
  graph.setAppData("foo", xpp3Dom2);
  assertSame(xpp3Dom2, graph.getApplicationData("foo"));
}

相关文章