Class SortOrder

    • 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 and DESCENDING for our code list. The original XML schema matches the SQL convention of ASC and DESC.

      • values

        public static SortOrder[] values()
        Returns the list of SortOrders.
        Returns:
        the list of codes declared in the current JVM.
      • family

        public SortOrder[] family()
        Returns the list of codes of the same kind than this code list element. Invoking this method is equivalent to invoking values(), except that this method can be invoked on an instance of the parent CodeList class.
        Specified by:
        family in interface ControlledVocabulary
        Specified by:
        family in class CodeList<SortOrder>
        Returns:
        all code values for this code list.
      • valueOf

        public static SortOrder valueOf​(String code)
        Returns the sort order that matches the given string, or returns a new one if none match it. More specifically, this methods returns the first instance for which name().equals(code) returns true. If no existing instance is found, then a new one is created for the given name.
        Parameters:
        code - the name of the code to fetch or to create.
        Returns:
        a code matching the given name.