Package org.opengis.test.referencing
Class ReferencingValidator
-
- Direct Known Subclasses:
CRSValidator
,CSValidator
,DatumValidator
,OperationValidator
,ParameterValidator
public abstract class ReferencingValidator extends Validator
Base class for validators ofIdentifiedObject
and related objects from theorg.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 Validator
container, DEFAULT_TOLERANCE, enforceForbiddenAttributes, logger, requireMandatoryAttributes
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ReferencingValidator(ValidatorContainer container, String packageName)
Creates a new validator instance.
-
Method Summary
Modifier and Type Method Description void
dispatchObject(IdentifiedObject object)
For each interface implemented by the given object, invokes the correspondingvalidate(…)
method defined in this package (if any).void
validate(Identifier object)
Ensures that the given identifier has a code.-
Methods inherited from class Validator
conditional, forbidden, mandatory, validate
-
-
-
-
Constructor Detail
-
ReferencingValidator
protected ReferencingValidator(ValidatorContainer container, String packageName)
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 Detail
-
dispatchObject
public final void dispatchObject(IdentifiedObject object)
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
public void validate(Identifier object)
Ensures that the given identifier has a code.- Parameters:
object
- the object to validate, ornull
.
-
-