public class AxisFilter extends 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(String axis,
String value) |
public boolean includes(Product product)
VariantFilter
includes
in interface VariantFilter
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"