Package org.ametys.odf.enumeration
Class OdfReferenceTableHelper.SortField
java.lang.Object
org.ametys.odf.enumeration.OdfReferenceTableHelper.SortField
- Enclosing class:
- OdfReferenceTableHelper
This class represents a sort field for reference table.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the order for sorting resultsgetName()Get the name of the sort fieldbooleanReturn the normalize status for this sort field
-
Constructor Details
-
SortField
Create a sort field- Parameters:
name- the name of field to sort onascending-trueto sort in ascending order,falseotherwise
-
SortField
Create a sort field- Parameters:
name- the name of field to sort onascending-trueto sort in ascending order,falseotherwisenormalize-trueto normalize string properties (remove accents and lower case)
-
-
Method Details
-
getName
Get the name of the sort field- Returns:
- the name of the sort field
-
getAscending
Get the order for sorting results- Returns:
trueto sort results in ascending order,falseotherwise
-
getNormalize
Return the normalize status for this sort field- Returns:
trueif string properties should be normalized (remove accents and lower case)
-