Package org.ametys.cms.search.model
Interface ResultField
-
- All Superinterfaces:
Field
- All Known Subinterfaces:
MetadataResultField,SearchUIColumn,SystemResultField
- All Known Implementing Classes:
AbstractSearchUIColumn,MetadataSearchUIColumn,SystemSearchUIColumn
public interface ResultField extends Field
Represents a Field to be returned by a search.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ObjectgetFullValue(Content content, Locale defaultLocale)Get the value represented by this field in the given result content.StringgetId()Get the result field ID.SearchFieldgetSearchField()Get theSearchFieldrepresenting this result field.ObjectgetValue(Content content, Locale defaultLocale)Get the value represented by this field in the given result content.-
Methods inherited from interface org.ametys.cms.search.model.Field
getContentTypeId, getEnumerator, getType, isMultiple
-
-
-
-
Method Detail
-
getValue
Object getValue(Content content, Locale defaultLocale)
Get the value represented by this field in the given result content.- Parameters:
content- the result content.defaultLocale- the default locale for localized value if the content's language is null- Returns:
- the content field value (cast to the appropriate object).
-
getFullValue
default Object getFullValue(Content content, Locale defaultLocale)
Get the value represented by this field in the given result content.- Parameters:
content- the result content.defaultLocale- the default locale for localized value if the content's language is null- Returns:
- the content field value (cast to the appropriate object).
-
getSearchField
SearchField getSearchField()
Get theSearchFieldrepresenting this result field.- Returns:
- The
SearchFieldrepresenting this result field.
-
-