Interface ValidationReport
-
- All Known Subinterfaces:
DataspaceValidationReport
public interface ValidationReportA validation report is composed of validation items, each one characterized by a severity and a user message.Message threshold property
A threshold property can be set at data model level so as to specify the maximum number of messages, for each constraint defined in the data model. This threshold must be declared under the element
xs:schema/xs:annotation/xs:appinfo:<osd:validation> <validationMessageThreshold>250</validationMessageThreshold> </osd:validation>This threshold is taken into account for each constraint of a data model. When the threshold is reached by a constraint:
- The validation of the constraint is stopped;
- An error message indicating that the threshold has been reached is added to the validation report.
For more information, see Validation message threshold
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description intcountItemsOfSeverity(Severity aSeverity)Returns the number of validation items of the specified severity.ValidationReportItemIteratorgetItemsOfSeverity(Severity aSeverity)Returns the validation items of the specified severity.ValidationReportItemIteratorgetItemsOfSeverityOrMore(Severity aSeverity)Returns the validation items of the specified severity and higher (more severe).ValidationReportItemIteratorgetTooManyMessagesItems()Returns the validation items that contain the information about the constraints that have reached the validation message threshold.booleanhasConstraintsWithTooManyMessages()Returnstrueif the threshold specified in the EBX® main configuration file has been reached by at least one constraint.booleanhasItems()Returnstrueif this report has validation items.booleanhasItemsOfSeverity(Severity aSeverity)Returnstrueif this report has validation items of the specified severity.booleanhasItemsOfSeverityOrMore(Severity aSeverity)Returnstrueif this report has validation items of the specified severity or higher (more severe).booleanhasSkippedValidation()Returnstrueif this validation report is empty because the validation of the dataset, table or record didn't wait for the end of a concurrent validation.booleanhasTooManyItemsOfConstraint(SchemaFacet aFacet)Returns true if the message threshold has been reached by the specified constraint.booleanhasTooManyItemsOfSeverity(Severity aSeverity)Deprecated.Since 6.0
-
-
-
Method Detail
-
hasItems
boolean hasItems()
Returnstrueif this report has validation items.- Since:
- 5.8.0
-
hasConstraintsWithTooManyMessages
boolean hasConstraintsWithTooManyMessages()
Returnstrueif the threshold specified in the EBX® main configuration file has been reached by at least one constraint.For more information, see Validation message threshold
- Since:
- 5.8.0
- See Also:
getTooManyMessagesItems()
-
hasItemsOfSeverity
boolean hasItemsOfSeverity(Severity aSeverity)
Returnstrueif this report has validation items of the specified severity.
-
countItemsOfSeverity
int countItemsOfSeverity(Severity aSeverity)
Returns the number of validation items of the specified severity.- Since:
- 5.8.0
-
hasItemsOfSeverityOrMore
boolean hasItemsOfSeverityOrMore(Severity aSeverity)
Returnstrueif this report has validation items of the specified severity or higher (more severe).
-
hasTooManyItemsOfSeverity
@Deprecated boolean hasTooManyItemsOfSeverity(Severity aSeverity)
Deprecated.Since 6.0Returnsfalse.
-
hasTooManyItemsOfConstraint
boolean hasTooManyItemsOfConstraint(SchemaFacet aFacet)
Returns true if the message threshold has been reached by the specified constraint.- Since:
- 6.0
- See Also:
hasConstraintsWithTooManyMessages()
-
getItemsOfSeverity
ValidationReportItemIterator getItemsOfSeverity(Severity aSeverity)
Returns the validation items of the specified severity.The iterator has to be closed to free the acquired resources. It can only be accessed as long as the dataspace is open. See
ValidationReportItemIterator.
-
getItemsOfSeverityOrMore
ValidationReportItemIterator getItemsOfSeverityOrMore(Severity aSeverity)
Returns the validation items of the specified severity and higher (more severe).The iterator has to be closed to free the acquired resources. It can only be accessed as long as the dataspace is open. See
ValidationReportItemIterator.
-
getTooManyMessagesItems
ValidationReportItemIterator getTooManyMessagesItems()
Returns the validation items that contain the information about the constraints that have reached the validation message threshold.The iterator has to be closed to free the acquired resources. It can only be accessed as long as the dataspace is open. See
ValidationReportItemIterator.- Since:
- 5.8.0
- See Also:
hasConstraintsWithTooManyMessages()
-
hasSkippedValidation
boolean hasSkippedValidation()
Returnstrueif this validation report is empty because the validation of the dataset, table or record didn't wait for the end of a concurrent validation.- See Also:
ValidationSpec.RefreshPolicy.NO_WAIT
-
-