public class MenuJSONTransformer extends Object implements EntityToJson
Menu or MenuItemState or MenuItem representation into JSONArray String MenuItemState or Menu type one can provide an optional param ignoreNavigableNodeChildren; which will
ignore the path below the current node selection if it is selectable to optimize and reduce the tree. Many times the current nav item may represent
a flow of its own and it may not be necessary to represent those @ the current moment. For such situations the optimization based on State exists.| Constructor and Description |
|---|
MenuJSONTransformer() |
| Modifier and Type | Method and Description |
|---|---|
net.sf.json.JsonConfig |
getJsonConfig() |
protected List<MenuItemState> |
getNodeChildStates(MenuItemState menuItemState,
boolean ignoreNavigableNodeChildren)
Override to dictate custom strategies on what child elements can be loaded for a given parent
MenuItemState |
Object |
transform(Object input) |
protected List<MenuItemState> getNodeChildStates(MenuItemState menuItemState, boolean ignoreNavigableNodeChildren)
MenuItemStatepublic Object transform(Object input)
transform in interface org.apache.commons.collections.Transformerpublic net.sf.json.JsonConfig getJsonConfig()
getJsonConfig in interface EntityToJsonJsonConfigCopyright © 2018. All rights reserved.