|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectDefaultFeatureValidation
EqualityValidation
public class 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 Validation |
---|
ALL, PRIORITY_COMPLEX, PRIORITY_INVOLVED, PRIORITY_SIMPLE, PRIORITY_TRIVIAL |
Constructor Summary | |
---|---|
EqualityValidation()
No argument constructor, required by the Java Bean Specification. |
Method Summary | |
---|---|
String |
getAttributeName()
Access attributeName property. |
Object |
getExpected()
Access expected property. |
Filter |
getFilter()
Access filter property. |
int |
getPriority()
The priority level used to schedule this Validation. |
String[] |
getTypeRefs()
Implementation of getTypeNames. |
void |
setAttributeName(String attributeName)
Set attributeName to attributeName. |
void |
setExpected(Object expected)
Set expected to expected. |
void |
setFilter(Filter filter)
Set filter to filter. |
boolean |
validate(SimpleFeature feature,
SimpleFeatureType type,
ValidationResults results)
Validation test for feature. |
Methods inherited from class DefaultFeatureValidation |
---|
getDefaultLineString, getDescription, getName, getTypeRef, setDescription, setName, setTypeRef |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EqualityValidation()
Method Detail |
---|
public int getPriority()
getPriority
in interface Validation
getPriority
in class DefaultFeatureValidation
Validation.getPriority()
public String[] getTypeRefs()
getTypeRefs
in interface Validation
getTypeRefs
in class DefaultFeatureValidation
Validation.getTypeRefs()
public boolean validate(SimpleFeature feature, SimpleFeatureType type, ValidationResults results)
Description of test ...
validate
in interface FeatureValidation
validate
in class DefaultFeatureValidation
feature
- 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.opengis.feature.simple.SimpleFeature, org.opengis.feature.simple.SimpleFeatureType, org.geotools.validation.ValidationResults)
public String getAttributeName()
public void setAttributeName(String attributeName)
attributeName
- The attributeName to set.public Object getExpected()
public void setExpected(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 |