All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pub.codex.apix.wrapper.AssertFalseWrapper Maven / Gradle / Ivy

There is a newer version: 5.0.2
Show newest version
package pub.codex.apix.wrapper;

import org.springframework.stereotype.Component;

import javax.validation.constraints.AssertFalse;
import java.lang.annotation.Annotation;
import java.lang.reflect.Field;

@Component
public class AssertFalseWrapper implements VaildWrapper{
    @Override
    public Class getType() {
        return AssertFalse.class;
    }

    @Override
    public Class[] getGroup(Field field) {

        Annotation annotation = field.getAnnotation(AssertFalse.class);

        if (annotation != null) {
            return ((AssertFalse) annotation).groups();
        }
        return null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy