public interface HstSiteMap
HstSiteMap
contains a list of (root) HstSiteMapItem
objects which themselves might contain additional
HstSiteMapItem
children and so on. As a HstSiteMapItem
might have an id, which needs to be unique
within the HstSiteMap
, through which a direct lookup of such a HstSiteMapItem
is also possible
NOTE: As HstComponent
instances can access HstSiteMap
instances but should not be able to modify them,
implementations must make sure that through the api a HstSiteMap
instance cannot be changed. Returned List and Map
should be therefor unmodifiable.Modifier and Type | Method and Description |
---|---|
HstSite |
getSite()
Return the
HstSite this HstSiteMap belongs to. |
HstSiteMapItem |
getSiteMapItem(String value)
Return the child
HstSiteMapItem that has the corresponding value (HstSiteMapItem.getValue() )
and null otherwise |
HstSiteMapItem |
getSiteMapItemById(String id)
Return the child
HstSiteMapItem that has the corresponding id (HstSiteMapItem.getId() )
and null otherwise |
HstSiteMapItem |
getSiteMapItemByRefId(String refId)
Return the child
HstSiteMapItem that has the corresponding refId (HstSiteMapItem.getRefId() )
and null otherwise |
List<HstSiteMapItem> |
getSiteMapItems()
The list of
SiteMapItem 's that are root items. |
HstSite getSite()
HstSite
this HstSiteMap
belongs to.HstSiteMap
belongs toList<HstSiteMapItem> getSiteMapItems()
SiteMapItem
's that are root
items. They represent the first paths of the urls.
Implementations should return an unmodifiable list, for example Collections.UnmodifiableList
to avoid
client code changing configurationSiteMapItem
'sHstSiteMapItem getSiteMapItem(String value)
HstSiteMapItem
that has the corresponding value
(HstSiteMapItem.getValue()
)
and null
otherwisevalue
- the value of the child HstSiteMapItem
as it would be returned by HstSiteMapItem.getValue()
value
and null
if no HstSiteMapItem
exists with this value
in this HstSiteMapItem
object.HstSiteMapItem getSiteMapItemById(String id)
HstSiteMapItem
that has the corresponding id
(HstSiteMapItem.getId()
)
and null
otherwiseid
- the id of the child HstSiteMapItem
as it would be return by HstSiteMapItem.getId()
id
and null
if no HstSiteMapItem
exists with this refId
in this HstSiteMapItem
object.HstSiteMapItem getSiteMapItemByRefId(String refId)
HstSiteMapItem
that has the corresponding refId
(HstSiteMapItem.getRefId()
)
and null
otherwiserefId
- the refId of the child HstSiteMapItem
as it would be return by HstSiteMapItem.getRefId()
refId
and null
if no HstSiteMapItem
exists with this refId
in this HstSiteMapItem
object.Copyright © 2008–2017 Hippo B.V. (http://www.onehippo.com). All rights reserved.