@ThreadSafe public final class SVRLHelper extends Object
Modifier and Type | Method and Description |
---|---|
static com.helger.commons.collection.impl.ICommonsList<SVRLFailedAssert> |
getAllFailedAssertions(SchematronOutputType aSchematronOutput)
Get a list of all failed assertions in a given schematron output.
|
static com.helger.commons.collection.impl.ICommonsList<AbstractSVRLMessage> |
getAllFailedAssertionsAndSuccessfulReports(SchematronOutputType aSchematronOutput)
Get a list of all failed assertions and successful reports in a given
schematron output.
|
static com.helger.commons.collection.impl.ICommonsList<SVRLFailedAssert> |
getAllFailedAssertionsMoreOrEqualSevereThan(SchematronOutputType aSchematronOutput,
com.helger.commons.error.level.IErrorLevel aErrorLevel)
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.
|
static com.helger.commons.collection.impl.ICommonsList<SVRLSuccessfulReport> |
getAllSuccessfulReports(SchematronOutputType aSchematronOutput)
Get a list of all successful reports in a given schematron output.
|
static com.helger.commons.collection.impl.ICommonsList<SVRLSuccessfulReport> |
getAllSuccessfulReportsMoreOrEqualSevereThan(SchematronOutputType aSchematronOutput,
com.helger.commons.error.level.IErrorLevel aErrorLevel)
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.
|
static String |
getBeautifiedLocation(String sLocation)
Convert an "unsexy" location string in the for, of
*:xx[namespace-uri()='yy'] to something more readable like
prefix:xx by using the mapping registered in the
SVRLLocationBeautifierRegistry . |
static ISVRLErrorLevelDeterminator |
getErrorLevelDeterminator() |
static com.helger.commons.error.level.IErrorLevel |
getErrorLevelFromFailedAssert(FailedAssert aFailedAssert)
Get the error level associated with a single failed assertion.
|
static com.helger.commons.error.level.IErrorLevel |
getErrorLevelFromSuccessfulReport(SuccessfulReport aSuccessfulReport)
Get the error level associated with a single successful report.
|
static void |
setErrorLevelDeterminator(ISVRLErrorLevelDeterminator aELD)
Set the global error level determinator.
|
@Nonnull @ReturnsMutableCopy public static com.helger.commons.collection.impl.ICommonsList<SVRLFailedAssert> getAllFailedAssertions(@Nullable SchematronOutputType aSchematronOutput)
aSchematronOutput
- The schematron output to be used. May be null
.null
list with all failed assertions.@Nonnull @ReturnsMutableCopy public static com.helger.commons.collection.impl.ICommonsList<SVRLFailedAssert> getAllFailedAssertionsMoreOrEqualSevereThan(@Nullable SchematronOutputType aSchematronOutput, @Nonnull com.helger.commons.error.level.IErrorLevel aErrorLevel)
aSchematronOutput
- The schematron output to be used. May be null
.aErrorLevel
- Minimum error level to be queriednull
list with all failed assertions.@Nonnull @ReturnsMutableCopy public static com.helger.commons.collection.impl.ICommonsList<SVRLSuccessfulReport> getAllSuccessfulReports(@Nullable SchematronOutputType aSchematronOutput)
aSchematronOutput
- The schematron output to be used. May be null
.null
list with all successful reports.@Nonnull @ReturnsMutableCopy public static com.helger.commons.collection.impl.ICommonsList<SVRLSuccessfulReport> getAllSuccessfulReportsMoreOrEqualSevereThan(@Nullable SchematronOutputType aSchematronOutput, @Nonnull com.helger.commons.error.level.IErrorLevel aErrorLevel)
aSchematronOutput
- The schematron output to be used. May be null
.aErrorLevel
- Minimum error level to be queriednull
list with all successful reports.@Nonnull @ReturnsMutableCopy public static com.helger.commons.collection.impl.ICommonsList<AbstractSVRLMessage> getAllFailedAssertionsAndSuccessfulReports(@Nullable SchematronOutputType aSchematronOutput)
aSchematronOutput
- The schematron output to be used. May be null
.null
list with all failed assertions and
successful reports. Maybe an empty list if the input is
null
.@Nonnull public static com.helger.commons.error.level.IErrorLevel getErrorLevelFromFailedAssert(@Nonnull FailedAssert aFailedAssert)
aFailedAssert
- The failed assert to be queried. May not be null
.null
.@Nonnull public static com.helger.commons.error.level.IErrorLevel getErrorLevelFromSuccessfulReport(@Nonnull SuccessfulReport aSuccessfulReport)
aSuccessfulReport
- The failed assert to be queried. May not be null
.null
.@Nonnull public static ISVRLErrorLevelDeterminator getErrorLevelDeterminator()
null
.public static void setErrorLevelDeterminator(@Nonnull ISVRLErrorLevelDeterminator aELD)
aELD
- The determinator to use. May not be null
.@Nonnull public static String getBeautifiedLocation(@Nonnull String sLocation)
*:xx[namespace-uri()='yy']
to something more readable like
prefix:xx
by using the mapping registered in the
SVRLLocationBeautifierRegistry
.sLocation
- The original location string. May not be null
.null
. Might be identical
to the original string if the pattern was not found.Copyright © 2014–2019 Philip Helger. All rights reserved.