public interface ValueContextForValidation extends ValueContext
Messages that have been added can be accessed as items
in the context of a validation report.
Modifier and Type | Method and Description |
---|---|
void |
addError(String aMessage)
Adds the specified error message.
|
void |
addInfo(String aMessage)
Adds the specified information message.
|
void |
addMessage(UserMessage msg)
Adds the specified validation message.
|
void |
addWarning(String aMessage)
Adds the specified warning message.
|
boolean |
hasErrorsOnNode()
Returns
true if the current node has errors. |
getAdaptationInstance, getAdaptationTable, getHome, getNode, getNode, getValue, getValue, getValue
void addMessage(UserMessage msg)
This method creates a new validation item
whose subject
is the node that is currently being validated.
The validation item is also included in the node, so that it can be accessed using the method
Adaptation.getValidationReportForNode(com.orchestranetworks.schema.SchemaNode, 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 necessary to manually include this contextual information in the message argument.
On user input validation (not in the global validation report), the display of the messages associated with the current node behaves as follows:
Consequently, not all specified validation messages may be displayed on the associated user interface component. However, they will be displayed at the record level if the current node is in a record, or at root level if the current node is not in a record.
void addError(String aMessage)
addMessage(UserMessage)
void addInfo(String aMessage)
addMessage(UserMessage)
void addWarning(String aMessage)
addMessage(UserMessage)
boolean hasErrorsOnNode()
true
if the current node has errors.