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

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

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

XMLValidator.validationCompleted介绍

[英]Method called when the validation is completed; either due to the input stream ending, or due to an explicit 'stop validation' request by the application (via context object).
[中]验证完成时调用的方法;要么是由于输入流结束,要么是由于应用程序(通过上下文对象)的显式“停止验证”请求。

代码示例

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

public XMLValidator stopValidatingAgainst(XMLValidationSchema schema)
  throws XMLStreamException
{
  XMLValidator[] results = new XMLValidator[2];
  if (ValidatorPair.removeValidator(mValidator, schema, results)) { // found
    XMLValidator found = results[0];
    mValidator = results[1];
    found.validationCompleted(false);
    return found;
  }
  return null;
}

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

public XMLValidator stopValidatingAgainst(XMLValidator validator)
  throws XMLStreamException
{
  XMLValidator[] results = new XMLValidator[2];
  if (ValidatorPair.removeValidator(mValidator, validator, results)) { // found
    XMLValidator found = results[0];
    mValidator = results[1];
    found.validationCompleted(false);
    return found;
  }
  return null;
}

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

/**
 * Method called after parsing (but before returning) end element,
 * to allow for pluggable validators to verify correctness of
 * the content model for the closing element.
 *
 * @return Validation state that should be effective for the parent
 *   element state
 */
public int validateEndElement()
  throws XMLStreamException
{
  if (mValidator == null) { // should never be null if we get here
    return XMLValidator.CONTENT_ALLOW_ANY_TEXT;
  }
  int result =  mValidator.validateElementEnd
    (mCurrElement.mLocalName, mCurrElement.mNamespaceURI, mCurrElement.mPrefix);
  if (mDepth == 1) { // root closing
    mValidator.validationCompleted(true);
  }
  return result;
}

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

public XMLValidator stopValidatingAgainst(XMLValidationSchema schema)
  throws XMLStreamException
{
  XMLValidator[] results = new XMLValidator[2];
  XMLValidator found = null;
  if (ValidatorPair.removeValidator(mValidator, schema, results)) { // found
    found = results[0];
    mValidator = results[1];
    found.validationCompleted(false);
    if (mValidator == null) {
      resetValidationFlags();
    }
  }
  return found;
}

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

public XMLValidator stopValidatingAgainst(XMLValidator validator)
  throws XMLStreamException
{
  XMLValidator[] results = new XMLValidator[2];
  XMLValidator found = null;
  if (ValidatorPair.removeValidator(mValidator, validator, results)) { // found
    found = results[0];
    mValidator = results[1];
    found.validationCompleted(false);
    if (mValidator == null) {
      resetValidationFlags();
    }
  }
  return found;
}

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

public void validationCompleted(boolean eod)
  throws XMLValidationException
{
  mFirst.validationCompleted(eod);
  mSecond.validationCompleted(eod);
}

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

public void validationCompleted(boolean eod)
  throws XMLValidationException
{
  mFirst.validationCompleted(eod);
  mSecond.validationCompleted(eod);
}

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

public void validationCompleted(boolean eod)
  throws XMLValidationException
{
  mFirst.validationCompleted(eod);
  mSecond.validationCompleted(eod);
}

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

public XMLValidator stopValidatingAgainst(XMLValidator validator)
  throws XMLStreamException
{
  XMLValidator[] results = new XMLValidator[2];
  if (ValidatorPair.removeValidator(mValidator, validator, results)) { // found
    XMLValidator found = results[0];
    mValidator = results[1];
    found.validationCompleted(false);
    return found;
  }
  return null;
}

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

public XMLValidator stopValidatingAgainst(XMLValidationSchema schema)
  throws XMLStreamException
{
  XMLValidator[] results = new XMLValidator[2];
  if (ValidatorPair.removeValidator(mValidator, schema, results)) { // found
    XMLValidator found = results[0];
    mValidator = results[1];
    found.validationCompleted(false);
    return found;
  }
  return null;
}

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

