play.libs.XPath.selectText()方法的使用及代码示例

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

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

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);

相关文章

微信公众号

最新文章

更多