|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectDefaultFeatureValidation
RangeValidation
public class RangeValidation
RangeFeatureValidation validates that a number is within a given range.
RangeFeatureValidation is a quick and simple class the checks that the given number resides within a given range.
Capabilities:
RangeFeatureValidation x = new RangeFeatureValidation();
x.setMin(3);
x.setMax(5);
x.setName("id");
boolean result = x.validate(feature, featureType, results);
| Field Summary |
|---|
| Fields inherited from interface Validation |
|---|
ALL, PRIORITY_COMPLEX, PRIORITY_INVOLVED, PRIORITY_SIMPLE, PRIORITY_TRIVIAL |
| Constructor Summary | |
|---|---|
RangeValidation()
RangeFeatureValidation constructor. |
|
| Method Summary | |
|---|---|
String |
getAttribute()
XPATH expression used to locate attribute |
int |
getMax()
getMax purpose. |
int |
getMin()
getMin purpose. |
int |
getPriority()
Override getPriority. |
void |
setAttribute(String xpath)
XPATH expression used to locate attribute |
void |
setMax(int i)
setMax purpose. |
void |
setMin(int i)
setMin purpose. |
boolean |
validate(SimpleFeature feature,
SimpleFeatureType type,
ValidationResults results)
Override validate. |
| Methods inherited from class DefaultFeatureValidation |
|---|
getDefaultLineString, getDescription, getName, getTypeRef, getTypeRefs, setDescription, setName, setTypeRef |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RangeValidation()
Description
| Method Detail |
|---|
public boolean validate(SimpleFeature feature,
SimpleFeatureType type,
ValidationResults results)
Description ...
validate in interface FeatureValidationvalidate in class DefaultFeatureValidationfeature - type - results -
true 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 getPriority()
Description ...
getPriority in interface ValidationgetPriority in class DefaultFeatureValidationValidation.getPriority()public int getMax()
Description ...
public int getMin()
Description ...
public void setMax(int i)
Description ...
i - public void setMin(int i)
Description ...
i - public String getAttribute()
public void setAttribute(String xpath)
xpath -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||