public class EqualityValidation extends DefaultFeatureValidation
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.
ALL, PRIORITY_COMPLEX, PRIORITY_INVOLVED, PRIORITY_SIMPLE, PRIORITY_TRIVIAL
Constructor and Description |
---|
EqualityValidation()
No argument constructor, required by the Java Bean Specification.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getDefaultLineString, getDescription, getName, getTypeRef, setDescription, setName, setTypeRef
public EqualityValidation()
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.Copyright © 1996–2019 Geotools. All rights reserved.