public class MockComponentConfiguration extends Object implements ComponentConfiguration
Constructor and Description |
---|
MockComponentConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
addLocalParameter(String name,
String value) |
void |
addParameter(String name,
String value) |
void |
addRawLocalParameter(String name,
String value) |
void |
addRawParameter(String name,
String value) |
String |
getCanonicalIdentifier()
Returns the identifier of the backing stored component configuration.
|
String |
getCanonicalPath()
Returns the canonical path of the backing stored configuration location.
|
HstComponentConfiguration.Type |
getComponentType() |
String |
getLocalParameter(String name,
ResolvedSiteMapItem hstResolvedSiteMapItem)
Returns the property without inheritance and if an expession exists it is resolved with the help of the ResolvedSiteMapItem
|
Map<String,String> |
getLocalParameters(ResolvedSiteMapItem hstResolvedSiteMapItem)
Returns all resolved parameters without inheritance into a map
|
String |
getParameter(String name,
ResolvedSiteMapItem hstResolvedSiteMapItem)
Returns the property and if an expession exists it is resolved with the help of the ResolvedSiteMapItem
|
List<String> |
getParameterNames() |
Map<String,String> |
getParameters(ResolvedSiteMapItem hstResolvedSiteMapItem)
Returns all resolved parameters into a map
|
Map<String,String> |
getRawLocalParameters()
|
Map<String,String> |
getRawParameters()
|
String |
getRenderPath() |
String |
getServeResourcePath() |
String |
getXType() |
void |
removeLocalParameter(String name) |
void |
removeParameter(String name) |
void |
removeRawLocalParameter(String name) |
void |
removeRawParameter(String name) |
void |
setCanonicalIdentifier(String canonicalIdentifier) |
void |
setCanonicalPath(String canonicalPath) |
void |
setComponentType(HstComponentConfiguration.Type componentType) |
void |
setRenderPath(String renderPath) |
void |
setServeResourcePath(String serveResourcePath) |
void |
setXType(String xType) |
public String getParameter(String name, ResolvedSiteMapItem hstResolvedSiteMapItem)
ComponentConfiguration
getParameter
in interface ComponentConfiguration
public Map<String,String> getParameters(ResolvedSiteMapItem hstResolvedSiteMapItem)
ComponentConfiguration
getParameters
in interface ComponentConfiguration
public void removeParameter(String name)
public String getLocalParameter(String name, ResolvedSiteMapItem hstResolvedSiteMapItem)
ComponentConfiguration
getLocalParameter
in interface ComponentConfiguration
public Map<String,String> getLocalParameters(ResolvedSiteMapItem hstResolvedSiteMapItem)
ComponentConfiguration
getLocalParameters
in interface ComponentConfiguration
public void removeLocalParameter(String name)
public Map<String,String> getRawParameters()
ComponentConfiguration
ComponentConfiguration.getParameters(ResolvedSiteMapItem)
. Normally, you use ComponentConfiguration.getParameters(ResolvedSiteMapItem)
, unless you want to access
parameter values without having their property placeholders (like ${1}) substituded by the current request context. In other words, the parameter values
exactly the way they are in the HstComponentConfiguration
getRawParameters
in interface ComponentConfiguration
public void removeRawParameter(String name)
public Map<String,String> getRawLocalParameters()
ComponentConfiguration
ComponentConfiguration.getLocalParameters(ResolvedSiteMapItem)
. Normally, you use ComponentConfiguration.getLocalParameters(ResolvedSiteMapItem)
, unless you want to access
parameter values without having their property placeholders (like ${1}) substituded by the current request context. In other words, the parameter values
exactly the way they are in the HstComponentConfiguration
. Note that this method does not return inherited parameters, but only its local (directly)
configured onesgetRawLocalParameters
in interface ComponentConfiguration
public void removeRawLocalParameter(String name)
public String getRenderPath()
getRenderPath
in interface ComponentConfiguration
public void setRenderPath(String renderPath)
public String getServeResourcePath()
getServeResourcePath
in interface ComponentConfiguration
HstComponent
public void setServeResourcePath(String serveResourcePath)
public String getCanonicalPath()
ComponentConfiguration
ComponentConfiguration
's
can share the same canonical path: When a component is added by a reference, this method will return the same canonical path as the
direct (not referenced) component.getCanonicalPath
in interface ComponentConfiguration
public void setCanonicalPath(String canonicalPath)
public String getCanonicalIdentifier()
ComponentConfiguration
ComponentConfiguration
's can share the same
canonical identifier due to inheritance. Also, multiple subsites can share the same backing configuration, and thus share the same canonical identifiersgetCanonicalIdentifier
in interface ComponentConfiguration
public void setCanonicalIdentifier(String canonicalIdentifier)
public HstComponentConfiguration.Type getComponentType()
getComponentType
in interface ComponentConfiguration
HstComponentConfiguration.Type
of this ComponentConfiguration
public void setComponentType(HstComponentConfiguration.Type componentType)
public String getXType()
getXType
in interface ComponentConfiguration
null
if the component does not have onepublic void setXType(String xType)
public List<String> getParameterNames()
getParameterNames
in interface ComponentConfiguration
Copyright © 2008–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.