1 package org.xmlfield.validation.handlers; 2 3 import java.lang.annotation.Annotation; 4 import java.lang.reflect.InvocationTargetException; 5 import java.lang.reflect.Method; 6 import java.util.Set; 7 8 9 public interface IHandler { 10 11 boolean handles( Annotation a ); 12 13 Set<ConstraintViolation<Object>> validate( Annotation a, Method m, Object o, Class<?> group) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException; 14 15 }