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

io.sphere.internal.facets.FacetExpressionBase Maven / Gradle / Ivy

package io.sphere.internal.facets;

import com.google.common.base.Strings;
import io.sphere.client.facets.expressions.FacetExpression;

public abstract class FacetExpressionBase implements FacetExpression {
    protected String attribute;

    protected FacetExpressionBase(String attribute) {
        if (Strings.isNullOrEmpty(attribute))
            throw new IllegalArgumentException("Attribute to facet on can't be empty.");
        this.attribute = attribute;
    }

    public String getAttributeName() { return attribute; }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy