public interface ValidationReportItem
A validation item holds a user message, has a severity (usually an error) and has a subject that specifies with which entity (or entities) the message is associated.
| Modifier and Type | Method and Description |
|---|---|
UserMessage |
getMessage()
Returns a user-friendly message.
|
Severity |
getSeverity()
Returns the severity of this item, which is the severity of the user message.
|
ValidationReportItemSubject |
getSubject()
Returns the object that is associated with this item,
null if no subject is associated with this item. |
ValidationReportItemSubjectForAdaptation |
getSubjectForAdaptation()
Returns the dataset or record object associated with this item,
null if this item is not associated with a node in an dataset or record. |
ValidationReportItemSubjectForTable |
getSubjectForTable()
Returns the table object associated with this item,
null if this item is not associated with a table. |
boolean |
isError()
Returns
true if this item is an error. |
boolean |
isFatal()
Returns
true if this item is a "fatal error". |
boolean |
isInfo()
Returns
true if this item is an informational message. |
boolean |
isOfSeverity(Severity aSeverity)
Returns
true if this item is of the specified severity. |
boolean |
isValidationMessageThresholdItem()
Returns
true if this item is related to the maximum
number of validation messages to consider per constraint when
performing a validation. |
boolean |
isWarning()
Returns
true if this item is a warning. |
UserMessage getMessage()
ValidationReportItemSubject getSubject()
null if no subject is associated with this item.getSubjectForAdaptation(),
getSubjectForTable()ValidationReportItemSubjectForAdaptation getSubjectForAdaptation()
null if this item is not associated with a node in an dataset or record.getSubject()ValidationReportItemSubjectForTable getSubjectForTable()
null if this item is not associated with a table.getSubject()Severity getSeverity()
UserMessage.getSeverity()boolean isFatal()
true if this item is a "fatal error".boolean isError()
true if this item is an error.boolean isWarning()
true if this item is a warning.boolean isInfo()
true if this item is an informational message.boolean isOfSeverity(Severity aSeverity)
true if this item is of the specified severity.boolean isValidationMessageThresholdItem()
true if this item is related to the maximum
number of validation messages to consider per constraint when
performing a validation. That is, if true this item
indicates that the maximum number of validation messages
has been reached by a constraint.ValidationReport.getTooManyMessagesItems()