public abstract class AbstractBasicStatusFlag
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DISABLED
The extension appended to the i18n base tag if this flag is disabled.
|
static java.lang.String |
ENABLED
The extension appended to the i18n base tag if this flag is enabled.
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractBasicStatusFlag(java.lang.String basetag)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBaseTag()
Get the i18n tag for the flag description.
|
java.lang.String |
getDescription(boolean set)
Get the internationalized description of this flag depending
whether it is set or not, using the default locale.
|
java.lang.String |
getDescription(boolean set,
java.util.Locale locale)
Get the internationalized description of this flag depending
whether it is set or not.
|
java.lang.String |
getI18nTag(boolean set)
Get the i18n tag of this flag depending
whether it is set or not.
|
public static final java.lang.String ENABLED
public static final java.lang.String DISABLED
protected AbstractBasicStatusFlag(@NotNull java.lang.String basetag)
basetag
- i18n tag start. Depending on the value of the flag this will@NotNull public java.lang.String getBaseTag()
@NotNull public java.lang.String getI18nTag(boolean set)
set
- is this flag set?public java.lang.String getDescription(boolean set)
set
- is this flag set?public java.lang.String getDescription(boolean set, java.util.Locale locale)
set
- is this flag set?locale
- locale to use