Package org.opengis.test.referencing
Class ParameterValidator
- Object
-
- Validator
-
- ReferencingValidator
-
- ParameterValidator
-
public class ParameterValidator extends ReferencingValidator
ValidatesParameterValueand related objects from theorg.opengis.parameterpackage.This class is provided for users wanting to override the validation methods. When the default behavior is sufficient, the
Validatorsstatic 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 Constructor Description ParameterValidator(ValidatorContainer container)Creates a new validator instance.
-
Method Summary
Modifier and Type Method Description intdispatch(GeneralParameterDescriptor object)For each interface implemented by the given object, invokes the correspondingvalidate(…)method defined in this class (if any).intdispatch(GeneralParameterValue object)For each interface implemented by the given object, invokes the correspondingvalidate(…)method defined in this class (if any).<T> voidvalidate(ParameterDescriptor<T> object)Validates the given descriptor.voidvalidate(ParameterDescriptorGroup object)Validates the given descriptor.<T> voidvalidate(ParameterValue<T> object)Validates the given parameter value.voidvalidate(ParameterValueGroup object)Validates the given coordinate system.-
Methods inherited from class ReferencingValidator
dispatchObject, validate
-
Methods inherited from class Validator
conditional, forbidden, mandatory, validate
-
-
-
-
Constructor Detail
-
ParameterValidator
public ParameterValidator(ValidatorContainer container)
Creates a new validator instance.- Parameters:
container- the set of validators to use for validating other kinds of objects (see field javadoc).
-
-
Method Detail
-
dispatch
public int dispatch(GeneralParameterDescriptor object)
For each interface implemented by the given object, invokes the correspondingvalidate(…)method defined in this class (if any).- Parameters:
object- the object to dispatch tovalidate(…)methods, ornull.- Returns:
- number of
validate(…)methods invoked in this class for the given object.
-
dispatch
public int dispatch(GeneralParameterValue object)
For each interface implemented by the given object, invokes the correspondingvalidate(…)method defined in this class (if any).- Parameters:
object- the object to dispatch tovalidate(…)methods, ornull.- Returns:
- number of
validate(…)methods invoked in this class for the given object.
-
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.
-
-