Package org.opengis.test.util
Class 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
-
Field Summary
Fields inherited from class Validator
container, DEFAULT_TOLERANCE, enforceForbiddenAttributes, logger, requireMandatoryAttributes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispatch(GenericName object) Dispatches tovalidate(LocalName)orvalidate(ScopedName).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
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.
-