public class ComposedValidationFailure extends AbstractValidationFailure
ValidationFailure that represents the composition of other
ValidationFailures.| Modifier and Type | Field and Description |
|---|---|
private ValidationFailure[] |
failures |
private static long |
serialVersionUID
UID for serialization.
|
TYPE_INFORMATION, TYPE_TECHNICAL_ERROR, TYPE_USER_ERROR, TYPE_VALIDATION_FAILURE, TYPE_WARNING| Modifier | Constructor and Description |
|---|---|
protected |
ComposedValidationFailure()
The constructor for de-serialization in GWT.
|
|
ComposedValidationFailure(String code,
Object source,
ValidationFailure[] failures)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDetails()
This method gets optional details for this message.
|
ValidationFailure |
getFailure(int index)
Gets the
ValidationFailure at the given index. |
int |
getFailureCount() |
String |
getMessage(Locale locale)
|
protected String |
getSeparator() |
getTypegetCode, getMessage, getSource, getUuid, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCode, getMessage, getSourceprivate static final long serialVersionUID
private ValidationFailure[] failures
getFailure(int)protected ComposedValidationFailure()
public ComposedValidationFailure(String code, Object source, ValidationFailure[] failures)
code - is the code.source - is the source.failures - are the individual ValidationFailures.protected String getSeparator()
StringUtil.LINE_SEPARATOR_LF).public int getFailureCount()
failures.getFailure(int),
Collection.size()public ValidationFailure getFailure(int index)
ValidationFailure at the given index.index - is the index of the ValidationFailure to get.ValidationFailure.List.get(int)public String getDetails()
getDetails in interface MessagegetDetails in class AbstractMessagenull if no additional details are available.public String getMessage(Locale locale)
message localized for the given Locale. NLS. On
client side (e.g. for GWT clients) only a single locale may be supported at a time and this method may
behave like AttributeReadMessage.getMessage() ignoring the Locale.getMessage in interface MessagegetMessage in interface ValidationFailuregetMessage in class AbstractMessagelocale - is the Locale.Copyright © 2001–2015 mmm-Team. All rights reserved.