gpt4 book ai didi

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

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

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

XMLValidator.getSchema介绍

[英]Returns the schema instance that created this validator object, if known (and applicable). May return null for some instances: specifically, ValidatorPairwill return null since it 'contains' multiple validators and generally does not have just one parent or owner schema.
[中]返回创建此验证程序对象的架构实例(如果已知(且适用)。在某些情况下可能会返回null:具体来说,ValidatorPairw将返回null,因为它“包含”多个验证器,并且通常不只有一个父模式或所有者模式。

代码示例

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

public static boolean removeValidator(XMLValidator root, XMLValidationSchema schema, XMLValidator[] results)
{
  if (root instanceof ValidatorPair) {
    return ((ValidatorPair) root).doRemoveValidator(schema, results);
  } else {
    if (root.getSchema() == schema) {
      results[0] = root;
      results[1] = null;
      return true;
    }
  }
  return false;
}

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

/**
 * Returns type of schema that was used to construct this
 * validator instance.
 *
 * @return One of external schema identifier values (such as
 *   {@link XMLValidationSchema#SCHEMA_ID_DTD}).
 */
public String getSchemaType() {
  XMLValidationSchema sch = getSchema();
  return (sch == null) ? null : sch.getSchemaType();
}

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

public static boolean removeValidator(XMLValidator root, XMLValidationSchema schema, XMLValidator[] results)
{
  if (root instanceof ValidatorPair) {
    return ((ValidatorPair) root).doRemoveValidator(schema, results);
  } else {
    if (root.getSchema() == schema) {
      results[0] = root;
      results[1] = null;
      return true;
    }
  }
  return false;
}

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

/**
 * Returns type of schema that was used to construct this
 * validator instance.
 *
 * @return One of external schema identifier values (such as
 *   {@link XMLValidationSchema#SCHEMA_ID_DTD}).
 */
public String getSchemaType() {
  XMLValidationSchema sch = getSchema();
  return (sch == null) ? null : sch.getSchemaType();
}

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

/**
 * Returns type of schema that was used to construct this
 * validator instance.
 *
 * @return One of external schema identifier values (such as
 *   {@link XMLValidationSchema#SCHEMA_ID_DTD}).
 */
public String getSchemaType() {
  XMLValidationSchema sch = getSchema();
  return (sch == null) ? null : sch.getSchemaType();
}

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

/**
 * Returns type of schema that was used to construct this
 * validator instance.
 *
 * @return One of external schema identifier values (such as
 *   {@link XMLValidationSchema#SCHEMA_ID_DTD}).
 */
public String getSchemaType() {
  XMLValidationSchema sch = getSchema();
  return (sch == null) ? null : sch.getSchemaType();
}

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

public static boolean removeValidator(XMLValidator root, XMLValidationSchema schema, XMLValidator[] results)
{
  if (root instanceof ValidatorPair) {
    return ((ValidatorPair) root).doRemoveValidator(schema, results);
  } else {
    if (root.getSchema() == schema) {
      results[0] = root;
      results[1] = null;
      return true;
    }
  }
  return false;
}

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

public static boolean removeValidator(XMLValidator root, XMLValidationSchema schema, XMLValidator[] results)
{
  if (root instanceof ValidatorPair) {
    return ((ValidatorPair) root).doRemoveValidator(schema, results);
  } else {
    if (root.getSchema() == schema) {
      results[0] = root;
      results[1] = null;
      return true;
    }
  }
  return false;
}

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