- Alle bekannten Implementierungsklassen:
Cmd,PropertyEntry,UtilSetting
public interface KeyAble
UtilSetting can not be inherited because it is an enum.
This interface circumvents this restriction.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungdefault booleancheckValueType(Object valueObject) Has the value given as parameter the type given be the default value?default ObjectA typical implementation, e. g. enum UtilSetting, has a default value that defines the type of the value as well.default booleanA menu entry may be invisible.default Stringkey()In case of Setting the key consists of the enum class name and the enum instance name.default StringAugment the key of the command by placeholdes for logging messages (e. g. "%1$s").default intA NLS logging message may have up to 4 parameters.default Stringname()The implementation, e. g. enum UtilSetting, has this method to return the name of the enum instance (e. g.
-
Methodendetails
-
checkValueType
Has the value given as parameter the type given be the default value?- Parameter:
valueObject- the value to be checked (effectively a String)- Gibt zurück:
- if the value is correct
-
getDefault
A typical implementation, e. g. enum UtilSetting, has a default value that defines the type of the value as well.- Gibt zurück:
- the default value of the enum instance
-
name
The implementation, e. g. enum UtilSetting, has this method to return the name of the enum instance (e. g. BeepLevel) without package name.- Gibt zurück:
- the name
-
isInvisible
default boolean isInvisible()A menu entry may be invisible.- Gibt zurück:
- menu entry is invisible.
-
key
In case of Setting the key consists of the enum class name and the enum instance name.- Gibt zurück:
- the key (e. g. "de.zocher_regel.util.UtilSetting.BeepLevel")
-
keyWithPlaceholders
Augment the key of the command by placeholdes for logging messages (e. g. "%1$s"). The number of placeholders is given by the method msgParmsCount().- Gibt zurück:
- Key with format string for NLS enabled logging messages. The may have up to 4 parameters.
-
msgParmsCount
default int msgParmsCount()A NLS logging message may have up to 4 parameters.- Gibt zurück:
- 0 there are no parameters by default)
-