|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.validation.DefaultFeatureValidation org.geotools.validation.attributes.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 org.geotools.validation.Validation |
ALL, PRIORITY_COMPLEX, PRIORITY_INVOLVED, PRIORITY_SIMPLE, PRIORITY_TRIVIAL |
Constructor Summary | |
RangeValidation()
RangeFeatureValidation constructor. |
Method Summary | |
java.lang.String |
getAttribute()
XPATH expression used to locate attribute |
int |
getMax()
getMax purpose. |
int |
getMin()
getMin purpose. |
int |
getPriority()
Override getPriority. |
void |
setAttribute(java.lang.String xpath)
XPATH expression used to locate attribute |
void |
setMax(int i)
setMax purpose. |
void |
setMin(int i)
setMin purpose. |
boolean |
validate(Feature feature,
FeatureType type,
ValidationResults results)
Override validate. |
Methods inherited from class org.geotools.validation.DefaultFeatureValidation |
getDefaultLineString, getDescription, getName, getTypeRef, getTypeRefs, setDescription, setName, setTypeRef |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RangeValidation()
Description
Method Detail |
public boolean validate(Feature feature, FeatureType type, ValidationResults results)
Description ...
validate
in interface FeatureValidation
validate
in class DefaultFeatureValidation
feature
- type
- results
-
FeatureValidation.validate(org.geotools.feature.Feature,
org.geotools.feature.FeatureType,
org.geotools.validation.ValidationResults)
public int getPriority()
Description ...
getPriority
in interface Validation
getPriority
in class DefaultFeatureValidation
Validation.getPriority()
public int getMax()
Description ...
public int getMin()
Description ...
public void setMax(int i)
Description ...
i
- public void setMin(int i)
Description ...
i
- public java.lang.String getAttribute()
public void setAttribute(java.lang.String xpath)
xpath
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |