Package org.opengis.test.referencing
Class ReferencingValidator
- Direct Known Subclasses:
CRSValidator,CSValidator,DatumValidator,OperationValidator,ParameterValidator
Base class for validators of
IdentifiedObject and related objects from the
org.opengis.referencing 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
ConstructorsModifierConstructorDescriptionprotectedReferencingValidator(ValidatorContainer container, String packageName) Creates a new validator instance. -
Method Summary
Modifier and TypeMethodDescriptionfinal voiddispatchObject(IdentifiedObject object) For each interface implemented by the given object, invokes the correspondingvalidate(…)method defined in this package (if any).voidvalidate(ObjectDomain object) Ensures that the given domain has a scope and a domain of validity.
-
Constructor Details
-
ReferencingValidator
Creates a new validator instance.- Parameters:
container- the set of validators to use for validating other kinds of objects (see field javadoc).packageName- the name of the package containing the classes to be validated.
-
-
Method Details
-
dispatchObject
For each interface implemented by the given object, invokes the correspondingvalidate(…)method defined in this package (if any).- Parameters:
object- the object to dispatch tovalidate(…)methods, ornull.
-
validate
Ensures that the given domain has a scope and a domain of validity.- Parameters:
object- the object to validate, ornull.- Since:
- 3.1
-