public interface ValidationReport
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:
For more information, see Validation message threshold
Modifier and Type | Method and Description |
---|---|
int |
countItemsOfSeverity(Severity aSeverity)
Returns the number of validation items of the
specified severity.
|
ValidationReportItemIterator |
getItemsOfSeverity(Severity aSeverity)
Returns the validation items of the specified severity.
|
ValidationReportItemIterator |
getItemsOfSeverityOrMore(Severity aSeverity)
Returns the validation items of the specified severity and
higher (more severe).
|
ValidationReportItemIterator |
getTooManyMessagesItems()
Returns the validation items that contain the
information about the constraints that have reached
the validation message threshold.
|
boolean |
hasConstraintsWithTooManyMessages()
Returns
true if the threshold specified in the EBX® main configuration
file has been reached by at least one constraint. |
boolean |
hasItems()
Returns
true if this report has validation items. |
boolean |
hasItemsOfSeverity(Severity aSeverity)
Returns
true if this report has validation items of the specified severity. |
boolean |
hasItemsOfSeverityOrMore(Severity aSeverity)
Returns
true if this report has validation items of the specified severity or higher (more severe). |
boolean |
hasSkippedValidation()
Returns
true if this validation report
is empty because the validation of the dataset, table or record
didn't wait for the end of a concurrent validation. |
boolean |
hasTooManyItemsOfConstraint(SchemaFacet aFacet)
Returns true if the message threshold has been reached by the specified constraint.
|
boolean |
hasTooManyItemsOfSeverity(Severity aSeverity)
Deprecated.
Since 6.0
|
boolean hasItems()
true
if this report has validation items.boolean hasConstraintsWithTooManyMessages()
true
if the threshold specified in the EBX® main configuration
file has been reached by at least one constraint.
For more information, see Validation message threshold
getTooManyMessagesItems()
boolean hasItemsOfSeverity(Severity aSeverity)
true
if this report has validation items of the specified severity.int countItemsOfSeverity(Severity aSeverity)
boolean hasItemsOfSeverityOrMore(Severity aSeverity)
true
if this report has validation items of the specified severity or higher (more severe).@Deprecated boolean hasTooManyItemsOfSeverity(Severity aSeverity)
false
.boolean hasTooManyItemsOfConstraint(SchemaFacet aFacet)
hasConstraintsWithTooManyMessages()
ValidationReportItemIterator getItemsOfSeverity(Severity aSeverity)
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
.
ValidationReportItemIterator getItemsOfSeverityOrMore(Severity aSeverity)
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
.
ValidationReportItemIterator getTooManyMessagesItems()
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
.
hasConstraintsWithTooManyMessages()
boolean hasSkippedValidation()
true
if this validation report
is empty because the validation of the dataset, table or record
didn't wait for the end of a concurrent validation.ValidationSpec.RefreshPolicy.NO_WAIT