Class MetadataBuilder.LegalSymbols

java.lang.Object
org.apache.sis.internal.storage.MetadataBuilder.LegalSymbols
Enclosing class:
MetadataBuilder

private static final class MetadataBuilder.LegalSymbols extends Object
Elements to omit in the legal notice to be parsed by MetadataBuilder.parseLegalNotice(String). Some of those elements are implied by the metadata were the legal notice will be stored.
  • Field Details

    • VALUES

      private static final MetadataBuilder.LegalSymbols[] VALUES
      Symbols associated to restrictions.
    • restriction

      private final org.opengis.metadata.constraint.Restriction restriction
      The restriction to use if an item in the symbols list is found.
    • symbols

      private final String[] symbols
      Symbols to use as an indication that the restriction applies.
  • Constructor Details

    • LegalSymbols

      private LegalSymbols(org.opengis.metadata.constraint.Restriction restriction, String... symbols)
      Creates a new enumeration value for the given symbol.
  • Method Details

    • isSpaceOrPunctuation

      private static boolean isSpaceOrPunctuation(int c)
      Returns true if the given character is a space or a punctuation of category "other". The punctuation characters include coma, dot, semi-colon, etc. but do not include parenthesis or connecting punctuation.
      Parameters:
      c - the Unicode code point of the character to test.
    • parse

      static void parse(String notice, DefaultLegalConstraints constraints)
      Implementation of MetadataBuilder.parseLegalNotice(String), provided here for reducing the amount of class loading in the common case where there is no legal notice to parse.