Validates
GenericName and related objects from the org.opengis.util package.
This class is provided for users wanting to override the validation methods. When the default
behavior is sufficient, the Validators static methods provide a more
convenient way to validate various kinds of objects.
- Since:
- 2.2
-
Field Summary
Fields inherited from class org.opengis.test.Validator
container, DEFAULT_TOLERANCE, enforceForbiddenAttributes, logger, requireMandatoryAttributes -
Constructor Summary
ConstructorsConstructorDescriptionNameValidator(ValidatorContainer container) Creates a new validator instance. -
Method Summary
Modifier and TypeMethodDescriptionintdispatch(GenericName object) For each interface implemented by the given object, invokes the correspondingvalidate(…)method defined in this class (if any).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 instance.- Parameters:
container- the set of validators to use for validating other kinds of objects (see field javadoc).
-
-
Method Details
-
validate
Ensures that theCharSequencemethods are consistent with thetoString()value.- Parameters:
object- the object to validate, ornull.
-
validate
-
dispatch
For each interface implemented by the given object, invokes the correspondingvalidate(…)method defined in this class (if any).- Parameters:
object- the object to dispatch tovalidate(…)methods, ornull.- Returns:
- number of
validate(…)methods invoked in this class for the given object.
-
validate
-
validate
Ensures that ISO 19103 or GeoAPI restrictions apply.- Parameters:
object- the object to validate, ornull.
-