public class HierarchicalPageNavigableTransformer<T extends IHierarchialReference> extends Object implements org.apache.commons.collections.Transformer
HierarchialDomainObject
or Object[name,hierarchy,...] or String[name,hierarchy,...] and determines if it should be Navigable or not
levelMap
specific Where each level will point to. One can also provide Special catch/generic keys (<=0
) to encompass general use cases & defaults.
Modifier and Type | Field and Description |
---|---|
protected static Pattern |
HIERARCHY_COUNT |
protected Map<Integer,Boolean> |
levelMap
For every level maintain a Prefix Path that will be appended to the product name
A product @ root level is 1; 1_1 (level 2) etc. |
Constructor and Description |
---|
HierarchicalPageNavigableTransformer() |
Modifier and Type | Method and Description |
---|---|
Map<Integer,Boolean> |
getLevelMap()
For every level maintain a Prefix Path that will be appended to the product name
A product @ root level is 1; 1_1 (level 2) etc. |
void |
setLevelMap(Map<Integer,Boolean> levelMap)
For every level maintain a Prefix Path that will be appended to the product name
A product @ root level is 1; 1_1 (level 2) etc. |
Object |
transform(Object input)
Returns a path or null (if the Item is not supposed to link and just serve as a category)
|
protected Map<Integer,Boolean> levelMap
protected static final Pattern HIERARCHY_COUNT
public HierarchicalPageNavigableTransformer()
public Object transform(Object input)
transform
in interface org.apache.commons.collections.Transformer
public Map<Integer,Boolean> getLevelMap()
Copyright © 2018. All rights reserved.