eu.peppol.validation.commons.schematron.svrl
Class SVRLUtils

java.lang.Object
  extended by eu.peppol.validation.commons.schematron.svrl.SVRLUtils

@Immutable
public final class SVRLUtils
extends Object

Miscellaneous utility methods for handling Schematron output (SVRL).

Author:
PEPPOL.AT, BRZ, Philip Helger

Method Summary
static List<SVRLFailedAssert> getAllFailedAssertions(SchematronOutputType aSchematronOutput)
          Get a list of all failed assertions in a given schematron output.
static com.phloc.commons.error.EErrorLevel getErrorLevelFromFailedAssert(FailedAssertType aFailedAssert)
          Get the error level associated with a single failed assertion.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAllFailedAssertions

@Nonnull
@ReturnsMutableCopy
public static List<SVRLFailedAssert> getAllFailedAssertions(@Nonnull
                                                                                       SchematronOutputType aSchematronOutput)
Get a list of all failed assertions in a given schematron output.

Parameters:
aSchematronOutput - The schematron output to be used. May not be null.
Returns:
A non-null list with all failed assertions.

getErrorLevelFromFailedAssert

@Nonnull
public static com.phloc.commons.error.EErrorLevel getErrorLevelFromFailedAssert(@Nonnull
                                                                                        FailedAssertType aFailedAssert)
Get the error level associated with a single failed assertion.

Parameters:
aFailedAssert - The failed assert to be queried. May not be null.
Returns:
The error level and never null.


Copyright © 2011 PEPPOL project. All Rights Reserved.