public class RenderParametersWrapper extends PortletParametersWrapper implements RenderParameters
RenderParametersWrapper provides a convenient
implementation of the RenderParameters interface
that can be subclassed by developers.
This class implements the Wrapper or Decorator pattern.
Methods default to calling through to the wrapped request object.
wrapped| Constructor and Description |
|---|
RenderParametersWrapper(RenderParameters wrapped) |
| Modifier and Type | Method and Description |
|---|---|
MutableRenderParameters |
clone()
Returns a
MutablePortletParameters object encapsulating a copy of the same
parameters as the original object. |
RenderParameters |
getWrapped()
Gets the wrapped object.
|
boolean |
isPublic(String name)
Returns a boolean value indicating whether the given
parameter name represents a public render parameter.
|
void |
setWrapped(RenderParameters wrapped)
Sets the wrapped object.
|
getNames, getValue, getValues, isEmpty, setWrapped, sizepublic RenderParametersWrapper(RenderParameters wrapped)
wrapped - the wrapped object to set.IllegalArgumentException - if the RenderParameters is null.public RenderParameters getWrapped()
getWrapped in class PortletParametersWrapperpublic void setWrapped(RenderParameters wrapped)
wrapped - the wrapped object to set.IllegalArgumentException - if the RenderParameters is null.public MutableRenderParameters clone()
PortletParametersMutablePortletParameters object encapsulating a copy of the same
parameters as the original object.
Changing a mutable copy will not influence the source object.
clone in interface PortletParametersclone in interface RenderParametersclone in class PortletParametersWrapperpublic boolean isPublic(String name)
RenderParameterstrue is returned, it does not mean that a public
render parameter value is set.
isPublic in interface RenderParametersname - the parameter nametrue if the given parameter
name represents a public render parameter.
false otherwiseJava Portlet 3.0 API Specification. See the Copyright and License provided with this distribution. Use is subject to license terms.