Package org.apache.sis.internal.storage
Class MetadataBuilder.LegalSymbols
java.lang.Object
org.apache.sis.internal.storage.MetadataBuilder.LegalSymbols
- Enclosing class:
- MetadataBuilder
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 Summary
FieldsModifier and TypeFieldDescriptionprivate final org.opengis.metadata.constraint.Restriction
The restriction to use if an item in the symbols list is found.private final String[]
Symbols to use as an indication that the restriction applies.private static final MetadataBuilder.LegalSymbols[]
Symbols associated to restrictions. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
LegalSymbols
(org.opengis.metadata.constraint.Restriction restriction, String... symbols) Creates a new enumeration value for the given symbol. -
Method Summary
Modifier and TypeMethodDescriptionprivate static boolean
isSpaceOrPunctuation
(int c) Returnstrue
if the given character is a space or a punctuation of category "other".(package private) static void
parse
(String notice, DefaultLegalConstraints constraints) Implementation ofMetadataBuilder.parseLegalNotice(String)
, provided here for reducing the amount of class loading in the common case where there is no legal notice to parse.
-
Field Details
-
VALUES
Symbols associated to restrictions. -
restriction
private final org.opengis.metadata.constraint.Restriction restrictionThe restriction to use if an item in the symbols list is found. -
symbols
Symbols to use as an indication that the restriction applies.
-
-
Constructor Details
-
LegalSymbols
Creates a new enumeration value for the given symbol.
-
-
Method Details
-
isSpaceOrPunctuation
private static boolean isSpaceOrPunctuation(int c) Returnstrue
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
Implementation ofMetadataBuilder.parseLegalNotice(String)
, provided here for reducing the amount of class loading in the common case where there is no legal notice to parse.
-