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

nl.vpro.domain.constraint.WildTextConstraint 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.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