public interface IKeyTerm
EnumUserType
.
The key may also be used for other purposes.
The key must be unique within the enumeration.
The interface also provides a human readable representation with i18n support.
IMPORTANT: classes implementing this interface must also implement a static method
getByKey(String)
which returns the according instance. This can not be
guaranteed by the interface as interfaces do not allow definitions of static methods.Modifier and Type | Method and Description |
---|---|
java.lang.String |
getKey()
Returns the key for the enumeration.
|
java.lang.String |
getMessage()
Returns a human readable label preferably for the default language.
|
java.lang.String |
getMessage(Language language)
Returns a human readable label preferably for the given language.
|
java.lang.String getKey()
java.lang.String getMessage()
java.lang.String getMessage(Language language)
Copyright © 2007-2020 EDIT. All Rights Reserved.