public interface HstSiteMenuItem extends CommonMenuItem
Modifier and Type | Method and Description |
---|---|
List<HstSiteMenuItem> |
getChildMenuItems() |
HstSiteMenu |
getHstSiteMenu() |
String |
getLocalParameter(String name)
The value of the local (no parameters inherited from ancestor items) parameter with possible property placeholders substituted
|
Map<String,String> |
getLocalParameters() |
String |
getParameter(String name)
A HstSiteMenuItem can contain a Map of parameters.
|
Map<String,String> |
getParameters()
Parameters are inherited from ancestor sitemenu items.
|
HstSiteMenuItem |
getParentItem() |
getDepth, getExternalLink, getHstLink, getName, getProperties, isExpanded, isRepositoryBased, isSelected, resolveToSiteMapItem
List<HstSiteMenuItem> getChildMenuItems()
HstSiteMenuItem getParentItem()
HstSiteMenuItem
or null
if it is a root itemHstSiteMenu getHstSiteMenu()
HstSiteMenu
of this HstSiteMenuItem
String getParameter(String name)
null
will be returned. The parameters are fetched from the HstSiteMenuItemConfiguration.getParameter(String)
, but in the value possible property placeholders in the
value are replaced by the wildcards from HstSiteMapItem
that was matched. When there are property placeholders that can not be resolved, the value
is set to null
Parameters are inherited from ancestor HstSiteMenuItem's. When this HstSiteMenuItem configures the same parameter as an ancestor, the
value from the ancestor is overwritten.name
- the name of the parameternull
when not present or has unresolved property placeholdersString getLocalParameter(String name)
name
- the name of the parameternull
when not present or has unresolved property placeholders#getParameter(String)}, only this method returns parameters without inheritance
Map<String,String> getParameters()
HstSiteMenu
. If no parameters present, and empty map is returned#getParameter(String)}, only now the entire parameters map is returned.
Copyright © 2008-2013 Hippo B.V. (http://www.onehippo.com). All Rights Reserved.