Package org.geotools.api.filter.sort
Class SortOrder
-
- All Implemented Interfaces:
Serializable
,Comparable<SortOrder>
public final class SortOrder extends CodeList<SortOrder>
- Since:
- GeoAPI 2.1
- Author:
- Jody Garnett (Refractions Research)
- See Also:
- , Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static SortOrder
ASCENDING
Represents acending order.static SortOrder
DESCENDING
Represents descending order.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SortOrder[]
family()
Returns the list of enumerations of the same kind than this enum.String
toSQL()
Returns the element name for this sorting order as a SQL"ASC"
or"DESC"
keyword.static SortOrder
valueOf(String code)
Returns the sort order that matches the given string, or returns a new one if none match it.static SortOrder[]
values()
Returns the list ofSortOrder
s.
-
-
-
Field Detail
-
ASCENDING
@UML(identifier="ASC", obligation=CONDITIONAL, specification=OGC_02059) public static final SortOrder ASCENDING
Represents acending order.Note this has the string representation of
"ASC"
to agree with the Filter 1.1 specification.
-
DESCENDING
@UML(identifier="DESC", obligation=CONDITIONAL, specification=OGC_02059) public static final SortOrder DESCENDING
Represents descending order.Note this has the string representation of
"DESC"
to agree with the Filter 1.1 specification.
-
-
Method Detail
-
toSQL
public String toSQL()
Returns the element name for this sorting order as a SQL"ASC"
or"DESC"
keyword.We have chosen to use the full names
ASCENDING
andDESCENDING
for our code list. The original XML schema matches the SQL convention ofASC
andDESC
.
-
values
public static SortOrder[] values()
Returns the list ofSortOrder
s.- Returns:
- The list of codes declared in the current JVM.
-
family
public SortOrder[] family()
Returns the list of enumerations of the same kind than this enum.
-
-