public class MutableRenderParametersWrapper extends MutablePortletParametersWrapper implements MutableRenderParameters
MutableRenderParametersWrapper
provides a convenient
implementation of the MutableRenderParameters
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 |
---|
MutableRenderParametersWrapper(MutableRenderParameters wrapped) |
Modifier and Type | Method and Description |
---|---|
void |
clearPrivate()
Clears all private parameters that are present in the
MutableRenderParameters object. |
void |
clearPublic()
Clears all public parameters that are present in the
MutableRenderParameters object. |
MutableRenderParameters |
clone()
Returns a
MutablePortletParameters object encapsulating a copy of the same
parameters as the original object. |
MutableRenderParameters |
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(MutableRenderParameters wrapped)
Sets the wrapped object.
|
add, clear, removeParameter, set, setValue, setValues, setWrapped
getNames, getValue, getValues, isEmpty, setWrapped, size
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, clear, getNames, removeParameter, set, setValue, setValues
getValue, getValues, isEmpty, size
public MutableRenderParametersWrapper(MutableRenderParameters wrapped)
wrapped
- the wrapped object to set.IllegalArgumentException
- if the MutableRenderParameters is null.public MutableRenderParameters getWrapped()
getWrapped
in class MutablePortletParametersWrapper
public void setWrapped(MutableRenderParameters wrapped)
wrapped
- the wrapped object to set.IllegalArgumentException
- if the MutableRenderParameters 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
otherwisepublic void clearPrivate()
MutableRenderParameters
MutableRenderParameters
object.
clearPrivate
in interface MutableRenderParameters
public void clearPublic()
MutableRenderParameters
MutableRenderParameters
object.
clearPublic
in interface MutableRenderParameters
Java Portlet 3.0 API Specification. See the Copyright and License provided with this distribution. Use is subject to license terms.