Package org.opengis.test.referencing
Class ReferencingValidator
- java.lang.Object
-
- org.opengis.test.Validator
-
- org.opengis.test.referencing.ReferencingValidator
-
- Direct Known Subclasses:
CRSValidator
,CSValidator
,DatumValidator
,OperationValidator
,ParameterValidator
public abstract class ReferencingValidator extends Validator
ValidatesIdentifiedObject
and related objects from theorg.opengis.referencing
package. This class should not be used directly; use theValidators
convenience static methods instead.- Since:
- 2.2
- Version:
- 3.0
-
-
Field Summary
-
Fields inherited from class org.opengis.test.Validator
container, DEFAULT_TOLERANCE, enforceForbiddenAttributes, logger, requireMandatoryAttributes
-
-
Constructor Summary
Constructors Constructor Description ReferencingValidator(ValidatorContainer container, java.lang.String packageName)
Creates a new validator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispatchObject(IdentifiedObject object)
Delegates to avalidate
method expecting a more specific argument.void
validate(ReferenceIdentifier object)
Ensures that the given identifier has a code.(package private) void
validateIdentifiedObject(IdentifiedObject object)
Performs the validation that are common to all identified objects.(package private) void
validateReferenceSystem(ReferenceSystem object)
Performs the validation that are common to all reference systems.
-
-
-
Constructor Detail
-
ReferencingValidator
public ReferencingValidator(ValidatorContainer container, java.lang.String packageName)
Creates a new validator.- Parameters:
container
- The container of this validator.packageName
- The name of the package containing the classes to be validated.
-
-
Method Detail
-
dispatchObject
public final void dispatchObject(IdentifiedObject object)
Delegates to avalidate
method expecting a more specific argument.- Parameters:
object
- The object to validate, ornull
.
-
validate
public void validate(ReferenceIdentifier object)
Ensures that the given identifier has a code.- Parameters:
object
- The object to validate, ornull
.
-
validateReferenceSystem
final void validateReferenceSystem(ReferenceSystem object)
Performs the validation that are common to all reference systems. This method is invoked byvalidate
methods after they have determined the type of their argument.- Parameters:
object
- The object to validate (can not be null).
-
validateIdentifiedObject
final void validateIdentifiedObject(IdentifiedObject object)
Performs the validation that are common to all identified objects. This method is invoked byvalidate
methods after they have determined the type of their argument.- Parameters:
object
- The object to validate (can not be null).
-
-