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

com.netgrif.application.engine.validation.models.AbstractFieldValidation.groovy Maven / Gradle / Ivy

package com.netgrif.application.engine.validation.models

import com.netgrif.application.engine.validation.domain.ValidationDataInput

class AbstractFieldValidation implements Serializable {

    private static final long serialVersionUID = 3287601522204188694L

    void notempty(ValidationDataInput validationData) {
        if (validationData.getData().getValue() == "" || validationData.getData().getValue() == []) {
            throw new IllegalArgumentException(validationData.getValidationMessage().getTranslation(validationData.getLocale()))
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy