Package org.opengis.test.util
Class NameValidator
java.lang.Object
org.opengis.test.Validator
org.opengis.test.util.NameValidator
Validates
GenericName
and related objects from the org.opengis.util
package.
This class should not be used directly; use the Validators
convenience
static methods instead.- Since:
- 2.2
- Version:
- 3.0
-
Field Summary
Fields inherited from class org.opengis.test.Validator
container, DEFAULT_TOLERANCE, enforceForbiddenAttributes, logger, requireMandatoryAttributes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispatch
(GenericName object) Dispatches tovalidate(LocalName)
orvalidate(ScopedName)
.private void
validate
(GenericName object, List<? extends LocalName> parsedNames) Performs some tests that are common to all subclasses ofGenericName
.void
validate
(InternationalString object) Ensures that theCharSequence
methods are consistent with thetoString()
value.void
Ensures that ISO 19103 or GeoAPI restrictions apply.void
Ensures that ISO 19103 or GeoAPI restrictions apply.void
validate
(ScopedName object) Ensures that ISO 19103 or GeoAPI restrictions apply.
-
Constructor Details
-
NameValidator
Creates a new validator.- Parameters:
container
- The container of this validator.
-
-
Method Details
-
validate
Ensures that theCharSequence
methods are consistent with thetoString()
value.- Parameters:
object
- The object to validate, ornull
.
-
validate
Ensures that ISO 19103 or GeoAPI restrictions apply.- Parameters:
object
- The object to validate, ornull
.
-
dispatch
Dispatches tovalidate(LocalName)
orvalidate(ScopedName)
. Other implementations are silently ignored.- Parameters:
object
- The object to validate, ornull
.
-
validate
Performs some tests that are common to all subclasses ofGenericName
. This method should not invokesvalidate(LocalName)
orvalidate(ScopedName)
in order to avoid never-ending loop.This method should not validate the scope, since it could leads to a never-ending loop.
-
validate
Ensures that ISO 19103 or GeoAPI restrictions apply.- Parameters:
object
- The object to validate, ornull
.
-
validate
Ensures that ISO 19103 or GeoAPI restrictions apply.- Parameters:
object
- The object to validate, ornull
.
-