Class PortletParametersWrapper

    • Constructor Detail

      • PortletParametersWrapper

        public PortletParametersWrapper​(PortletParameters wrapped)
        Parameters:
        wrapped - the wrapped object to set.
        Throws:
        IllegalArgumentException - if the PortletParameters is null.
    • Method Detail

      • getWrapped

        public PortletParameters getWrapped()
        Gets the wrapped object.
        Returns:
        the wrapped object.
      • setWrapped

        public void setWrapped​(PortletParameters wrapped)
        Sets the wrapped object.
        Parameters:
        wrapped - the wrapped object to set.
        Throws:
        IllegalArgumentException - if the PortletParameters is null.
      • getNames

        public Set<String> getNames()
        Description copied from interface: PortletParameters
        Returns a Set of String objects containing the names of the parameters contained in this object. Changing the Set has no effect on the originating PortletParameters object.

        Only parameter names targeted to the current portlet are returned.

        Specified by:
        getNames in interface PortletParameters
        Returns:
        a Set of String objects, each String containing the name of a parameter; or an empty Set if the PortletParameters object has no parameters.
      • getValues

        public String[] getValues​(String name)
        Description copied from interface: PortletParameters
        Returns an array of String objects containing all of the values the given parameter, or null if the parameter does not exist.

        If the parameter has a single value, the array has a length of 1.

        Note that individual parameter values in the returned array may be null.

        Specified by:
        getValues in interface PortletParameters
        Parameters:
        name - a String containing the name of the parameter the value of which is requested
        Returns:
        an array of String objects containing the parameter values, or null if the parameter does not exist.
        See Also:
        PortletParameters.getValue(java.lang.String)
      • isEmpty

        public boolean isEmpty()
        Description copied from interface: PortletParameters
        Returns a true if no parameters have been set.
        Specified by:
        isEmpty in interface PortletParameters
        Returns:
        true if the object contains no parameters. false otherwise
      • size

        public int size()
        Description copied from interface: PortletParameters
        Returns the number of parameters in this object.
        Specified by:
        size in interface PortletParameters
        Returns:
        the number of parameters in this object
      • clone

        public MutablePortletParameters clone()
        Description copied from interface: PortletParameters
        Returns a MutablePortletParameters object encapsulating a copy of the same parameters as the original object. Changing a mutable copy will not influence the source object.
        Specified by:
        clone in interface PortletParameters
        Overrides:
        clone in class Object
        Returns:
        Mutable clone of PortletParameters object