|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.validation.DefaultFeatureValidation org.geotools.validation.spatial.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().
Field Summary |
Fields inherited from interface org.geotools.validation.Validation |
ALL, PRIORITY_COMPLEX, PRIORITY_INVOLVED, PRIORITY_SIMPLE, PRIORITY_TRIVIAL |
Constructor Summary | |
IsValidGeometryValidation()
IsValidGeometryFeatureValidation constructor. |
Method Summary | |
int |
getPriority()
Override getPriority. |
java.lang.String[] |
getTypeNames()
Override getTypeNames. |
boolean |
validate(Feature feature,
FeatureType type,
ValidationResults results)
Tests to see if a geometry is valid by calling Geometry.isValid(). |
Methods inherited from class org.geotools.validation.DefaultFeatureValidation |
getDefaultLineString, getDescription, getName, getTypeRef, getTypeRefs, setDescription, setName, setTypeRef |
Methods inherited from class java.lang.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 java.lang.String[] getTypeNames()
Returns the TypeNames of the FeatureTypes used in this particular validation.
org.geotools.validation.Validation#getTypeNames()
public boolean validate(Feature feature, FeatureType 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.FeatureTypeInfo,
org.geotools.validation.ValidationResults)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |