|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectDefaultFeatureValidation
IsValidGeometryValidation
public class IsValidGeometryValidation
Tests to see if a geometry is valid by calling Geometry.isValid().
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().
modules/extension/validation (gt-validation.jar)
Field Summary |
---|
Fields inherited from interface Validation |
---|
ALL, PRIORITY_COMPLEX, PRIORITY_INVOLVED, PRIORITY_SIMPLE, PRIORITY_TRIVIAL |
Constructor Summary | |
---|---|
IsValidGeometryValidation()
IsValidGeometryFeatureValidation constructor. |
Method Summary | |
---|---|
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(). |
Methods inherited from class DefaultFeatureValidation |
---|
getDefaultLineString, getDescription, getName, getTypeRef, getTypeRefs, setDescription, setName, setTypeRef |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IsValidGeometryValidation()
Description
Method Detail |
---|
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |