|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hippoecm.hst.site.request.SiteMapItemHandlerConfigurationImpl
public class SiteMapItemHandlerConfigurationImpl
The SiteMapItemHandlerConfigurationImpl which is the runtime instance of the SiteMapItemHandlerConfiguration. Note that
this object is not thread-safe, and created only once for a HstSiteMapItemHandler
and attached to it during init
Field Summary | |
---|---|
HstSiteMapItemHandlerConfiguration |
handlerConfig
|
Constructor Summary | |
---|---|
SiteMapItemHandlerConfigurationImpl(HstSiteMapItemHandlerConfiguration handlerConfig)
|
Method Summary | ||
---|---|---|
|
getProperties(ResolvedSiteMapItem resolvedSiteMapItem,
Class<T> mappingClass)
a property is of type String, Boolean, Long, Double or Calendar or an array of one of these objects. |
|
|
getProperty(String name,
ResolvedSiteMapItem resolvedSiteMapItem,
Class<T> mappingClass)
a property is of type String, Boolean, Long, Double or Calendar or an array of one of these objects. |
|
|
getRawProperties(Class<T> mappingClass)
a property is of type String, Boolean, Long, Double or Calendar or an array of one of these objects. |
|
|
getRawProperty(String name,
Class<T> mappingClass)
a property is of type String, Boolean, Long, Double or Calendar or an array of one of these objects. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public HstSiteMapItemHandlerConfiguration handlerConfig
Constructor Detail |
---|
public SiteMapItemHandlerConfigurationImpl(HstSiteMapItemHandlerConfiguration handlerConfig)
Method Detail |
---|
public <T> Map<String,T> getProperties(ResolvedSiteMapItem resolvedSiteMapItem, Class<T> mappingClass)
a property is of type String, Boolean, Long, Double or Calendar or an array of one of these objects.
Returns all resolved properties of type mappingClass into a map. If the property is of type String and contains a property placeholder, this property placeholder is replaced with it's value. If it cannot be resolved, the property won't be in the map. If the property is of type String[], all properties having a property placeholder are resolved. If a property placeholder cannot be resolved, that item in the array will benull
getProperties
in interface SiteMapItemHandlerConfiguration
mappingClass
- the class the property values should be of
public <T> T getProperty(String name, ResolvedSiteMapItem resolvedSiteMapItem, Class<T> mappingClass)
a property is of type String, Boolean, Long, Double or Calendar or an array of one of these objects.
getProperty
in interface SiteMapItemHandlerConfiguration
mappingClass
- the class the property value should be of
null
will be returned in case for a String and in case of a String[] the value of the item in the array will be null
public <T> Map<String,T> getRawProperties(Class<T> mappingClass)
a property is of type String, Boolean, Long, Double or Calendar or an array of one of these objects.
Returns the map of all unresolved properties of type T into a map and an empty map if there are no properties of type mappingClass
getRawProperties
in interface SiteMapItemHandlerConfiguration
mappingClass
- the class the property values should be of
public <T> T getRawProperty(String name, Class<T> mappingClass)
a property is of type String, Boolean, Long, Double or Calendar or an array of one of these objects.
Returns the unresolved property forname
or null
when not present or is not of type mappingClass
getRawProperty
in interface SiteMapItemHandlerConfiguration
mappingClass
- the class the property value should be of
name
or null
when not present or not of type mappingClass
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |