| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.geotools.validation.attributes.EqualityValidation
Tests to see if an attribute is equal to a provided value.
I can only see this test being useful if a Filter is also used. Online research shows that this test is used in the wild, so we are adding it into our system.
| Field Summary | 
| Fields inherited from interface org.geotools.validation.Validation | 
ALL, PRIORITY_COMPLEX, PRIORITY_INVOLVED, PRIORITY_SIMPLE, PRIORITY_TRIVIAL | 
| Constructor Summary | |
EqualityValidation()
No argument constructor, required by the Java Bean Specification.  | 
|
| Method Summary | |
 java.lang.String | 
getDescription()
Override getDescription.  | 
 java.lang.String | 
getName()
Access the user's name for this test.  | 
 int | 
getPriority()
The priority level used to schedule this Validation.  | 
 java.lang.String | 
getTypeRef()
Access typeRef property.  | 
 java.lang.String[] | 
getTypeRefs()
Implementation of getTypeNames.  | 
 void | 
setDescription(java.lang.String description)
Sets the description of this validation.  | 
 void | 
setName(java.lang.String name)
Sets the name of this validation.  | 
 void | 
setTypeRef(java.lang.String typeRef)
Set typeRef to typeName.  | 
 boolean | 
validate(org.geotools.feature.Feature feature,
         org.geotools.feature.FeatureType type,
         ValidationResults results)
Validation test for feature.  | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public EqualityValidation()
| Method Detail | 
public void setName(java.lang.String name)
setName in interface Validationname - The name of this validation.Validation.setName(java.lang.String)public java.lang.String getName()
getName in interface ValidationValidation.getName()public void setDescription(java.lang.String description)
setDescription in interface Validationdescription - The description of the validation.Validation.setDescription(java.lang.String)public java.lang.String getDescription()
Returns the description of this validation as a string.
getDescription in interface ValidationValidation.getDescription()public int getPriority()
getPriority in interface ValidationValidation.getPriority()public java.lang.String[] getTypeRefs()
getTypeRefs in interface ValidationValidation.getTypeRefs()public java.lang.String getTypeRef()
public void setTypeRef(java.lang.String typeRef)
public boolean validate(org.geotools.feature.Feature feature,
                        org.geotools.feature.FeatureType type,
                        ValidationResults results)
Description of test ...
validate in interface FeatureValidationfeature - The Feature to be validatedtype - The FeatureType of the featureresults - The storage for error messages.
true if the feature is a valid geometry.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 | |||||||||