Class SimpleColumnValidator
- java.lang.Object
-
- com.healthmarketscience.jackcess.util.SimpleColumnValidator
-
- All Implemented Interfaces:
ColumnValidator
public class SimpleColumnValidator extends Object implements ColumnValidator
Simple concrete implementation of ColumnValidator which simply returns the given value.- Author:
- James Ahlborn
-
-
Field Summary
Fields Modifier and Type Field Description static SimpleColumnValidatorINSTANCE
-
Constructor Summary
Constructors Constructor Description SimpleColumnValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectvalidate(Column col, Object val)Validates and/or manipulates the given potential new value for the given column.
-
-
-
Field Detail
-
INSTANCE
public static final SimpleColumnValidator INSTANCE
-
-
Method Detail
-
validate
public Object validate(Column col, Object val) throws IOException
Description copied from interface:ColumnValidatorValidates and/or manipulates the given potential new value for the given column. This method may return an entirely different value or throw an exception if the input value is not valid.- Specified by:
validatein interfaceColumnValidator- Throws:
IOException
-
-