Package org.xwiki.livedata
Class LiveDataQuery.SortEntry
- java.lang.Object
-
- org.xwiki.livedata.LiveDataQuery.SortEntry
-
- Enclosing class:
- LiveDataQuery
public static class LiveDataQuery.SortEntry extends Object
A sort entry.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getProperty()
boolean
isDescending()
void
setDescending(boolean descending)
Sets the sort direction.void
setProperty(String property)
Sets the property to sort on.
-
-
-
Constructor Detail
-
SortEntry
public SortEntry()
Default constructor.
-
SortEntry
public SortEntry(String property)
Creates a new sort entry for the specified property.- Parameters:
property
- the property to sort on
-
SortEntry
public SortEntry(String property, boolean descending)
Creates a new sort entry for the specified property and sort order.- Parameters:
property
- the property to sort ondescending
- the sort direction
-
-
Method Detail
-
getProperty
public String getProperty()
- Returns:
- the property to sort on
-
setProperty
public void setProperty(String property)
Sets the property to sort on.- Parameters:
property
- the property name
-
isDescending
public boolean isDescending()
- Returns:
- the sort direction
-
setDescending
public void setDescending(boolean descending)
Sets the sort direction.- Parameters:
descending
- the new sort direction
-
-