org.apache.xerces.util.XMLAttributesImpl.getValue()方法的使用及代码示例

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

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

XMLAttributesImpl.getValue介绍

[英]Look up an attribute's value by index.

If the attribute value is a list of tokens (IDREFS, ENTITIES, or NMTOKENS), the tokens will be concatenated into a single string with each token separated by a single space.
[中]按索引查找属性的值。
如果属性值是令牌(IDREF、实体或NMTOKEN)的列表,则这些令牌将被连接成一个字符串,每个令牌由一个空格分隔。

代码示例

代码示例来源:origin: com.rackspace.apache/xerces2-xsd11

/**
 * Look up an attribute's value by Namespace name.
 *
 * <p>See {@link #getValue(int) getValue(int)} for a description
 * of the possible values.</p>
 *
 * @param uri The Namespace URI, or null if the
 * @param localName The local name of the attribute.
 * @return The attribute value as a string, or null if the
 *         attribute is not in the list.
 */
public String getValue(String uri, String localName) {
  int index = getIndex(uri, localName);
  return index != -1 ? getValue(index) : null;
} // getValue(String,String):String

代码示例来源:origin: net.sourceforge.nekohtml/nekohtml

while (scanPseudoAttribute(fAttributes)) {
  if (fAttributes.getValue(aindex).length() == 0) {
    fAttributes.removeAttributeAt(aindex); 
  String version = fAttributes.getValue("version");
  String encoding = fAttributes.getValue("encoding");
  String standalone = fAttributes.getValue("standalone");

代码示例来源:origin: net.sourceforge.nekohtml/com.springsource.org.cyberneko.html

while (scanPseudoAttribute(fAttributes)) {
  if (fAttributes.getValue(aindex).length() == 0) {
    fAttributes.removeAttributeAt(aindex); 
  String version = fAttributes.getValue("version");
  String encoding = fAttributes.getValue("encoding");
  String standalone = fAttributes.getValue("standalone");

代码示例来源:origin: com.googlecode.gwt-test-utils/gwt-test-utils

if (fAttributes.getValue(aindex).length() == 0) {
  fAttributes.removeAttributeAt(aindex);
} else {
String version = fAttributes.getValue("version");
String encoding = fAttributes.getValue("encoding");
String standalone = fAttributes.getValue("standalone");

代码示例来源:origin: gwt-test-utils/gwt-test-utils

if (fAttributes.getValue(aindex).length() == 0) {
  fAttributes.removeAttributeAt(aindex);
} else {
String version = fAttributes.getValue("version");
String encoding = fAttributes.getValue("encoding");
String standalone = fAttributes.getValue("standalone");

代码示例来源:origin: net.sourceforge.htmlunit/neko-htmlunit

while (scanPseudoAttribute(fAttributes)) {
  if (fAttributes.getValue(aindex).length() == 0) {
    fAttributes.removeAttributeAt(aindex);
  final String version = fAttributes.getValue("version");
  final String encoding = fAttributes.getValue("encoding");
  final String standalone = fAttributes.getValue("standalone");

相关文章