gpt4 book ai didi

org.codehaus.stax2.validation.XMLValidator.getAttributeType()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-27 06:13:05 27 4
gpt4 key购买 nike

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

XMLValidator.getAttributeType介绍

[英]Method for getting schema-specified type of an attribute, if information is available. If not, validators can return null to explicitly indicate no information was available.
[中]方法获取架构指定的属性类型(如果信息可用)。如果不是,验证程序可以返回null,以明确表示没有可用的信息。

代码示例

代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl

/**
   * @return Schema (DTD, RNG, W3C Schema) based type of the attribute
   *   in specified index
   */
  public final String getAttributeType(int index)
  {
    if (index == mIdAttrIndex && index >= 0) { // second check to ensure -1 is not passed
      return "ID";
    }
    return (mValidator == null) ? WstxInputProperties.UNKNOWN_ATTR_TYPE : 
      mValidator.getAttributeType(index);
  }
}

代码示例来源:origin: org.codehaus.woodstox/woodstox-core-lgpl

/**
   * @return Schema (DTD, RNG, W3C Schema) based type of the attribute
   *   in specified index
   */
  public final String getAttributeType(int index)
  {
    if (index == mIdAttrIndex && index >= 0) { // second check to ensure -1 is not passed
      return "ID";
    }
    return (mValidator == null) ? WstxInputProperties.UNKNOWN_ATTR_TYPE : 
      mValidator.getAttributeType(index);
  }
}

代码示例来源:origin: woodstox/wstx-lgpl

/**
 * @return Schema (DTD, RNG, W3C Schema) based type of the attribute
 *   in specified index
 */
public final String getAttributeType(int index)
{
  if (index == mIdAttrIndex && index >= 0) { // second check to ensure -1 is not passed
    return "ID";
  }
  return (mValidator == null) ? WstxInputProperties.UNKNOWN_ATTR_TYPE : 
    mValidator.getAttributeType(index);
}

代码示例来源:origin: woodstox/wstx-asl

/**
 * @return Schema (DTD, RNG, W3C Schema) based type of the attribute
 *   in specified index
 */
public final String getAttributeType(int index)
{
  if (index == mIdAttrIndex && index >= 0) { // second check to ensure -1 is not passed
    return "ID";
  }
  return (mValidator == null) ? WstxInputProperties.UNKNOWN_ATTR_TYPE : 
    mValidator.getAttributeType(index);
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox

/**
 * @return Schema (DTD, RNG, W3C Schema) based type of the attribute
 *   in specified index
 */
public final String getAttributeType(int index)
{
  if (index == mIdAttrIndex && index >= 0) { // second check to ensure -1 is not passed
    return "ID";
  }
  return (mValidator == null) ? WstxInputProperties.UNKNOWN_ATTR_TYPE : 
    mValidator.getAttributeType(index);
}

代码示例来源:origin: com.fasterxml.woodstox/woodstox-core

/**
   * @return Schema (DTD, RNG, W3C Schema) based type of the attribute
   *   in specified index
   */
  @Override
  public final String getAttributeType(int index)
  {
    if (index == mIdAttrIndex && index >= 0) { // second check to ensure -1 is not passed
      return "ID";
    }
    return (mValidator == null) ? WstxInputProperties.UNKNOWN_ATTR_TYPE : 
      mValidator.getAttributeType(index);
  }
}

代码示例来源:origin: FasterXML/woodstox

/**
   * @return Schema (DTD, RNG, W3C Schema) based type of the attribute
   *   in specified index
   */
  @Override
  public final String getAttributeType(int index)
  {
    if (index == mIdAttrIndex && index >= 0) { // second check to ensure -1 is not passed
      return "ID";
    }
    return (mValidator == null) ? WstxInputProperties.UNKNOWN_ATTR_TYPE : 
      mValidator.getAttributeType(index);
  }
}

代码示例来源:origin: Nextdoor/bender

/**
   * @return Schema (DTD, RNG, W3C Schema) based type of the attribute
   *   in specified index
   */
  @Override
  public final String getAttributeType(int index)
  {
    if (index == mIdAttrIndex && index >= 0) { // second check to ensure -1 is not passed
      return "ID";
    }
    return (mValidator == null) ? WstxInputProperties.UNKNOWN_ATTR_TYPE : 
      mValidator.getAttributeType(index);
  }
}

代码示例来源:origin: Nextdoor/bender

public String getAttributeType(int index)
{
  String type = mFirst.getAttributeType(index);
  /* Hmmh. Which heuristic to use here: obviously no answer (null or
   * empty) is not useful. But what about the default type (CDATA)?
   * We can probably find a more explicit type?
   */
  if (type == null || type.length() == 0 || type.equals(ATTR_TYPE_DEFAULT)) {
    String type2 = mSecond.getAttributeType(index);
    if (type2 != null && type2.length() > 0) {
      return type2;
    }
  }
  return type;
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox

public String getAttributeType(int index)
{
  String type = mFirst.getAttributeType(index);
  /* Hmmh. Which heuristic to use here: obviously no answer (null or
   * empty) is not useful. But what about the default type (CDATA)?
   * We can probably find a more explicit type?
   */
  if (type == null || type.length() == 0 || type.equals(ATTR_TYPE_DEFAULT)) {
    String type2 = mSecond.getAttributeType(index);
    if (type2 != null && type2.length() > 0) {
      return type2;
    }
  }
  return type;
}

代码示例来源:origin: woodstox/wstx-lgpl

public String getAttributeType(int index)
{
  String type = mFirst.getAttributeType(index);
  /* Hmmh. Which heuristic to use here: obviously no answer (null or
   * empty) is not useful. But what about the default type (CDATA)?
   * We can probably find a more explicit type?
   */
  if (type == null || type.length() == 0 || type.equals(ATTR_TYPE_DEFAULT)) {
    String type2 = mSecond.getAttributeType(index);
    if (type2 != null && type2.length() > 0) {
      return type2;
    }
  }
  return type;
}

代码示例来源:origin: woodstox/wstx-asl

public String getAttributeType(int index)
{
  String type = mFirst.getAttributeType(index);
  /* Hmmh. Which heuristic to use here: obviously no answer (null or
   * empty) is not useful. But what about the default type (CDATA)?
   * We can probably find a more explicit type?
   */
  if (type == null || type.length() == 0 || type.equals(ATTR_TYPE_DEFAULT)) {
    String type2 = mSecond.getAttributeType(index);
    if (type2 != null && type2.length() > 0) {
      return type2;
    }
  }
  return type;
}

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