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

nl.vpro.domain.api.FormUtils Maven / Gradle / Ivy

Go to download

Contains the objects used by the Frontend API, like forms and result objects

The newest version!
package nl.vpro.domain.api;

import org.apache.commons.lang3.StringUtils;

/**
 * @author Michiel Meeuwissen
 * @since 4.2
 */
public class FormUtils {

    private FormUtils() {
    }

    public static String getText(AbstractTextSearch searches) {
        if (searches != null) {
            SimpleTextMatcher text = searches.getText();
            if (text != null) {
                String value = text.getValue();
                if (StringUtils.isNotBlank(value)) {
                    return value;
                }
            }
        }
        return null;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy