public class ProjectLanguagesEnumerator extends AbstractLogEnabled implements Enumerator, Serviceable
Modifier and Type | Field and Description |
---|---|
private LanguagesManager |
_languagesManager |
Constructor and Description |
---|
ProjectLanguagesEnumerator() |
Modifier and Type | Method and Description |
---|---|
Map<Object,I18nizableText> |
getEntries()
Provides the enumerated values with their optional label.
|
I18nizableText |
getEntry(String code)
Retrieves a single label from a value.
|
void |
service(ServiceManager manager) |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConfiguration
private LanguagesManager _languagesManager
public ProjectLanguagesEnumerator()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public I18nizableText getEntry(String code) throws Exception
Enumerator
getEntry
in interface Enumerator
code
- the value.null
if not found.Exception
- if an error occurs.public Map<Object,I18nizableText> getEntries() throws Exception
Enumerator
getEntries
in interface Enumerator
Exception
- if an error occurs.