Package org.geotools.api.filter.sort
Class SortOrder
- All Implemented Interfaces:
Serializable,Comparable<SortOrder>
- Since:
- GeoAPI 2.1
- Author:
- Jody Garnett (Refractions Research)
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfamily()Returns the list of enumerations of the same kind than this enum.toSQL()Returns the element name for this sorting order as a SQL"ASC"or"DESC"keyword.static SortOrderReturns the sort order that matches the given string, or returns a new one if none match it.static SortOrder[]values()Returns the list ofSortOrders.
-
Field Details
-
ASCENDING
@UML(identifier="ASC", obligation=CONDITIONAL, specification=OGC_02059) public static final SortOrder ASCENDINGRepresents 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 DESCENDINGRepresents descending order.Note this has the string representation of
"DESC"to agree with the Filter 1.1 specification.
-
-
Method Details
-
toSQL
Returns the element name for this sorting order as a SQL"ASC"or"DESC"keyword.We have chosen to use the full names
ASCENDINGandDESCENDINGfor our code list. The original XML schema matches the SQL convention ofASCandDESC. -
values
Returns the list ofSortOrders.- Returns:
- The list of codes declared in the current JVM.
-
family
Returns the list of enumerations of the same kind than this enum. -
valueOf
Returns the sort order that matches the given string, or returns a new one if none match it.- Parameters:
code- The name of the code to fetch or to create.- Returns:
- A code matching the given name.
-