public class AxisFilter extends java.lang.Object implements VariantFilter
VariantFilter
for filtering variants by the given axis.
The following example returns a list of variants which have a value of "blue" on the "color" axis:
product.getVariants(new AxisFilter("color", "blue"));
The wildcard "*" is supported for values. The following example will return all variants that have a "color" property:
product.getVariants(new AxisFilter("color", "*"));
Constructor and Description |
---|
AxisFilter(java.lang.String axis,
java.lang.String value) |
Modifier and Type | Method and Description |
---|---|
boolean |
includes(Product product)
Decides if a product is to be included by this filter.
|
public boolean includes(Product product)
VariantFilter
includes
in interface VariantFilter
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"