public class IsValidGeometryValidation extends DefaultFeatureValidation
The geometry is first tested to see if it is null, and if it is null, then it is tested to see if it is allowed to be null by calling isNillable().
ALL, PRIORITY_COMPLEX, PRIORITY_INVOLVED, PRIORITY_SIMPLE, PRIORITY_TRIVIAL
Constructor and Description |
---|
IsValidGeometryValidation()
IsValidGeometryFeatureValidation constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getPriority()
Override getPriority.
|
String[] |
getTypeNames()
Override getTypeNames.
|
boolean |
validate(SimpleFeature feature,
SimpleFeatureType type,
ValidationResults results)
Tests to see if a geometry is valid by calling Geometry.isValid().
|
getDefaultLineString, getDescription, getName, getTypeRef, getTypeRefs, setDescription, setName, setTypeRef
public IsValidGeometryValidation()
Description
public int getPriority()
Sets the priority level of this validation.
getPriority
in interface Validation
getPriority
in class DefaultFeatureValidation
Validation.getPriority()
public String[] getTypeNames()
Returns the TypeNames of the FeatureTypes used in this particular validation.
Validation.getTypeRefs()
public boolean validate(SimpleFeature feature, SimpleFeatureType type, ValidationResults results)
The geometry is first tested to see if it is null, and if it is null, then it is tested to see if it is allowed to be null by calling isNillable().
validate
in interface FeatureValidation
validate
in class DefaultFeatureValidation
feature
- The Feature to be validatedtype
- The FeatureTypeInfo of the featureresults
- The storage for error messages.org.geotools.validation.FeatureValidation#validate( org.geotools.feature.Feature,
org.geotools.feature.FeatureType, org.geotools.validation.ValidationResults)
Copyright © 1996–2019 Geotools. All rights reserved.