本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}