public class EnumerateAxisFilter extends Object implements VariantFilter
VariantFilter
for enumerating variants along a given axis. A single variation
will be returned for each enumeration.
For example, given the variations:
product.getVariants(new EnumerateAxisFilter("size"));will return two products:
small-blue
and large-green
.
NB: the particular variation chosen to represent each enumeration is
not defined. The example above could have also returned small-black
and
large-red
.
Constructor and Description |
---|
EnumerateAxisFilter(String axis) |
public EnumerateAxisFilter(String axis)
public boolean includes(Product product)
VariantFilter
includes
in interface VariantFilter
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"