public class XPFCategory extends Object
Modifier and Type | Field and Description |
---|---|
private @NonNull Map<Locale,Map<String,XPFAttributeValue>> |
attributeValues
The category attribute value map of maps keyed by Locale and then by attribute key.
|
private @NonNull XPFCatalog |
catalog
The associated catalog.
|
private @NonNull String |
code
The category code.
|
private @NonNull Map<Locale,String> |
displayNames
The category display name.
|
Constructor and Description |
---|
XPFCategory() |
Modifier and Type | Method and Description |
---|---|
Optional<XPFAttributeValue> |
getAttributeValueByKey(String key,
Locale locale)
Returns the attribute value with the passed key (case insensitive match) and locale.
|
Optional<String> |
getDisplayName(Locale locale)
Get localized display name for a locale with fallback behavior.
|
@NonNull private final @NonNull String code
@NonNull private final @NonNull Map<Locale,String> displayNames
@NonNull private final @NonNull Map<Locale,Map<String,XPFAttributeValue>> attributeValues
@NonNull private final @NonNull XPFCatalog catalog
public Optional<XPFAttributeValue> getAttributeValueByKey(String key, Locale locale)
key
- the attribute keylocale
- the attribute value localeCopyright © 2022. All rights reserved.