|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- the type of Enums used to defined the propertiespublic interface Translator<T extends Enum<T>>
This interface defines the functionality required to translate back and forth
between key constants (Enums) and property names.
It is required that any implementation be thread safe.
Method Summary | |
---|---|
T |
getPropertyKey(String propertyName)
This method translates the string property name into an Enum key that is used to reference the property via the properties management API. |
String |
getPropertyName(T propertyKey)
This method translates the Enum key into a string property name that is used in the properties file. |
Method Detail |
---|
String getPropertyName(T propertyKey)
PropertiesManager
API will
take care of reading and writing the actual file.
propertyKey
- the Enum key to be translated into a property name
T getPropertyKey(String propertyName)
PropertiesManager
API will take care of reading and writing
the actual file.
propertyName
- the property name to be translated into an Enum key constant
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |