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