com.healthmarketscience.jackcess.util
Class SimpleColumnValidator

java.lang.Object
  extended by 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
static SimpleColumnValidator INSTANCE
           
 
Constructor Summary
SimpleColumnValidator()
           
 
Method Summary
 Object validate(Column col, Object val)
          Validates and/or manipulates the given potential new value for the given column.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final SimpleColumnValidator INSTANCE
Constructor Detail

SimpleColumnValidator

public SimpleColumnValidator()
Method Detail

validate

public Object validate(Column col,
                       Object val)
                throws IOException
Description copied from interface: ColumnValidator
Validates 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:
validate in interface ColumnValidator
Throws:
IOException


Copyright © 2005–2017 Health Market Science. All rights reserved.