org.apache.xpath.objects.XObject.toString()方法的使用及代码示例

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

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

XObject.toString介绍

[英]Return the string representation of the object
[中]返回对象的字符串表示形式

代码示例

代码示例来源:origin: org.freemarker/freemarker

return new SimpleScalar(xresult.toString());

代码示例来源:origin: net.sf.docbook/docbook-xsl-xalan

public static String getString(ExpressionContext context,
        String varName) {
 try {
  XObject var = context.getVariableOrParam(new QName(varName));
  if (var != null) {
 return var.toString();
  } else {
 System.out.println("$" + varName + " is not a defined parameter.");
 return "";
  }
 } catch (TransformerException te) {
  // Nevermind the warning
  // System.out.println("Transformer exception getting value of $" + varName);
  return "";
 }
}

代码示例来源:origin: org.apache.maven.plugins/maven-jxr-plugin

if ( StringUtils.isNotEmpty( obj.toString() ) )
  return obj.toString();

代码示例来源:origin: org.apache.jmeter/ApacheJMeter_core

val = xObject.toString();
matchStrings.add(val);

代码示例来源:origin: org.n52.wps/52n-wps-client-lib

ExecuteResponseDocument responseDoc = (ExecuteResponseDocument) response;
XObject data = XPathAPI.eval(responseDoc.getDomNode(), "//wps:LiteralData");
String output = data.toString();
if (output.equals(input))
  System.out.println("Echo received!");

代码示例来源:origin: org.freemarker/com.springsource.freemarker

return new SimpleScalar(xresult.toString());

代码示例来源:origin: org.freemarker/freemarker-gae

return new SimpleScalar(xresult.toString());

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

return new SimpleScalar(xresult.toString());

相关文章