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 -
Method Summary
Modifier and TypeMethodDescriptionList<@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
isValid()
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
-
Constructor Details
-
SchematronReport
public SchematronReport()
-
-
Method Details
-
getFailedAsserts
Returns the list of failed asserts. -
getFiredRules
Returns the list of fired rules. -
getActivePatterns
Returns the list of active patterns. -
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.
-