ErrorList instead.@NotThreadSafe @Deprecated public class ErrorList extends Object implements IErrorList, IClearable, ICloneable<ErrorList>
| Constructor and Description |
|---|
ErrorList()
Deprecated.
|
ErrorList(ErrorList aErrorList)
Deprecated.
|
ErrorList(IError... aErrorList)
Deprecated.
|
ErrorList(IErrorList aErrorList)
Deprecated.
|
ErrorList(Iterable<? extends IError> aErrorList)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(IError aItem)
Deprecated.
Add a new item.
|
void |
addAll(IError... aErrorList)
Deprecated.
|
void |
addAll(IErrorList aErrorList)
Deprecated.
|
void |
addAll(Iterable<? extends IError> aErrorList)
Deprecated.
|
void |
addError(String sText)
Deprecated.
|
void |
addError(String sFieldName,
String sText)
Deprecated.
|
void |
addError(String sID,
String sFieldName,
String sText)
Deprecated.
|
void |
addInfo(String sText)
Deprecated.
|
void |
addInfo(String sFieldName,
String sText)
Deprecated.
|
void |
addInfo(String sID,
String sFieldName,
String sText)
Deprecated.
|
void |
addSuccess(String sText)
Deprecated.
|
void |
addSuccess(String sFieldName,
String sText)
Deprecated.
|
void |
addSuccess(String sID,
String sFieldName,
String sText)
Deprecated.
|
void |
addWarning(String sText)
Deprecated.
|
void |
addWarning(String sFieldName,
String sText)
Deprecated.
|
void |
addWarning(String sID,
String sFieldName,
String sText)
Deprecated.
|
EChange |
clear()
Deprecated.
Reset the contents of the element to the after-construction state.
|
boolean |
equals(Object o)
Deprecated.
|
void |
forEachItem(Consumer<? super IError> aConsumer)
Deprecated.
|
ICommonsList<IError> |
getAllItems()
Deprecated.
|
ICommonsList<String> |
getAllItemTexts()
Deprecated.
|
ICommonsList<String> |
getAllItemTextsOfField(String sSearchFieldName)
Deprecated.
Get a list with all texts for the specified field name.
|
ICommonsList<String> |
getAllItemTextsOfFields(String... aSearchFieldNames)
Deprecated.
Get a list with all texts for the specified field names
|
ICommonsList<String> |
getAllItemTextsOfFieldsRegExp(String sRegEx)
Deprecated.
Get a list with all texts of entries that have field names matching the
passed regular expression.
|
ICommonsList<String> |
getAllItemTextsOfFieldsStartingWith(String... aSearchFieldNames)
Deprecated.
Get a list with all texts of entries that have field names starting with
one of the supplied names.
|
ErrorList |
getClone()
Deprecated.
|
ErrorList |
getListOfField(String sSearchFieldName)
Deprecated.
Get a sub-list with all entries for the specified field name
|
ErrorList |
getListOfFields(String... aSearchFieldNames)
Deprecated.
Get a sub-list with all entries for the specified field names
|
ErrorList |
getListOfFieldsRegExp(String sRegExp)
Deprecated.
Get a sub-list with all entries that have field names matching the passed
regular expression.
|
ErrorList |
getListOfFieldsStartingWith(String... aSearchFieldNames)
Deprecated.
Get a sub-list with all entries that have field names starting with one of
the supplied names.
|
ErrorList |
getListWithoutField()
Deprecated.
|
IErrorLevel |
getMostSevereErrorLevel()
Deprecated.
Get the most severe error level within this object.
|
int |
getSize()
Deprecated.
|
boolean |
hasEntryForField(String sSearchFieldName)
Deprecated.
Check if any entry for the specified field is present
|
boolean |
hasEntryForField(String sSearchFieldName,
IErrorLevel aErrorLevel)
Deprecated.
Check if any entry for the specified field and the specified error level is
present
|
int |
hashCode()
Deprecated.
|
boolean |
hasNoEntryForField(String sSearchFieldName)
Deprecated.
Check if no entry for the specified field is present
|
boolean |
isEmpty()
Deprecated.
|
Iterator<IError> |
iterator()
Deprecated.
|
EChange |
remove(IError aError)
Deprecated.
|
EChange |
removeAll(IError... aErrors)
Deprecated.
|
EChange |
removeAll(Iterable<? extends IError> aErrors)
Deprecated.
|
EChange |
removeIf(Predicate<? super IError> aFilter)
Deprecated.
|
String |
toString()
Deprecated.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetGroupedByFieldName, getGroupedByID, getItemCountcontainsAtLeastOneError, containsAtLeastOneFailure, containsAtLeastOneSuccess, containsAtLeastOneWarningOrError, containsNoError, containsNoFailure, containsNoSuccess, containsOnlyError, containsOnlyFailure, containsOnlySuccess, getErrorCount, getFailureCount, getSuccessCount, hasErrorsOrWarningscontainsAny, containsNone, containsOnly, findAll, findAllInstanceOf, findAllMapped, findAllMapped, findAllMapped, findFirst, findFirst, findFirstMapped, findFirstMapped, forEach, forEach, forEachBreakable, getIteratorCount, getIteratorCountforEach, spliteratorhasEntryForFields, hasNoEntryForFieldsisNotEmptypublic ErrorList()
public ErrorList(@Nullable IErrorList aErrorList)
public final void addAll(@Nullable IErrorList aErrorList)
public final void add(@Nonnull IError aItem)
aItem - The item to be added. May not be null.public void addSuccess(@Nullable String sFieldName, @Nonnull @Nonempty String sText)
public void addSuccess(@Nullable String sID, @Nullable String sFieldName, @Nonnull @Nonempty String sText)
public void addInfo(@Nullable String sFieldName, @Nonnull @Nonempty String sText)
public void addInfo(@Nullable String sID, @Nullable String sFieldName, @Nonnull @Nonempty String sText)
public void addWarning(@Nullable String sFieldName, @Nonnull @Nonempty String sText)
public void addWarning(@Nullable String sID, @Nullable String sFieldName, @Nonnull @Nonempty String sText)
public void addError(@Nullable String sFieldName, @Nonnull @Nonempty String sText)
public void addError(@Nullable String sID, @Nullable String sFieldName, @Nonnull @Nonempty String sText)
public boolean isEmpty()
isEmpty in interface IHasSizetrue if no items are present, false if at
least a single item is present.IHasSize.getSize(),
IHasSize.isNotEmpty()@Nonnegative public int getSize()
@Nonnull public IErrorLevel getMostSevereErrorLevel()
IHasErrorLevelsEErrorLevel's severity model.getMostSevereErrorLevel in interface IHasErrorLevels<IError>EErrorLevel.SUCCESS if no error is contained, the most
severe contained error level otherwise.@Nonnull @ReturnsMutableCopy public ICommonsList<String> getAllItemTexts()
getAllItemTexts in interface IErrorListnull list of all contained texts, independent of
the level.@Nonnull @ReturnsMutableCopy public ICommonsList<IError> getAllItems()
getAllItems in interface IErrorListnull.@Nonnull @ReturnsMutableCopy public ErrorList getListWithoutField()
getListWithoutField in interface IErrorListpublic boolean hasNoEntryForField(@Nullable String sSearchFieldName)
IFieldErrorListhasNoEntryForField in interface IFieldErrorList<IError>sSearchFieldName - The field name to search.true if no entry for the specified field is presentpublic boolean hasEntryForField(@Nullable String sSearchFieldName)
IFieldErrorListhasEntryForField in interface IFieldErrorList<IError>sSearchFieldName - The field name to search.true if an entry for the specified field is presentpublic boolean hasEntryForField(@Nullable String sSearchFieldName, @Nullable IErrorLevel aErrorLevel)
IFieldErrorListhasEntryForField in interface IFieldErrorList<IError>sSearchFieldName - The field name to search.aErrorLevel - The exact form error level to search. May not be nulltrue if an entry for the specified field is present
that has exactly the specified form error level@Nonnull @ReturnsMutableCopy public ErrorList getListOfField(@Nullable String sSearchFieldName)
IFieldErrorListgetListOfField in interface IFieldErrorList<IError>sSearchFieldName - The field name to search.null.@Nonnull @ReturnsMutableCopy public ErrorList getListOfFields(@Nullable String... aSearchFieldNames)
IFieldErrorListgetListOfFields in interface IFieldErrorList<IError>aSearchFieldNames - The field names to search.null.@Nonnull @ReturnsMutableCopy public ErrorList getListOfFieldsStartingWith(@Nullable String... aSearchFieldNames)
IFieldErrorListgetListOfFieldsStartingWith in interface IFieldErrorList<IError>aSearchFieldNames - The field names to search.null.@Nonnull @ReturnsMutableCopy public ErrorList getListOfFieldsRegExp(@Nonnull @Nonempty @RegEx String sRegExp)
IFieldErrorListgetListOfFieldsRegExp in interface IFieldErrorList<IError>sRegExp - The regular expression to compare the entries against.null.@Nonnull @ReturnsMutableCopy public ICommonsList<String> getAllItemTextsOfField(@Nullable String sSearchFieldName)
IFieldErrorListgetAllItemTextsOfField in interface IFieldErrorList<IError>sSearchFieldName - The field name to search.null.@Nonnull @ReturnsMutableCopy public ICommonsList<String> getAllItemTextsOfFields(@Nullable String... aSearchFieldNames)
IFieldErrorListgetAllItemTextsOfFields in interface IFieldErrorList<IError>aSearchFieldNames - The field names to search.null.@Nonnull @ReturnsMutableCopy public ICommonsList<String> getAllItemTextsOfFieldsStartingWith(@Nullable String... aSearchFieldNames)
IFieldErrorListgetAllItemTextsOfFieldsStartingWith in interface IFieldErrorList<IError>aSearchFieldNames - The field names to search.null.@Nonnull @ReturnsMutableCopy public ICommonsList<String> getAllItemTextsOfFieldsRegExp(@Nonnull @Nonempty @RegEx String sRegEx)
IFieldErrorListgetAllItemTextsOfFieldsRegExp in interface IFieldErrorList<IError>sRegEx - The regular expression to compare the entries against.null.@Nonnull public EChange removeAll(@Nullable Iterable<? extends IError> aErrors)
@Nonnull public EChange clear()
IClearableclear in interface IClearableEChange.CHANGED if at least one element was cleared,
EChange.UNCHANGED otherwise.@Nonnull public ErrorList getClone()
getClone in interface ICloneable<ErrorList>Copyright © 2014–2016 Philip Helger. All rights reserved.