Interface IDataValidator
-
- All Known Implementing Classes:
ContextualDataValidator
,DataValidator
,DefaultDataValidator
,DefaultNumericDataValidator
public interface IDataValidator
-
-
Field Summary
Fields Modifier and Type Field Description static IDataValidator
ALWAYS_VALID
static IDataValidator
NEVER_VALID
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
validate(int columnIndex, int rowIndex, Object newValue)
boolean
validate(ILayerCell cell, IConfigRegistry configRegistry, Object newValue)
-
-
-
Field Detail
-
ALWAYS_VALID
static final IDataValidator ALWAYS_VALID
-
NEVER_VALID
static final IDataValidator NEVER_VALID
-
-
Method Detail
-
validate
boolean validate(int columnIndex, int rowIndex, Object newValue)
- Parameters:
columnIndex
- Index of the column being validatedrowIndex
- Index of the row being validatednewValue
- Value entered through the edit control text box, combo box etc. Note: In case of theTextCellEditor
the text typed in by the user will be converted to the canonical value using theIDisplayConverter
before it hits this method- Returns:
true
if newValue is valid,false
otherwise.- See Also:
IDataProvider.getDataValue(int, int)
-
validate
boolean validate(ILayerCell cell, IConfigRegistry configRegistry, Object newValue)
- Parameters:
cell
- LayerCell which should be validatedconfigRegistry
- TheIConfigRegistry
used to retrieve contextual information for the cell.newValue
- Value entered through the edit control text box, combo box etc. Note: In case of theTextCellEditor
the text typed in by the user will be converted to the canonical value using theIDisplayConverter
before it hits this method- Returns:
true
if newValue is valid,false
otherwise.- See Also:
IDataProvider.getDataValue(int, int)
-
-