public class EnumerateAxisFilter extends java.lang.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(java.lang.String axis) |
| 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)
VariantFilterincludes in interface VariantFilter"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"