Package org.hippoecm.hst.core.sitemenu
Interface HstSiteMenuItem
- All Superinterfaces:
CommonMenuItem
The HstSiteMenuItem's is a tree of HstSiteMenuItem. The root item does not have a parent.
-
Method Summary
Modifier and TypeMethodDescriptiongetLocalParameter
(String name) The value of the local (no parameters inherited from ancestor items) parameter with possible property placeholders substitutedgetParameter
(String name) A HstSiteMenuItem can contain a Map of parameters.Parameters are inherited from ancestor sitemenu items.Methods inherited from interface org.hippoecm.hst.core.sitemenu.CommonMenuItem
getDepth, getExternalLink, getHstLink, getName, getProperties, isExpanded, isRepositoryBased, isSelected, resolveToSiteMapItem
-
Method Details
-
getChildMenuItems
List<HstSiteMenuItem> getChildMenuItems()- Returns:
- all direct child SiteMenuItem's of this item
-
getParentItem
HstSiteMenuItem getParentItem()- Returns:
- parent
HstSiteMenuItem
ornull
if it is a root item
-
getHstSiteMenu
HstSiteMenu getHstSiteMenu()- Returns:
- the container
HstSiteMenu
of thisHstSiteMenuItem
-
getParameter
A HstSiteMenuItem can contain a Map of parameters. A parameter from this Map can be accessed through this method. If it is not present,null
will be returned. The parameters are fetched from theHstSiteMenuItemConfiguration.getParameter(String)
, but in the value possible property placeholders in the value are replaced by the wildcards fromHstSiteMapItem
that was matched. When there are property placeholders that can not be resolved, the value is set tonull
Parameters are inherited from ancestor HstSiteMenuItem's. When this HstSiteMenuItem configures the same parameter as an ancestor, the value from the ancestor is overwritten.- Parameters:
name
- the name of the parameter- Returns:
- the value of the parameter or
null
when not present or has unresolved property placeholders
-
getLocalParameter
The value of the local (no parameters inherited from ancestor items) parameter with possible property placeholders substituted- Parameters:
name
- the name of the parameter- Returns:
- the value of the parameter or
null
when not present or has unresolved property placeholders - See Also:
-
getParameters
Parameters are inherited from ancestor sitemenu items. When this sitemenu item configures the same parameter as an ancestor, the value from the ancestor is overwritten.- Returns:
- the Map of parameters contained in this
HstSiteMenu
. If no parameters present, and empty map is returned - See Also:
-
getLocalParameters
- Returns:
- the Map of parameters contained in this
HstSiteMapItem
. If no parameters present, and empty map is returned - See Also:
-