public class AttributeValidation extends DefaultFeatureValidation
Completes the specified attribute comparison.
Modifier and Type | Field and Description |
---|---|
static int |
EQUALITY |
static int |
GREATER_THAN |
static int |
LESS_THAN |
ALL, PRIORITY_COMPLEX, PRIORITY_INVOLVED, PRIORITY_SIMPLE, PRIORITY_TRIVIAL
Constructor and Description |
---|
AttributeValidation()
PointCoveredByLineValidation constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getAttributeComparisonType()
Access attributeComparisonType property.
|
String |
getAttributeComparisonValue()
Access attributeComparisonValue property.
|
String |
getAttributeName()
Access attributeName property.
|
void |
setAttributeComparisonType(int attributeComparisonType)
Set attributeComparisonType to attributeComparisonType.
|
void |
setAttributeComparisonValue(String attributeComparisonValue)
Set attributeComparisonValue to attributeComparisonValue.
|
void |
setAttributeName(String attributeName)
Set attributeName to attributeName.
|
boolean |
validate(SimpleFeature feature,
SimpleFeatureType type,
ValidationResults results)
Completes the specified comparison.
|
getDefaultLineString, getDescription, getName, getPriority, getTypeRef, getTypeRefs, setDescription, setName, setTypeRef
public static final int LESS_THAN
public static final int EQUALITY
public static final int GREATER_THAN
public AttributeValidation()
Super
public boolean validate(SimpleFeature feature, SimpleFeatureType type, ValidationResults results)
validate
in interface FeatureValidation
validate
in class DefaultFeatureValidation
feature
- Feature to be Validatedtype
- FeatureTypeInfo schema of featureresults
- coallate results informationtrue
if the feature is a valid geometry.org.geotools.validation.FeatureValidation#validate(org.geotools.feature.Feature,
org.geotools.feature.FeatureType, org.geotools.validation.ValidationResults)
public int getAttributeComparisonType()
public void setAttributeComparisonType(int attributeComparisonType)
attributeComparisonType
- The attributeComparisonType to set.public String getAttributeComparisonValue()
public void setAttributeComparisonValue(String attributeComparisonValue)
attributeComparisonValue
- The attributeComparisonValue to set.public String getAttributeName()
public void setAttributeName(String attributeName)
attributeName
- The attributeName to set.Copyright © 1996–2019 Geotools. All rights reserved.