Class AuthorityCodesReport.Row

    • Field Summary

      Fields 
      Modifier and Type Field Description
      char annotation
      A small symbol to put before the code and name, or 0 (the default) if none.
      String code
      The authority code in HTML.
      boolean hasError
      true if an exception occurred while creating the identified object.
      boolean isDeprecated
      true if this authority code is deprecated, or false otherwise.
      boolean isSectionHeader
      true if this row should actually be used as a section header.
      String name
      The object name in HTML, or null if none.
      String remark
      A remark in HTML to display after the name, or null if none.
    • Constructor Summary

      Constructors 
      Constructor Description
      Row()
      Creates a new row with all fields initialized to null or false.
    • Constructor Detail

      • Row

        public Row()
        Creates a new row with all fields initialized to null or false.
    • Method Detail

      • compareTo

        public int compareTo​(AuthorityCodesReport.Row o)
        Compares this row with the given one for order. The default implementation splits the code spaces (or scopes) from the codes using the ":" separator, then compares each elements. This method tries to compare the elements as numeric values if possible (i.e. 4326 is less than 27561). If the codes can not be compared as numerical values, then they are compared as strings using a case-insensitive comparator.

        Subclasses can override this method if they want a different rows ordering.

        Specified by:
        compareTo in interface Comparable<AuthorityCodesReport.Row>
        Parameters:
        o - the other row to compare with this row.
        Returns:
        -1 for sorting this row before the given row, +1 for sorting it after, or 0 if the two rows have equal ordering.
      • toString

        public String toString()
        Returns a string representation of this row, for debugging purpose only.
        Overrides:
        toString in class Object
        Returns:
        an arbitrary string representation of this row.