public class TierToFeatureListTransformer extends Object implements FunctionTransformer<Tier,List<Feature>>
Tier into just a list of Features 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-ProductPackages 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-ProductPackages exist then getting their features as well, recursively. |
Object |
transform(Object input) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplypublic Object transform(Object input)
transform in interface org.apache.commons.collections.Transformerprotected Map<String,Feature> flattenTierToFeatures(Tier input)
Tier by getting its features and
if sub-ProductPackages exist then getting their features as well, recursively.
After getting all Features, it replaces them with overrides or add add on Features.protected Map<String,Feature> flattenProductPackageToFeatures(ProductPackage input)
ProductPackage by getting its features and
if sub-ProductPackages exist then getting their features as well, recursively.input - - ProductPackage to be flattenedMap of all Features in a ProductPackage tree.Copyright © 2018. All rights reserved.