public class I18nNotice extends I18nMessage
specified message for user to know what and why. - type - notice type, 'Validation', 'IllegalArgument', 'IllegalState' - target - target input name, 'city', 'tab1.zipcode' - message - default i18n message - i18nCode - i18n template code - i18nArgs - i18n template args
| Modifier and Type | Class and Description |
|---|---|
static class |
I18nNotice.Type
the notice type that should be able to locate the input
|
I18nAware.I18nSource| Modifier and Type | Field and Description |
|---|---|
protected String |
target |
protected String |
type |
i18nArgs, i18nCode, message| Constructor and Description |
|---|
I18nNotice() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getTarget() |
String |
getType() |
int |
hashCode() |
static @NotNull I18nNotice |
of(@NotNull I18nAware i18n) |
static @NotNull I18nNotice |
of(@NotNull I18nNotice i18n) |
I18nNotice |
setTarget(String target) |
I18nNotice |
setType(String type) |
String |
toString() |
applyLocale, getI18nArgs, getI18nCode, getI18nHint, getMessage, setI18nArgs, setI18nCode, setMessage, setMessageBy, setMessageBy, setMessageBy, setMessageByclone, finalize, getClass, notify, notifyAll, wait, wait, waitcastgetI18nArgsIf, getI18nArgsOr, getI18nCodeIf, getI18nCodeOr, getI18nHintIf, getI18nHintOr, toI18nString, toI18nString, toI18nString, toString, toString, toStringpublic String getType()
@Contract(value="_->this") public I18nNotice setType(String type)
public String getTarget()
@Contract(value="_->this") public I18nNotice setTarget(String target)
public boolean equals(Object o)
equals in class I18nMessagepublic int hashCode()
hashCode in class I18nMessagepublic String toString()
toString in class I18nMessage@NotNull public static @NotNull I18nNotice of(@NotNull @NotNull I18nAware i18n)
@NotNull public static @NotNull I18nNotice of(@NotNull @NotNull I18nNotice i18n)
Copyright © 2025. All rights reserved.