Class ValidationResult
- java.lang.Object
-
- eu.domibus.connector.client.schema.validation.ValidationResult
-
public class ValidationResult extends Object
The result of a schema validation. Contains single results describing the outcome of the validation.- Author:
- riederb
-
-
Constructor Summary
Constructors Constructor Description ValidationResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<SingleValidationResult>
getValidationResults()
boolean
isError()
Checks, if a single result of severity ERROR is present.boolean
isFatal()
Checks, if a single result of severity FATAL_ERROR is present.boolean
isOkay()
Checks, if the schema validation has any outcome.boolean
isWarning()
Checks, if a single result of severity WARNING is present.SeverityLevel
maxSeverityLevel()
Iterates single results and returns the highest severity level present.void
printValidationResults(org.apache.logging.log4j.Logger LOGGER)
Prints all results contained.
-
-
-
Method Detail
-
isOkay
public boolean isOkay()
Checks, if the schema validation has any outcome.- Returns:
- true, if no single result is present.
-
isFatal
public boolean isFatal()
Checks, if a single result of severity FATAL_ERROR is present.- Returns:
- true, if a single result of severity level FATAL_ERROR is present.
-
isError
public boolean isError()
Checks, if a single result of severity ERROR is present.- Returns:
- true, if a single result of severity level ERROR is present.
-
isWarning
public boolean isWarning()
Checks, if a single result of severity WARNING is present.- Returns:
- true, if a single result of severity level WARNING is present.
-
maxSeverityLevel
public SeverityLevel maxSeverityLevel()
Iterates single results and returns the highest severity level present.- Returns:
- the highest severity level contained in a single result.
-
getValidationResults
public Set<SingleValidationResult> getValidationResults()
-
printValidationResults
public void printValidationResults(org.apache.logging.log4j.Logger LOGGER)
Prints all results contained. Results are handed over to the LOGGER level INFO. If no results are present, the LOGGER prints outcome in level DEBUG.- Parameters:
LOGGER
- the logger of the calling class. Results are handed over to the LOGGER level INFO.
-
-