本文整理了Java中play.libs.XPath.selectText()
方法的一些代码示例,展示了XPath.selectText()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XPath.selectText()
方法的具体详情如下:
包路径:play.libs.XPath
类名称:XPath
方法名:selectText
[英]Return the text of a node, or the value of an attribute
[中]返回节点的文本或属性的值
代码示例来源:origin: com.typesafe.play/play-java_2.12
/**
* @param path the XPath to execute
* @param node the node, node-set or Context object for evaluation. This value can be null.
* @return the text of a node, or the value of an attribute
*/
public static String selectText(String path, Object node) {
return selectText(path, node, null);
}
代码示例来源:origin: com.typesafe.play/play-java
/**
* @param path the XPath to execute
* @param node the node, node-set or Context object for evaluation. This value can be null.
* @return the text of a node, or the value of an attribute
*/
public static String selectText(String path, Object node) {
return selectText(path, node, null);
}
代码示例来源:origin: com.typesafe.play/play-java_2.11
/**
* @param path the XPath to execute
* @param node the node, node-set or Context object for evaluation. This value can be null.
* @return the text of a node, or the value of an attribute
*/
public static String selectText(String path, Object node) {
return selectText(path, node, null);
}
代码示例来源:origin: com.typesafe.play/play-java_2.10
/**
* Return the text of a node, or the value of an attribute
* @param path the XPath to execute
* @param node the node, node-set or Context object for evaluation. This value can be null.
*/
public static String selectText(String path, Object node) {
return selectText(path, node, null);
}
代码示例来源:origin: com.google.code.maven-play-plugin.org.playframework/play
/**
* Return the text of a node, or the value of an attribute
*
* @param path
* the XPath to execute
* @param node
* the node, node-set or Context object for evaluation. This value can be null.
* @return The text of a node
*/
public static String selectText(String path, Object node) {
return selectText(path, node, null);
}
代码示例来源:origin: play/play-java
/**
* Return the text of a node, or the value of an attribute
* @param path the XPath to execute
* @param node the node, node-set or Context object for evaluation. This value can be null.
*/
public static String selectText(String path, Object node) {
return selectText(path, node, null);
}
代码示例来源:origin: com.google.code.maven-play-plugin.org.playframework/play
server = XPath.selectText("//Type[text()='http://specs.openid.net/auth/2.0/server']/following-sibling::URI/text()", xrds);
claimedId = XPath.selectText("//Type[text()='http://specs.openid.net/auth/2.0/signon']/following-sibling::LocalID/text()",
xrds);
if (claimedId == null) {
claimedId = "http://specs.openid.net/auth/2.0/identifier_select";
} else {
server = XPath.selectText("//Type[text()='http://specs.openid.net/auth/2.0/signon']/following-sibling::URI/text()",
xrds);
内容来源于网络,如有侵权,请联系作者删除!