nl.vpro.domain.constraint.WildTextConstraint 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.constraint;
/**
* @author Michiel Meeuwissen
* @since 5.4
*/
public interface WildTextConstraint extends TextConstraint {
enum CaseHandling {
ASIS,
LOWER,
UPPER,
BOTH
}
default boolean isExact() {
return true;
}
/**
* The value used in wildcard queries. On default this implicetely adds stars, which will trigger an actual wildcard query.
* If no stars are found, a prefix query is supposed.
*/
default String getWildcardValue() {
return "*" + getValue() + "*";
}
default CaseHandling getCaseHandling() {
return CaseHandling.ASIS;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy