Interface AttributeValueGetter
-
- All Known Subinterfaces:
AttributeValueAccessor
- All Known Implementing Classes:
ClassificationAttributeValueAccessor,DelegatingAttributeValueAccessor,NullAttributeValueAccessor,NullAttributeValueGetter,StandardAttributeValueAccessor
public interface AttributeValueGetterAn AttributeValueGetter provides get access to an attribute's value
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.ObjectgetValue(java.lang.Object model)Gets the value from the givenObjectusing the default localejava.lang.ObjectgetValue(java.lang.Object model, java.util.Locale locale)Gets the value from the givenObjectusing the specified localejava.util.Map<java.util.Locale,java.lang.Object>getValues(java.lang.Object model, java.util.Locale... locales)Gets the values from the givenObjectusing the specified locales
-
-
-
Method Detail
-
getValue
java.lang.Object getValue(java.lang.Object model)
Gets the value from the givenObjectusing the default locale- Parameters:
model- Reference to the model that contains the value to retrieve from- Returns:
- The value or null
-
getValue
java.lang.Object getValue(java.lang.Object model, java.util.Locale locale)Gets the value from the givenObjectusing the specified locale- Parameters:
model- Reference to the model that contains the value to retrieve fromlocale- The locale of the value to retrieve- Returns:
- The value or null
-
getValues
java.util.Map<java.util.Locale,java.lang.Object> getValues(java.lang.Object model, java.util.Locale... locales)Gets the values from the givenObjectusing the specified locales- Parameters:
model- Reference to the model that contains the value to retrieve fromlocales- The locales of the value to retrieve- Returns:
- A map of localized values
-
-