edu.internet2.middleware.grouper.attr
Interface AttributeDefValidationInterface

All Known Implementing Classes:
AttributeDefValidationDef

public interface AttributeDefValidationInterface

Author:
mchyzer

Method Summary
 String formatFromDb(Object input, String argument0, String argument1)
          format an input
 Object formatToDb(Object input, String argument0, String argument1)
          format an input
 String name()
          name of this validation
 String validate(Object input, String argument0, String argument1)
          validate that an object is not null
 

Method Detail

name

String name()
name of this validation

Returns:
the name of this validation

formatToDb

Object formatToDb(Object input,
                  String argument0,
                  String argument1)
format an input

Parameters:
input -
argument0 -
argument1 -
Returns:
the string, integer, double, or memberId
Throws:
AttributeDefValidationNotImplemented

validate

String validate(Object input,
                String argument0,
                String argument1)
validate that an object is not null

Parameters:
input -
argument0 -
argument1 -
Returns:
the error string if there is one
Throws:
AttributeDefValidationNotImplemented

formatFromDb

String formatFromDb(Object input,
                    String argument0,
                    String argument1)
format an input

Parameters:
input - could be integer, string, double, or memberId
argument0 -
argument1 -
Returns:
the representation for a screen
Throws:
AttributeDefValidationNotImplemented