Package com.orchestranetworks.service
Interface ValidationReport
public interface ValidationReport
A 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 so as to specify the maximum number of messages, for each constraint
defined in a data model.
It is defined by the property ebx.validation.constraints.messages.threshold
(see EBX® main configuration file).
This threshold is taken into account for each constraint of a data model. When the threshold is reached by a constraint and for a severity:
- The validation of the constraint is stopped;
- An error message indicating that the threshold has been reached is added to the validation report.
When set to '0' or a negative value, the threshold is not taken into account. Default threshold is '0'.
-
Method Summary
Modifier and TypeMethodDescriptionintcountItemsOfSeverity(Severity aSeverity) Returns the number of validation items of the severity specified.getItemsOfSeverity(Severity aSeverity) Returns the validation items of the severity specified.getItemsOfSeverityOrMore(Severity aSeverity) Returns the validation items of the specified severity and higher (more severe).Returns the validation items that contain the information about the constraints that have reached the validation message threshold.booleanReturnstrueif the threshold specified in the EBX® main configuration file has been reached on items of the severityerrorby at least one constraint.booleanhasItems()Returnstrueif this report has validation items.booleanhasItemsOfSeverity(Severity aSeverity) Returnstrueif this report has validation items of the severity specified.booleanhasItemsOfSeverityOrMore(Severity aSeverity) Returnstrueif this report has validation items of the severity specified or higher (more severe).booleanReturnstrueif this validation report is empty because the validation of the dataset, table or record didn't wait for the end of a concurrent validation.booleanhasTooManyItemsOfSeverity(Severity aSeverity) Returnstrueif the threshold specified in the EBX® main configuration file has been reached at least by a constraint for the specified severity.
-
Method Details
-
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 on items of the severityerrorby at least one constraint.For more information, see Message threshold property and EBX® main configuration file.
- Since:
- 5.8.0
- See Also:
-
hasItemsOfSeverity
Returnstrueif this report has validation items of the severity specified. -
countItemsOfSeverity
Returns the number of validation items of the severity specified.- Since:
- 5.8.0
-
hasItemsOfSeverityOrMore
Returnstrueif this report has validation items of the severity specified or higher (more severe). -
hasTooManyItemsOfSeverity
Returnstrueif the threshold specified in the EBX® main configuration file has been reached at least by a constraint for the specified severity.For more information, see Message threshold property.
-
getItemsOfSeverity
Returns the validation items of the severity specified. -
getItemsOfSeverityOrMore
Returns the validation items of the specified severity and higher (more severe). -
getTooManyMessagesItems
ValidationReportItemIterator getTooManyMessagesItems()Returns the validation items that contain the information about the constraints that have reached the validation message threshold.- Since:
- 5.8.0
- See Also:
-
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:
-