Package net.solarnetwork.domain
Interface LocalizedServiceInfo
- All Superinterfaces:
Comparable<String>,Identity<String>
- All Known Subinterfaces:
ConfigurableLocalizedServiceInfo
- All Known Implementing Classes:
BasicConfigurableLocalizedServiceInfo,BasicLocalizedServiceInfo
API for information about a service that has been localized.
This API does not provide a way to localize the information. Rather, it is a marker for an instance that has already been localized. This is designed to support APIs that can localize objects based on a requested locale.
- Since:
- 1.43
- Version:
- 1.1
- Author:
- matt
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classComparator for a case-insensitive order based on localized names. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Comparator<LocalizedServiceInfo>A comparator for ordering by localized names in a case-insensitive manner. -
Method Summary
Modifier and TypeMethodDescriptionGet the locale used for this information.Get a localized description of the service.Get a map of other localized information.Get a localized name for the service.Methods inherited from interface java.lang.Comparable
compareTo
-
Field Details
-
SORT_BY_NAME
A comparator for ordering by localized names in a case-insensitive manner.- Since:
- 1.1
-
-
Method Details
-
getLocale
String getLocale()Get the locale used for this information.- Returns:
- the locale
-
getLocalizedName
String getLocalizedName()Get a localized name for the service.- Returns:
- the service name
-
getLocalizedDescription
String getLocalizedDescription()Get a localized description of the service.- Returns:
- the service description
-
getLocalizedInfoMessages
Get a map of other localized information.The keys in the returned map are service-dependent and defined in advance so they are well-known. The values represent localized messages associated with those well-known keys.
- Returns:
- a map of messages, never null
-