private void validateRangeValue ( String column , Object value ) { if ( constraintType != null && value != null && ! getConstraintType ( ) . equals ( DataColumnConstraintType . RANGE ) ) { throw new GeoPackageException ( "The " + column + " must be null for " + DataColumnConstraintType . ENUM + " and " + DataColumnConstraintType . GLOB + " constraints" ) ; } }
Validate the constraint type when a range value is set