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 TypeMethodDescriptionvoiddispatch(GenericName object) Dispatches tovalidate(LocalName)orvalidate(ScopedName).private voidvalidate(GenericName object, List<? extends LocalName> parsedNames) Performs some tests that are common to all subclasses ofGenericName.voidvalidate(InternationalString object) Ensures that theCharSequencemethods are consistent with thetoString()value.voidEnsures that ISO 19103 or GeoAPI restrictions apply.voidEnsures that ISO 19103 or GeoAPI restrictions apply.voidvalidate(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 theCharSequencemethods 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.
-