Package org.opengis.test.referencing
Class ParameterValidator
- java.lang.Object
-
- org.opengis.test.Validator
-
- org.opengis.test.referencing.ReferencingValidator
-
- org.opengis.test.referencing.ParameterValidator
-
public class ParameterValidator extends ReferencingValidator
ValidatesParameterValue
and related objects from theorg.opengis.parameter
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 ParameterValidator(ValidatorContainer container)
Creates a new validator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispatch(GeneralParameterDescriptor object)
Dispatches the given object to one ofvalidate
methods.void
dispatch(GeneralParameterValue object)
Dispatches the given object to one ofvalidate
methods.<T> void
validate(ParameterDescriptor<T> object)
Validates the given descriptor.void
validate(ParameterDescriptorGroup object)
Validates the given descriptor.<T> void
validate(ParameterValue<T> object)
Validates the given parameter value.void
validate(ParameterValueGroup object)
Validates the given coordinate system.-
Methods inherited from class org.opengis.test.referencing.ReferencingValidator
dispatchObject, validate, validateIdentifiedObject, validateReferenceSystem
-
-
-
-
Constructor Detail
-
ParameterValidator
public ParameterValidator(ValidatorContainer container)
Creates a new validator.- Parameters:
container
- The container of this validator.
-
-
Method Detail
-
dispatch
public void dispatch(GeneralParameterDescriptor object)
Dispatches the given object to one ofvalidate
methods.- Parameters:
object
- The object to dispatch.
-
dispatch
public void dispatch(GeneralParameterValue object)
Dispatches the given object to one ofvalidate
methods.- Parameters:
object
- The object to dispatch.
-
validate
public <T> void validate(ParameterDescriptor<T> object)
Validates the given descriptor.- Type Parameters:
T
- The class of parameter values.- Parameters:
object
- The object to validate, ornull
.
-
validate
public void validate(ParameterDescriptorGroup object)
Validates the given descriptor.- Parameters:
object
- The object to validate, ornull
.
-
validate
public <T> void validate(ParameterValue<T> object)
Validates the given parameter value.- Type Parameters:
T
- The class of parameter values.- Parameters:
object
- The object to validate, ornull
.
-
validate
public void validate(ParameterValueGroup object)
Validates the given coordinate system.- Parameters:
object
- The object to validate, ornull
.
-
-