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

io.sphere.sdk.search.SearchExpression Maven / Gradle / Ivy

There is a newer version: 1.0.0-M26
Show newest version
package io.sphere.sdk.search;

import javax.annotation.Nullable;

/**
 * Search expressions to use in a search request.
 * @param  Type of the resource for the search
 */
public interface SearchExpression {

    /**
     * Returns a search expression.
     * @return String with unescaped sphere search expression
     */
    String expression();

    /**
     * Generates the path for the attribute to apply the search expression.
     * Example: variants.attributes.color
     * @return the path for the attribute
     */
    String attributePath();

    /**
     * Generates the value applied to the search expression.
     * Example: range(0 to *)
     * @return the value of the expression
     */
    @Nullable
    String value();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy