net.refractions.udig.ui
Class AttributeValidator
java.lang.Object
net.refractions.udig.ui.AttributeValidator
public class AttributeValidator
- extends java.lang.Object
Validates that an input is a legal input
For details on the kind of work this class does (or needs to do)
check the following:
Validating a Feature.
This is for the table view cell editing; and the default feature editor.
- Since:
- 0.3
- Author:
- jeichar
Constructor Summary |
AttributeValidator(AttributeDescriptor attributeType,
SimpleFeatureType featureType)
Creates a new instance of AttributeValidator |
Method Summary |
java.lang.String |
isValid(java.lang.Object value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AttributeValidator
public AttributeValidator(AttributeDescriptor attributeType,
SimpleFeatureType featureType)
- Creates a new instance of AttributeValidator
- Parameters:
attributeType
- The AttributeDescriptor that the new instance will validatefeatureType
- the featureType that contains the attributeType.
isValid
public java.lang.String isValid(java.lang.Object value)