Package org.opengis.test.referencing
Class ReferencingValidator
- Direct Known Subclasses:
CRSValidator,CSValidator,DatumValidator,OperationValidator,ParameterValidator
Validates
IdentifiedObject and related objects from the org.opengis.referencing
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
ConstructorsConstructorDescriptionReferencingValidator(ValidatorContainer container, String packageName) Creates a new validator. -
Method Summary
Modifier and TypeMethodDescriptionfinal voiddispatchObject(IdentifiedObject object) Delegates to avalidatemethod expecting a more specific argument.voidvalidate(ReferenceIdentifier object) Ensures that the given identifier has a code.
-
Constructor Details
-
ReferencingValidator
Creates a new validator.- Parameters:
container- The container of this validator.packageName- The name of the package containing the classes to be validated.
-
-
Method Details
-
dispatchObject
Delegates to avalidatemethod expecting a more specific argument.- Parameters:
object- The object to validate, ornull.
-
validate
Ensures that the given identifier has a code.- Parameters:
object- The object to validate, ornull.
-