Module org.apache.wicket.request
Interface INamedParameters
- All Known Implementing Classes:
PageParameters
public interface INamedParameters
Container for parameters that are identified by their name
- Author:
- igor
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Represents a named parameter entry.static enum
A hint where the parameter is read/parsed from. -
Method Summary
Modifier and TypeMethodDescriptionadd
(String name, Object value, int index, INamedParameters.Type type) Adds named parameter to a specified position.add
(String name, Object value, INamedParameters.Type type) Adds value to named parameter with given name.Removes all named parameters.Returns parameter value of named parameter with given nameReturn set of all named parameter names.int
getPosition
(String name) Returns the position of a named parameter.Return list of all values for named parameter with given nameRemoves named parameter with given name.set
(String name, Object value, int index, INamedParameters.Type type) Sets the named parameter on specified position.set
(String name, Object value, INamedParameters.Type type) Sets the value for named parameter with given name.
-
Method Details
-
getNamedKeys
Return set of all named parameter names.- Returns:
- named parameter names
-
get
Returns parameter value of named parameter with given name- Parameters:
name
-- Returns:
- parameter value
-
getValues
Return list of all values for named parameter with given name- Parameters:
name
-- Returns:
- list of parameter values
-
getAllNamed
- Returns:
- All named parameters in exact order.
-
getAllNamedByType
- Parameters:
type
- The type to filter- Returns:
- All named parameters with the given type. If the type is
null
then returns all named parameters.
-
getPosition
Returns the position of a named parameter.- Parameters:
name
- the name of the parameter to look for- Returns:
- the position of the parameter.
-1
if there is no parameter with that name.
-
remove
Removes named parameter with given name.- Parameters:
name
- the name of the parameter to removevalues
- values used as criteria. The parameter will be removed only if its value is equal to any of the criteria.- Returns:
- this
-
add
Adds value to named parameter with given name.- Parameters:
name
-value
-type
-- Returns:
- this
-
add
Adds named parameter to a specified position. TheIRequestMapper
s may or may not take the order into account.- Parameters:
name
-value
-index
-type
-- Returns:
- this
-
set
Sets the named parameter on specified position. TheIRequestMapper
s may or may not take the order into account.- Parameters:
name
-value
-index
-type
-- Returns:
- this
-
set
Sets the value for named parameter with given name.- Parameters:
name
-value
-type
-- Returns:
- this
-
clearNamed
Removes all named parameters.- Returns:
- this
-