
org.droitateddb.schema.ColumnValidator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api Show documentation
Show all versions of api Show documentation
droitatedDB is a lightweight framework, which frees you from the burden of dealing with Androids SQLite
database directly if you don't want to
and let's you access it directly if you have to.
package org.droitateddb.schema;
import org.droitateddb.validation.CustomValidator;
import java.lang.annotation.Annotation;
/**
* Information holder for validation, containing the validator annotation, the implementation and the parameters.
*
* @author Falk Appel
* @author Alexander Frank
*/
public class ColumnValidator {
private final Class extends Annotation> validatorAnnotation;
private final Class extends CustomValidator, ?>> validatorClass;
private final Object[] params;
public ColumnValidator(Class extends Annotation> validatorAnnotation, Class extends CustomValidator, ?>> validatorClass, Object... params) {
this.validatorAnnotation = validatorAnnotation;
this.validatorClass = validatorClass;
this.params = params;
}
public Class extends Annotation> getValidatorAnnotation() {
return validatorAnnotation;
}
public Class extends CustomValidator, ?>> getValidatorClass() {
return validatorClass;
}
public Object[] getParams() {
return params;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy