| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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.setPath("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 | 
getDescription()
Override getDescription.  | 
 int | 
getMax()
getMax purpose.  | 
 int | 
getMin()
getMin purpose.  | 
 java.lang.String | 
getName()
Override getName.  | 
 java.lang.String | 
getPath()
getPath purpose.  | 
 int | 
getPriority()
Override getPriority.  | 
 java.lang.String | 
getTypeRef()
 | 
 java.lang.String[] | 
getTypeRefs()
Override getTypeNames.  | 
 void | 
setDescription(java.lang.String description)
Override setDescription.  | 
 void | 
setMax(int i)
setMax purpose.  | 
 void | 
setMin(int i)
setMin purpose.  | 
 void | 
setName(java.lang.String name)
Override setName.  | 
 void | 
setPath(java.lang.String string)
setPath purpose.  | 
 void | 
setTypeRef(java.lang.String typeRef)
Set type ref as dataStoreId:typeName.  | 
 boolean | 
validate(org.geotools.feature.Feature feature,
         org.geotools.feature.FeatureType type,
         ValidationResults results)
Override validate.  | 
| 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(org.geotools.feature.Feature feature,
                        org.geotools.feature.FeatureType type,
                        ValidationResults results)
                 throws java.lang.Exception
Description ...
validate in interface FeatureValidationfeature - type - results - 
java.lang.ExceptionFeatureValidation.validate(org.geotools.feature.Feature,
      org.geotools.feature.FeatureType,
      org.geotools.validation.ValidationResults)public void setName(java.lang.String name)
Description ...
setName in interface Validationname - Validation.setName(java.lang.String)public java.lang.String getName()
Description ...
getName in interface ValidationValidation.getName()public void setDescription(java.lang.String description)
Description ...
setDescription in interface Validationdescription - Validation.setDescription(java.lang.String)public java.lang.String getDescription()
Description ...
getDescription in interface ValidationValidation.getDescription()public int getPriority()
Description ...
getPriority in interface ValidationValidation.getPriority()public void setTypeRef(java.lang.String typeRef)
typeRef - type referencedorg.geotools.validation.Validation#setTypeNames(java.lang.String[])public java.lang.String getTypeRef()
public java.lang.String[] getTypeRefs()
Description ...
getTypeRefs in interface ValidationValidation.getTypeRefs()public int getMax()
Description ...
public int getMin()
Description ...
public java.lang.String getPath()
Description ...
public void setMax(int i)
Description ...
i - public void setMin(int i)
Description ...
i - public void setPath(java.lang.String string)
Description ...
string - 
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||