public class TierToFeatureListTransformer extends Object implements FunctionTransformer<Tier,List<Feature>>
Tier
into just a list of Feature
s it contains.
Adding the add ons and replacing features from the list with their overrides, if set.Constructor and Description |
---|
TierToFeatureListTransformer() |
Modifier and Type | Method and Description |
---|---|
protected Map<String,Feature> |
flattenProductPackageToFeatures(ProductPackage input)
Flattens a
ProductPackage by getting its features and
if sub-ProductPackage s exist then getting their features as well, recursively. |
protected Map<String,Feature> |
flattenTierToFeatures(Tier input)
Flattens a
Tier by getting its features and
if sub-ProductPackage s exist then getting their features as well, recursively. |
Object |
transform(Object input) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply
public Object transform(Object input)
transform
in interface org.apache.commons.collections.Transformer
protected Map<String,Feature> flattenTierToFeatures(Tier input)
Tier
by getting its features and
if sub-ProductPackage
s exist then getting their features as well, recursively.
After getting all Feature
s, it replaces them with overrides or add add on Feature
s.protected Map<String,Feature> flattenProductPackageToFeatures(ProductPackage input)
ProductPackage
by getting its features and
if sub-ProductPackage
s exist then getting their features as well, recursively.input
- - ProductPackage
to be flattenedMap
of all Feature
s in a ProductPackage
tree.Copyright © 2018. All rights reserved.