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, size
public RenderParametersWrapper(RenderParameters wrapped)
wrapped
- the wrapped object to set.IllegalArgumentException
- if the RenderParameters is null.public RenderParameters getWrapped()
getWrapped
in class PortletParametersWrapper
public void setWrapped(RenderParameters wrapped)
wrapped
- the wrapped object to set.IllegalArgumentException
- if the RenderParameters is null.public MutableRenderParameters clone()
PortletParameters
MutablePortletParameters
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 PortletParameters
clone
in interface RenderParameters
clone
in class PortletParametersWrapper
public boolean isPublic(String name)
RenderParameters
true
is returned, it does not mean that a public
render parameter value is set.
isPublic
in interface RenderParameters
name
- 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.