nl.vpro.domain.api.FormUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api-domain Show documentation
Show all versions of api-domain Show documentation
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