Servoy 5.x Public API

com.servoy.j2db.dataprocessing
Interface IColumnValidator

All Superinterfaces:
com.servoy.j2db.persistence.IColumnTypes

public interface IColumnValidator
extends com.servoy.j2db.persistence.IColumnTypes

Public interface for a validator


Field Summary
 
Fields inherited from interface com.servoy.j2db.persistence.IColumnTypes
DATETIME, INTEGER, MEDIA, NUMBER, TEXT
 
Method Summary
 Map<String,String> getDefaultProperties()
          Called for default properties about the validator.
 String getName()
          Get the name for this validator
 int[] getSupportedColumnTypes()
          Get the db types on which this validator can work.
 void validate(Map<String,String> props, Object arg)
          Validate an arguemnt, throws an IllegalArgumentException if validation fails
 

Method Detail

getDefaultProperties

Map<String,String> getDefaultProperties()
Called for default properties about the validator.


getName

String getName()
Get the name for this validator


getSupportedColumnTypes

int[] getSupportedColumnTypes()
Get the db types on which this validator can work.

Returns:
the types (null for anything)

validate

void validate(Map<String,String> props,
              Object arg)
              throws IllegalArgumentException
Validate an arguemnt, throws an IllegalArgumentException if validation fails

Parameters:
props -
arg -
Throws:
IllegalArgumentException

Copyright © 2010 Servoy B.V.