public final class FilterColumn extends Object
Filter
column.Modifier and Type | Field and Description |
---|---|
static String |
ASC |
static String |
DESC |
static Set<String> |
DIRECTIONS |
Modifier and Type | Method and Description |
---|---|
static FilterColumn |
create(String family,
String key,
String sortDirection,
boolean variation)
Creates a new
FilterColumn . |
String |
getFamily()
Get the the column's family.
|
String |
getKey()
Get the the column's key.
|
String |
getSortDirection()
Get the the column's sort direction.
|
boolean |
isVariation()
A column can be based on the variation of a value rather than on the value itself.
|
public static final String ASC
public static final String DESC
public static final Set<String> DIRECTIONS
public static FilterColumn create(String family, String key, String sortDirection, boolean variation)
FilterColumn
.
Valid values for the sortDirection
are "ASC", "DESC"
When the @{see Filter} is persisted, a validation is made on the family
and the key
.
They should point to a valid column description.
IllegalArgumentException
- if sortDirection
is not validpublic String getSortDirection()
public boolean isVariation()
true
when the variation is used rather than the valueCopyright © 2009-2012 SonarSource. All Rights Reserved.