public XMLValidator stopValidatingAgainst(XMLValidator validator)
  throws XMLStreamException
{
  XMLValidator[] results = new XMLValidator[2];
  if (ValidatorPair.removeValidator(mValidator, validator, results)) { // found
    XMLValidator found = results[0];
    mValidator = results[1];
    found.validationCompleted(false);
    return found;
  }
  return null;
}

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

public XMLValidator stopValidatingAgainst(XMLValidator validator)
  throws XMLStreamException
{
  XMLValidator[] results = new XMLValidator[2];
  if (ValidatorPair.removeValidator(mValidator, validator, results)) { // found
    XMLValidator found = results[0];
    mValidator = results[1];
    found.validationCompleted(false);
    return found;
  }
  return null;
}

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

public XMLValidator stopValidatingAgainst(XMLValidationSchema schema)
  throws XMLStreamException
{
  XMLValidator[] results = new XMLValidator[2];
  if (ValidatorPair.removeValidator(mValidator, schema, results)) { // found
    XMLValidator found = results[0];
    mValidator = results[1];
    found.validationCompleted(false);
    return found;
  }
  return null;
}

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

public XMLValidator stopValidatingAgainst(XMLValidator validator)
  throws XMLStreamException
{
  XMLValidator[] results = new XMLValidator[2];
  if (ValidatorPair.removeValidator(mValidator, validator, results)) { // found
    XMLValidator found = results[0];
    mValidator = results[1];
    found.validationCompleted(false);
    return found;
  }
  return null;
}

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

public XMLValidator stopValidatingAgainst(XMLValidationSchema schema)
  throws XMLStreamException
{
  XMLValidator[] results = new XMLValidator[2];
  if (ValidatorPair.removeValidator(mValidator, schema, results)) { // found
    XMLValidator found = results[0];
    mValidator = results[1];
    found.validationCompleted(false);
    return found;
  }
  return null;
}

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

public XMLValidator stopValidatingAgainst(XMLValidationSchema schema)
  throws XMLStreamException
{
  XMLValidator[] results = new XMLValidator[2];
  if (ValidatorPair.removeValidator(mValidator, schema, results)) { // found
    XMLValidator found = results[0];
    mValidator = results[1];
    found.validationCompleted(false);
    return found;
  }
  return null;
}

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

public XMLValidator stopValidatingAgainst(XMLValidator validator)
  throws XMLStreamException
{
  XMLValidator[] results = new XMLValidator[2];
  if (ValidatorPair.removeValidator(mValidator, validator, results)) { // found
    XMLValidator found = results[0];
    mValidator = results[1];
    found.validationCompleted(false);
    return found;
  }
  return null;
}

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

public XMLValidator stopValidatingAgainst(XMLValidationSchema schema)
  throws XMLStreamException
{
  XMLValidator[] results = new XMLValidator[2];
  if (ValidatorPair.removeValidator(mValidator, schema, results)) { // found
    XMLValidator found = results[0];
    mValidator = results[1];
    found.validationCompleted(false);
    return found;
  }
  return null;
}

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

public XMLValidator stopValidatingAgainst(XMLValidator validator)
  throws XMLStreamException
{
  XMLValidator[] results = new XMLValidator[2];
  if (ValidatorPair.removeValidator(mValidator, validator, results)) { // found
    XMLValidator found = results[0];
    mValidator = results[1];
    found.validationCompleted(false);
    return found;
  }
  return null;
}

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

public XMLValidator stopValidatingAgainst(XMLValidator validator)
  throws XMLStreamException
{
  XMLValidator[] results = new XMLValidator[2];
  if (ValidatorPair.removeValidator(mValidator, validator, results)) { // found
    XMLValidator found = results[0];
    mValidator = results[1];
    found.validationCompleted(false);
    return found;
  }
  return null;
}

相关文章