当前位置: 首页>>代码示例>>Java>>正文


Java SchematronOutputType.getActivePatternAndFiredRuleAndFailedAssert方法代码示例

本文整理汇总了Java中org.oclc.purl.dsdl.svrl.SchematronOutputType.getActivePatternAndFiredRuleAndFailedAssert方法的典型用法代码示例。如果您正苦于以下问题:Java SchematronOutputType.getActivePatternAndFiredRuleAndFailedAssert方法的具体用法?Java SchematronOutputType.getActivePatternAndFiredRuleAndFailedAssert怎么用?Java SchematronOutputType.getActivePatternAndFiredRuleAndFailedAssert使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.oclc.purl.dsdl.svrl.SchematronOutputType的用法示例。


在下文中一共展示了SchematronOutputType.getActivePatternAndFiredRuleAndFailedAssert方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getAllFailedAssertionsMoreOrEqualSevereThan

import org.oclc.purl.dsdl.svrl.SchematronOutputType; //导入方法依赖的package包/类
/**
 * Get a list of all failed assertions in a given schematron output, with an
 * error level equally or more severe than the passed error level.
 *
 * @param aSchematronOutput
 *        The schematron output to be used. May not be <code>null</code>.
 * @param aErrorLevel
 *        Minimum error level to be queried
 * @return A non-<code>null</code> list with all failed assertions.
 */
@Nonnull
@ReturnsMutableCopy
public static ICommonsList <SVRLFailedAssert> getAllFailedAssertionsMoreOrEqualSevereThan (@Nonnull final SchematronOutputType aSchematronOutput,
                                                                                           @Nonnull final IErrorLevel aErrorLevel)
{
  final ICommonsList <SVRLFailedAssert> ret = new CommonsArrayList <> ();
  for (final Object aObj : aSchematronOutput.getActivePatternAndFiredRuleAndFailedAssert ())
    if (aObj instanceof FailedAssert)
    {
      final SVRLFailedAssert aFA = new SVRLFailedAssert ((FailedAssert) aObj);
      if (aFA.getFlag ().isGE (aErrorLevel))
        ret.add (aFA);
    }
  return ret;
}
 
开发者ID:phax,项目名称:ph-schematron,代码行数:26,代码来源:SVRLHelper.java

示例2: getAllSuccessfulReportsMoreOrEqualSevereThan

import org.oclc.purl.dsdl.svrl.SchematronOutputType; //导入方法依赖的package包/类
/**
 * Get a list of all successful reports in a given schematron output, with an
 * error level equally or more severe than the passed error level.
 *
 * @param aSchematronOutput
 *        The schematron output to be used. May not be <code>null</code>.
 * @param aErrorLevel
 *        Minimum error level to be queried
 * @return A non-<code>null</code> list with all successful reports.
 */
@Nonnull
@ReturnsMutableCopy
public static ICommonsList <SVRLSuccessfulReport> getAllSuccessfulReportsMoreOrEqualSevereThan (@Nonnull final SchematronOutputType aSchematronOutput,
                                                                                                @Nonnull final IErrorLevel aErrorLevel)
{
  final ICommonsList <SVRLSuccessfulReport> ret = new CommonsArrayList <> ();
  for (final Object aObj : aSchematronOutput.getActivePatternAndFiredRuleAndFailedAssert ())
    if (aObj instanceof SuccessfulReport)
    {
      final SVRLSuccessfulReport aFA = new SVRLSuccessfulReport ((SuccessfulReport) aObj);
      if (aFA.getFlag ().isGE (aErrorLevel))
        ret.add (aFA);
    }
  return ret;
}
 
开发者ID:phax,项目名称:ph-schematron,代码行数:26,代码来源:SVRLHelper.java

示例3: getSchematronValidity

import org.oclc.purl.dsdl.svrl.SchematronOutputType; //导入方法依赖的package包/类
@Nonnull
public EValidity getSchematronValidity (@Nonnull final SchematronOutputType aSO)
{
  for (final Object aObj : aSO.getActivePatternAndFiredRuleAndFailedAssert ())
    if (aObj instanceof FailedAssert || aObj instanceof SuccessfulReport)
      return EValidity.INVALID;
  return EValidity.VALID;
}
 
