Interface SortStatementFormatter
-
- All Known Implementing Classes:
DefaultSortStatementFormatter,ItemtypeSortStatementFormatter,StringSortStatementFormatter
public interface SortStatementFormatterThe formatter detects if a custom sort statement should be used given a special condition is fulfilled.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringformatSortStatement(Sort sort)Format the sort parameter of the providedSortobject.booleanisApplicable(AttributeDescriptorModel attributeDescriptor)Determines if a custom sort statement formatter should be applied given theAttributeDescriptorModelprovided.
-
-
-
Method Detail
-
isApplicable
boolean isApplicable(AttributeDescriptorModel attributeDescriptor)
Determines if a custom sort statement formatter should be applied given theAttributeDescriptorModelprovided.- Parameters:
attributeDescriptor- the attribute descriptor model used to evaluate the condition- Returns:
- true when the condition is met and the sort parameter should be formatted using
formatSortStatement(Sort); false otherwise
-
-