Package org.elasticsearch.geometry.utils
Class StandardValidator
- java.lang.Object
-
- org.elasticsearch.geometry.utils.StandardValidator
-
- All Implemented Interfaces:
GeometryValidator
public class StandardValidator extends Object implements GeometryValidator
Validator that only checks that altitude only shows up if ignoreZValue is set to true.
-
-
Constructor Summary
Constructors Constructor Description StandardValidator(boolean ignoreZValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckZ(double zValue)voidvalidate(Geometry geometry)Validates the geometry and throws IllegalArgumentException if the geometry is not valid
-
-
-
Method Detail
-
checkZ
protected void checkZ(double zValue)
-
validate
public void validate(Geometry geometry)
Description copied from interface:GeometryValidatorValidates the geometry and throws IllegalArgumentException if the geometry is not valid- Specified by:
validatein interfaceGeometryValidator
-
-