org.jdom2.Text.getValue()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(1.0k)|赞(0)|评价(0)|浏览(94)

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

Text.getValue介绍

[英]Returns the XPath 1.0 string value of this element, which is the text itself.
[中]返回此元素的XPath 1.0字符串值,即文本本身。

代码示例

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

if ("".equals(text.getValue())) {
  it.remove();
  changed = true;
} else {
  tfirst.append(text.getValue());

代码示例来源:origin: org.apache.jspwiki/jspwiki-main

sb.append( ((Text)el).getValue() );

代码示例来源:origin: org.apache.marmotta/ldclient-provider-xml

str_value = ((Element) value).getValue();
} else if(value instanceof Text) {
  str_value = ((Text) value).getValue();
} else if(value instanceof Attribute) {
  str_value = ((Attribute) value).getValue();

代码示例来源:origin: apache/marmotta

str_value = ((Element) value).getValue();
} else if(value instanceof Text) {
  str_value = ((Text) value).getValue();
} else if(value instanceof Attribute) {
  str_value = ((Attribute) value).getValue();

相关文章

微信公众号

最新文章

更多