Class SchematronReport

java.lang.Object
com.helger.schematron.svrl.jaxb.SchematronOutputType
org.projecthusky.validation.service.schematron.SchematronReport
All Implemented Interfaces:
com.helger.commons.lang.IExplicitlyCloneable, Serializable, Cloneable

public class SchematronReport extends com.helger.schematron.svrl.jaxb.SchematronOutputType
An extension of the ph-schematron SchematronOutputType with some added utility methods.
Author:
Quentin Ligier
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    List<@NonNull com.helger.schematron.svrl.jaxb.ActivePattern>
    Returns the list of active patterns.
    List<@NonNull com.helger.schematron.svrl.jaxb.FailedAssert>
    Returns the list of failed asserts.
    List<@NonNull com.helger.schematron.svrl.jaxb.FiredRule>
    Returns the list of fired rules.
    List<@NonNull com.helger.schematron.svrl.jaxb.SuccessfulReport>
    Returns the list of successful reports.
    boolean
    Return whether the validation was successful or not.

    Methods inherited from class com.helger.schematron.svrl.jaxb.SchematronOutputType

    addActivePatternAndFiredRuleAndFailedAssert, addNsPrefixInAttributeValues, addText, clone, cloneTo, equals, getActivePatternAndFiredRuleAndFailedAssert, getActivePatternAndFiredRuleAndFailedAssertAtIndex, getActivePatternAndFiredRuleAndFailedAssertCount, getNsPrefixInAttributeValues, getNsPrefixInAttributeValuesAtIndex, getNsPrefixInAttributeValuesCount, getPhase, getSchemaVersion, getText, getTextAtIndex, getTextCount, getTitle, hasActivePatternAndFiredRuleAndFailedAssertEntries, hashCode, hasNoActivePatternAndFiredRuleAndFailedAssertEntries, hasNoNsPrefixInAttributeValuesEntries, hasNoTextEntries, hasNsPrefixInAttributeValuesEntries, hasTextEntries, setActivePatternAndFiredRuleAndFailedAssert, setNsPrefixInAttributeValues, setPhase, setSchemaVersion, setText, setTitle, toString

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SchematronReport

      public SchematronReport()
  • Method Details

    • getFailedAsserts

      public List<@NonNull com.helger.schematron.svrl.jaxb.FailedAssert> getFailedAsserts()
      Returns the list of failed asserts.
    • getFiredRules

      public List<@NonNull com.helger.schematron.svrl.jaxb.FiredRule> getFiredRules()
      Returns the list of fired rules.
    • getActivePatterns

      public List<@NonNull com.helger.schematron.svrl.jaxb.ActivePattern> getActivePatterns()
      Returns the list of active patterns.
    • getSuccessfulReports

      public List<@NonNull com.helger.schematron.svrl.jaxb.SuccessfulReport> getSuccessfulReports()
      Returns the list of successful reports.
    • isValid

      public boolean isValid()
      Return whether the validation was successful or not. Every failed assert, whatever its role, is considered as a failure. You should also check the number of fired rules, their absence isn't considered a failure.