Package org.opengis.test.referencing
Class OperationValidator
- java.lang.Object
-
- org.opengis.test.Validator
-
- org.opengis.test.referencing.ReferencingValidator
-
- org.opengis.test.referencing.OperationValidator
-
public class OperationValidator extends ReferencingValidator
ValidatesCoordinateOperation
and related objects from theorg.opengis.referencing.operation
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 OperationValidator(ValidatorContainer container)
Creates a new validator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static int
dimension(CoordinateReferenceSystem crs)
Returns the dimension of the given CRS.void
dispatch(CoordinateOperation object)
Dispatches the given object to one ofvalidate
methods.void
validate(ConcatenatedOperation object)
Validates the given concatenated operation.void
validate(Conversion object)
Validates the given conversion.void
validate(Formula object)
Validates the given formula.void
validate(MathTransform object)
Validates the given math transform.void
validate(OperationMethod object)
Validates the given operation method.void
validate(PassThroughOperation object)
Validates the given "pass through" operation.void
validate(Transformation object)
Validates the given transformation.private void
validateCoordinateOperation(CoordinateOperation object)
Validates the given coordinate operation.private void
validateOperation(SingleOperation object)
Validates the given operation.-
Methods inherited from class org.opengis.test.referencing.ReferencingValidator
dispatchObject, validate, validateIdentifiedObject, validateReferenceSystem
-
-
-
-
Constructor Detail
-
OperationValidator
public OperationValidator(ValidatorContainer container)
Creates a new validator.- Parameters:
container
- The container of this validator.
-
-
Method Detail
-
dispatch
public void dispatch(CoordinateOperation object)
Dispatches the given object to one ofvalidate
methods.- Parameters:
object
- The object to dispatch.
-
validate
public void validate(PassThroughOperation object)
Validates the given "pass through" operation.- Parameters:
object
- The object to validate, ornull
.
-
validate
public void validate(ConcatenatedOperation object)
Validates the given concatenated operation.- Parameters:
object
- The object to validate, ornull
.
-
validateCoordinateOperation
private void validateCoordinateOperation(CoordinateOperation object)
Validates the given coordinate operation. This method is private because we choose to expose only non-ambiguiousvalidate
methods in public API.- Parameters:
object
- The object to validate, ornull
.
-
validateOperation
private void validateOperation(SingleOperation object)
Validates the given operation. This method is private because we choose to expose only non-ambiguiousvalidate
methods in public API.- Parameters:
object
- The object to validate, ornull
.
-
validate
public void validate(Conversion object)
Validates the given conversion.- Parameters:
object
- The object to validate, ornull
.
-
validate
public void validate(Transformation object)
Validates the given transformation.- Parameters:
object
- The object to validate, ornull
.
-
validate
public void validate(OperationMethod object)
Validates the given operation method.- Parameters:
object
- The object to validate, ornull
.
-
validate
public void validate(Formula object)
Validates the given formula.- Parameters:
object
- The object to validate, ornull
.
-
validate
public void validate(MathTransform object)
Validates the given math transform.- Parameters:
object
- The object to validate, ornull
.
-
dimension
private static int dimension(CoordinateReferenceSystem crs)
Returns the dimension of the given CRS.
-
-