public interface ValidationFailure extends Message
validation
.TYPE_INFORMATION, TYPE_TECHNICAL_ERROR, TYPE_USER_ERROR, TYPE_VALIDATION_FAILURE, TYPE_WARNING
Modifier and Type | Method and Description |
---|---|
String |
getCode()
This method gets the code of this
ValidationFailure . |
String |
getMessage()
This method gets the message of the validation failure.
|
String |
getMessage(Locale locale)
|
String |
getSource()
This method gets the (optional)
source of the validation. |
getDetails, getType, getUuid
String getSource()
source
of the validation. It
describes the origin of the given value
. This may be the filename where the value was read from, an XPath
where the value was located in an XML document, etc. It can be used to enrich messages
displayed to end-users. This will help to find the problem easier.String getMessage()
usage
the message may also contain the name of the field or
other context information in order to determine the source of the problem.getMessage
in interface AttributeReadMessage
Throwable.getMessage()
,
NlsThrowable
,
Message
String getMessage(Locale locale)
message
localized for the given Locale
. getMessage()
ignoring the lcoale.getMessage
in interface Message
locale
- is the Locale
.String getCode()
ValidationFailure
. The code is a stable identifier that
indicates the type of the failure. It can be used for automated testing in order to make the test-cases independent
from the actual message texts so they are maintainable and will not break e.g. if typos are fixed in the messages.getCode
in interface AttributeReadMessageCode
Throwable.getMessage()
,
NlsThrowable
,
Message
Copyright © 2001–2016 mmm-Team. All rights reserved.