@Immutable @MustImplementEqualsAndHashcode public class DynamicHasErrorTextWithArgs extends Object implements IHasErrorText
IHasErrorText that encapsulates arguments
to be put into the message.| Constructor and Description |
|---|
DynamicHasErrorTextWithArgs(IHasDisplayText aParentText,
Object... aArgs) |
DynamicHasErrorTextWithArgs(IHasText aParentText,
Object... aArgs) |
| Modifier and Type | Method and Description |
|---|---|
Object[] |
getAllArgs()
Get all arguments from the constructor.
|
String |
getDisplayText(Locale aContentLocale) |
IHasText |
getParentText() |
boolean |
isMultiLingual() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAsHasText, getComparatorCollatingpublic DynamicHasErrorTextWithArgs(@Nonnull IHasDisplayText aParentText, @Nonnull @Nonempty Object... aArgs)
@Nonnull @Nonempty @ReturnsMutableCopy public Object[] getAllArgs()
null nor empty-@Nullable public String getDisplayText(@Nonnull Locale aContentLocale)
getDisplayText in interface IHasDisplayTextaContentLocale - The locale to be used for resolving. May not be null.null if the text could not be resolved in the passed
locale.public boolean isMultiLingual()
isMultiLingual in interface IHasErrorTexttrue if the error text is multilingual,
false otherwise.Copyright © 2014–2019 Philip Helger. All rights reserved.