|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.geotools.validation.DefaultFeatureValidation
org.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 |
getAttributeName()
Access attributeName property. |
java.lang.Object |
getExpected()
Access expected property. |
Filter |
getFilter()
Access filter property. |
int |
getPriority()
The priority level used to schedule this Validation. |
java.lang.String[] |
getTypeRefs()
Implementation of getTypeNames. |
void |
setAttributeName(java.lang.String attributeName)
Set attributeName to attributeName. |
void |
setExpected(java.lang.Object expected)
Set expected to expected. |
void |
setFilter(Filter filter)
Set filter to filter. |
boolean |
validate(Feature feature,
FeatureType type,
ValidationResults results)
Validation test for feature. |
| Methods inherited from class org.geotools.validation.DefaultFeatureValidation |
getDefaultLineString, getDescription, getName, getTypeRef, setDescription, setName, setTypeRef |
| 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 int getPriority()
getPriority in interface ValidationgetPriority in class DefaultFeatureValidationValidation.getPriority()public java.lang.String[] getTypeRefs()
getTypeRefs in interface ValidationgetTypeRefs in class DefaultFeatureValidationValidation.getTypeRefs()
public boolean validate(Feature feature,
FeatureType type,
ValidationResults results)
Description of test ...
validate in interface FeatureValidationvalidate in class DefaultFeatureValidationfeature - 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)public java.lang.String getAttributeName()
public void setAttributeName(java.lang.String attributeName)
attributeName - The attributeName to set.public java.lang.Object getExpected()
public void setExpected(java.lang.Object expected)
expected - The expected to set.public Filter getFilter()
public void setFilter(Filter filter)
filter - The filter to set.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||