org.geotools.validation.attributes
Class NullZeroValidation

java.lang.Object
  extended byorg.geotools.validation.attributes.NullZeroValidation
All Implemented Interfaces:
FeatureValidation, Validation

public class NullZeroValidation
extends java.lang.Object
implements FeatureValidation

NullZeroFeatureValidation purpose.

Description of NullZeroFeatureValidation ...

Capabilities:

Example Use:

 NullZeroFeatureValidation x = new NullZeroFeatureValidation(...);
 


Field Summary
 
Fields inherited from interface org.geotools.validation.Validation
ALL, PRIORITY_COMPLEX, PRIORITY_INVOLVED, PRIORITY_SIMPLE, PRIORITY_TRIVIAL
 
Constructor Summary
NullZeroValidation()
           
 
Method Summary
 java.lang.String getAttributeName()
          Access attributeName property.
 java.lang.String getDescription()
          Implement getDescription.
 java.lang.String getName()
          Implement getName.
 int getPriority()
          Implement getPriority.
 java.lang.String getTypeRef()
          Access typeName property.
 java.lang.String[] getTypeRefs()
          Implementation of getTypeNames.
 void setAttributeName(java.lang.String name)
          set AttributeName to name.
 void setDescription(java.lang.String description)
          Implement setDescription.
 void setName(java.lang.String name)
          Implement setName.
 void setTypeRef(java.lang.String typeName)
          Set typeName to typeName.
 boolean validate(org.geotools.feature.Feature feature, org.geotools.feature.FeatureType type, ValidationResults results)
          Implement validate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullZeroValidation

public NullZeroValidation()
Method Detail

validate

public boolean validate(org.geotools.feature.Feature feature,
                        org.geotools.feature.FeatureType type,
                        ValidationResults results)
                 throws java.lang.Exception
Implement validate.

Description ...

Specified by:
validate in interface FeatureValidation
Parameters:
feature - Provides the attributes to test.
type - not used.
results - a reference for returning error codes.
Returns:
false when null or 0 values are found in the attribute.
Throws:
java.lang.Exception
See Also:
FeatureValidation.validate(org.geotools.feature.Feature, org.geotools.feature.FeatureType, org.geotools.validation.ValidationResults)

setName

public void setName(java.lang.String name)
Implement setName.

Specified by:
setName in interface Validation
Parameters:
name - the name of the validation.
See Also:
Validation.setName(java.lang.String)

getName

public java.lang.String getName()
Implement getName.

Specified by:
getName in interface Validation
Returns:
the name of the validation.
See Also:
Validation.getName()

setDescription

public void setDescription(java.lang.String description)
Implement setDescription.

Specified by:
setDescription in interface Validation
Parameters:
description - of the validation
See Also:
Validation.setDescription(java.lang.String)

getDescription

public java.lang.String getDescription()
Implement getDescription.

Description ...

Specified by:
getDescription in interface Validation
Returns:
See Also:
Validation.getDescription()

getPriority

public int getPriority()
Implement getPriority.

Specified by:
getPriority in interface Validation
Returns:
The priority (time cost) of the validation test
See Also:
Validation.getPriority()

getTypeRefs

public java.lang.String[] getTypeRefs()
Implementation of getTypeNames.

Specified by:
getTypeRefs in interface Validation
Returns:
Array of typeNames, or empty array for all, null for disabled
See Also:
Validation.getTypeRefs()

getTypeRef

public java.lang.String getTypeRef()
Access typeName property.

Returns:
Returns the typeName.

setTypeRef

public void setTypeRef(java.lang.String typeName)
Set typeName to typeName.

Parameters:
typeName - The typeName to set.

getAttributeName

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

Returns:
the path being stored for validation

setAttributeName

public void setAttributeName(java.lang.String name)
set AttributeName to name.

Parameters:
name -