public interface ValueContextForValidationOnTable
Those messages are then accessed as validation report items
in the context of a validation report.
Modifier and Type | Method and Description |
---|---|
void |
addMessage(Adaptation aRecord,
SchemaNode aNode,
UserMessage aMessage)
Adds the specified validation message concerning a node in a single record.
|
void |
addMessage(Adaptation aRecord,
UserMessage aMessage)
Adds the specified validation message concerning a single record.
|
void |
addMessage(List<Adaptation> records,
UserMessage aMessage)
Adds the specified validation message concerning a set of records.
|
void |
addMessage(String xpathPredicateOfRecords,
UserMessage aMessage)
Adds the specified validation message concerning the result of an XPath predicate.
|
void |
addMessage(UserMessage aMessage)
This method creates a new
validation item
whose subject is the table that is currently being validated. |
AdaptationTable |
getTable()
Returns the table that is currently being validated.
|
AdaptationTable getTable()
void addMessage(String xpathPredicateOfRecords, UserMessage aMessage)
The added message will be contained by the table that is currently being validated,
(see AdaptationTable.getValidationReport()
).
Concretely, this method creates a new validation item whose subject
is a ValidationReportItemSubjectForTable
.
The specified XPath can be accessed using the
method ValidationReportItemSubjectForTable.getXPathPredicateOfRecords()
.
xpathPredicateOfRecords
- specifies the records with which the new validation item is associated.
For a single record, the method Adaptation.toXPathPredicateString()
can be invoked.aMessage
- the validation messageIllegalArgumentException
- if the result of the XPath predicate is not consistent with the table node.void addMessage(List<Adaptation> records, UserMessage aMessage)
This method is equivalent to addMessage(String, UserMessage)
.
IllegalArgumentException
- if specified records are not consistent with the current context.void addMessage(Adaptation aRecord, UserMessage aMessage)
This method is equivalent to addMessage(String, UserMessage)
.
IllegalArgumentException
- if the specified record is not consistent with the current context.addMessage(String, UserMessage)
void addMessage(Adaptation aRecord, SchemaNode aNode, UserMessage aMessage)
IllegalArgumentException
- if the specified node or record is not consistent with the current context.addMessage(String, UserMessage)
void addMessage(UserMessage aMessage)
This method creates a new validation item
whose subject
is the table that is currently being validated.
The item is also contained by the same table, so that it can be accessed using the method
AdaptationTable.getValidationReport(boolean)
.
When displaying the message, EBX® usually adds information about the subject (for example, the validation report in EBX® user interface displays the subject as a hyperlink). Consequently, it is not required to repeat this contextual information in the message argument.