gpt4 book ai didi

org.apache.xmlbeans.impl.values.XmlObjectBase.get_wscanon_rule()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-21 23:59:05 26 4
gpt4 key购买 nike

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

XmlObjectBase.get_wscanon_rule介绍

[英]Returns the whitespace rule that will be applied before building a string to pass to get_text(). Overridden by subclasses that don't need their text for set_text canonicalized; perhaps they already implement scanners that can deal with whitespace, and they know they have no regex pattern restrictions.
[中]返回在生成要传递到get_text()的字符串之前将应用的空白规则。被不需要文本的子类重写,以使set_文本规范化;也许他们已经实现了可以处理空白的扫描器,而且他们知道自己没有正则表达式模式限制。

代码示例

代码示例来源:origin: org.apache.xmlbeans/xmlbeans

/**
 * Called to canonicalize whitespace before calling set_text.
 *
 * Tries to avoid allocation when the string is already canonical, but
 * otherwise this is not particularly efficient. Hopefully the common
 * case is that we pass our wscanon rule to the store via fetch_text
 * and it's canonicalized before we even see it as a string.
 */
private final String apply_wscanon(String v)
{
  return XmlWhitespace.collapse(v, get_wscanon_rule());
}

代码示例来源:origin: org.apache.xmlbeans/xmlbeans

/**
 * Grabs the undelying litral representation, applying the
 * implementation's wscanon rule.
 * Null if not simple content.
 */
public final String get_wscanon_text()
{
  if ((_flags & FLAG_STORE) == 0)
  {
    return apply_wscanon((String)_textsource);
  }
  else return get_store().fetch_text(get_wscanon_rule());
}

代码示例来源:origin: com.github.pjfanning/xmlbeans

/**
 * Called to canonicalize whitespace before calling set_text.
 *
 * Tries to avoid allocation when the string is already canonical, but
 * otherwise this is not particularly efficient. Hopefully the common
 * case is that we pass our wscanon rule to the store via fetch_text
 * and it's canonicalized before we even see it as a string.
 */
private final String apply_wscanon(String v)
{
  return XmlWhitespace.collapse(v, get_wscanon_rule());
}

代码示例来源:origin: org.apache.xmlbeans/com.springsource.org.apache.xmlbeans

/**
 * Called to canonicalize whitespace before calling set_text.
 *
 * Tries to avoid allocation when the string is already canonical, but
 * otherwise this is not particularly efficient. Hopefully the common
 * case is that we pass our wscanon rule to the store via fetch_text
 * and it's canonicalized before we even see it as a string.
 */
private final String apply_wscanon(String v)
{
  return XmlWhitespace.collapse(v, get_wscanon_rule());
}

代码示例来源:origin: com.github.pjfanning/xmlbeans

/**
 * Grabs the undelying litral representation, applying the
 * implementation's wscanon rule.
 * Null if not simple content.
 */
public final String get_wscanon_text()
{
  if ((_flags & FLAG_STORE) == 0)
  {
    return apply_wscanon((String)_textsource);
  }
  else return get_store().fetch_text(get_wscanon_rule());
}

代码示例来源:origin: org.apache.xmlbeans/com.springsource.org.apache.xmlbeans

/**
 * Grabs the undelying litral representation, applying the
 * implementation's wscanon rule.
 * Null if not simple content.
 */
public final String get_wscanon_text()
{
  if ((_flags & FLAG_STORE) == 0)
  {
    return apply_wscanon((String)_textsource);
  }
  else return get_store().fetch_text(get_wscanon_rule());
}

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com