开发者ID:phax,项目名称:ph-schematron,代码行数:9,代码来源:SchematronXSLTValidatorDefault.java

示例4: getSchematronValidity

import org.oclc.purl.dsdl.svrl.SchematronOutputType; //导入方法依赖的package包/类
@Nonnull
public EValidity getSchematronValidity (@Nonnull final SchematronOutputType aSO)
{
  for (final Object aObj : aSO.getActivePatternAndFiredRuleAndFailedAssert ())
    if (aObj instanceof FailedAssert)
      return EValidity.INVALID;
  return EValidity.VALID;
}
 
开发者ID:phax,项目名称:ph-schematron,代码行数:9,代码来源:SchematronXSLTValidatorFailedAssertOnly.java

示例5: getAllFailedAssertions

import org.oclc.purl.dsdl.svrl.SchematronOutputType; //导入方法依赖的package包/类
/**
 * Get a list of all failed assertions in a given schematron output.
 *
 * @param aSchematronOutput
 *        The schematron output to be used. May not be <code>null</code>.
 * @return A non-<code>null</code> list with all failed assertions.
 */
@Nonnull
@ReturnsMutableCopy
public static ICommonsList <SVRLFailedAssert> getAllFailedAssertions (@Nonnull final SchematronOutputType aSchematronOutput)
{
  final ICommonsList <SVRLFailedAssert> ret = new CommonsArrayList <> ();
  for (final Object aObj : aSchematronOutput.getActivePatternAndFiredRuleAndFailedAssert ())
    if (aObj instanceof FailedAssert)
      ret.add (new SVRLFailedAssert ((FailedAssert) aObj));
  return ret;
}
 
开发者ID:phax,项目名称:ph-schematron,代码行数:18,代码来源:SVRLHelper.java

示例6: getAllSuccessfulReports

import org.oclc.purl.dsdl.svrl.SchematronOutputType; //导入方法依赖的package包/类
/**
 * Get a list of all successful reports in a given schematron output.
 *
 * @param aSchematronOutput
 *        The schematron output to be used. May not be <code>null</code>.
 * @return A non-<code>null</code> list with all successful reports.
 */
@Nonnull
@ReturnsMutableCopy
public static ICommonsList <SVRLSuccessfulReport> getAllSuccessfulReports (@Nonnull final SchematronOutputType aSchematronOutput)
{
  final ICommonsList <SVRLSuccessfulReport> ret = new CommonsArrayList <> ();
  for (final Object aObj : aSchematronOutput.getActivePatternAndFiredRuleAndFailedAssert ())
    if (aObj instanceof SuccessfulReport)
      ret.add (new SVRLSuccessfulReport ((SuccessfulReport) aObj));
  return ret;
}
 
开发者ID:phax,项目名称:ph-schematron,代码行数:18,代码来源:SVRLHelper.java

示例7: getAllFailedAssertionsAndSuccessfulReports

import org.oclc.purl.dsdl.svrl.SchematronOutputType; //导入方法依赖的package包/类
/**
 * Get a list of all failed assertions and successful reports in a given
 * schematron output.
 *
 * @param aSchematronOutput
 *        The schematron output to be used. May not be <code>null</code>.
 * @return A non-<code>null</code> list with all failed assertions and
 *         successful reports.
 */
@Nonnull
@ReturnsMutableCopy
public static ICommonsList <AbstractSVRLMessage> getAllFailedAssertionsAndSuccessfulReports (@Nonnull final SchematronOutputType aSchematronOutput)
{
  final ICommonsList <AbstractSVRLMessage> ret = new CommonsArrayList <> ();
  for (final Object aObj : aSchematronOutput.getActivePatternAndFiredRuleAndFailedAssert ())
    if (aObj instanceof FailedAssert)
      ret.add (new SVRLFailedAssert ((FailedAssert) aObj));
    else
      if (aObj instanceof SuccessfulReport)
        ret.add (new SVRLSuccessfulReport ((SuccessfulReport) aObj));
  return ret;
}
 
开发者ID:phax,项目名称:ph-schematron,代码行数:23,代码来源:SVRLHelper.java


注:本文中的org.oclc.purl.dsdl.svrl.SchematronOutputType.getActivePatternAndFiredRuleAndFailedAssert方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。