org.geotools.validation.attributes
Class GazetteerNameValidation

java.lang.Object
  extended by org.geotools.validation.DefaultFeatureValidation
      extended by org.geotools.validation.attributes.GazetteerNameValidation
All Implemented Interfaces:
FeatureValidation, Validation

public class GazetteerNameValidation
extends DefaultFeatureValidation

GazetteerNameValidation purpose.

Description of GazetteerNameValidation ...

Capabilities:

Example Use:


 GazetteerNameValidation x = new GazetteerNameValidation(...);
 

Version:
$Id: GazetteerNameValidation.java 30662 2008-06-12 21:44:16Z acuster $
Author:
dzwiers, Refractions Research, Inc., $Author: dmzwiers $ (last modification)

Field Summary
 
Fields inherited from interface org.geotools.validation.Validation
ALL, PRIORITY_COMPLEX, PRIORITY_INVOLVED, PRIORITY_SIMPLE, PRIORITY_TRIVIAL
 
Constructor Summary
GazetteerNameValidation()
          GazetteerNameValidation constructor.
 
Method Summary
 java.lang.String getAttributeName()
          Access attributeName property.
 java.net.URL getGazetteer()
          Access gazetteer property.
 int getPriority()
          Implementation of getPriority.
 void setAttributeName(java.lang.String attrName)
          Set attributeName to attributeName.
 void setGazetteer(java.net.URL gazetteer)
          Set gazetteer to gazetteer.
 boolean validate(org.opengis.feature.simple.SimpleFeature feature, org.opengis.feature.simple.SimpleFeatureType type, ValidationResults results)
          Implementation of 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

GazetteerNameValidation

public GazetteerNameValidation()
GazetteerNameValidation constructor.

Does nothing

Method Detail

validate

public boolean validate(org.opengis.feature.simple.SimpleFeature feature,
                        org.opengis.feature.simple.SimpleFeatureType type,
                        ValidationResults results)
Implementation of validate.

Specified by:
validate in interface FeatureValidation
Overrides:
validate in class DefaultFeatureValidation
Parameters:
feature -
type -
results -
Returns:
true if the feature is a valid geometry.
See Also:
org.geotools.validation.FeatureValidation#validate(org.geotools.feature.Feature, org.geotools.feature.FeatureType, org.geotools.validation.ValidationResults)

getPriority

public int getPriority()
Implementation of getPriority.

Specified by:
getPriority in interface Validation
Overrides:
getPriority in class DefaultFeatureValidation
Returns:
PRORITY_SIMPLE
See Also:
Validation.getPriority()

getAttributeName

public java.lang.String getAttributeName()
Access attributeName property.

Returns:
Returns the attributeName.

setAttributeName

public void setAttributeName(java.lang.String attrName)
Set attributeName to attributeName.

Parameters:
attrName - The attributeName to set.

getGazetteer

public java.net.URL getGazetteer()
Access gazetteer property.

Returns:
Returns the gazetteer.

setGazetteer

public void setGazetteer(java.net.URL gazetteer)
Set gazetteer to gazetteer.

Parameters:
gazetteer - The gazetteer to set.


Copyright © 1996-2010 Geotools. All Rights Reserved.