public abstract class AbstractResourceReference extends Object implements ResourceReference
Constructor and Description |
---|
AbstractResourceReference() |
Modifier and Type | Method and Description |
---|---|
void |
addParameter(String name,
Object value) |
boolean |
equals(Object object) |
Map<String,List<String>> |
getParameters()
A Resource Reference parameter provides optional additional information about the Resource Reference.
|
String |
getParameterValue(String name) |
List<String> |
getParameterValues(String name) |
ResourceType |
getType() |
int |
hashCode() |
protected void |
setParameter(String name,
Object value)
Add or replace an existing parameter with the passed value.
|
void |
setType(ResourceType type) |
String |
toString() |
public ResourceType getType()
getType
in interface ResourceReference
public void setType(ResourceType type)
type
- see getType()
public void addParameter(String name, Object value)
addParameter
in interface ResourceReference
name
- the name of the parameter to addvalue
- the value of the parameter to add. If null then no value is added. Collections are also supported
in which case a multivalued parameter is used.protected void setParameter(String name, Object value)
name
- the name of the parameter to addvalue
- the value of the parameter to add. If null then no value is added. Collections are also supported in
which case a multivalued parameter is used.public Map<String,List<String>> getParameters()
ResourceReference
getParameters
in interface ResourceReference
public List<String> getParameterValues(String name)
getParameterValues
in interface ResourceReference
name
- the parameter name for which to return the valuespublic String getParameterValue(String name)
getParameterValue
in interface ResourceReference
name
- the parameter name for which to return the valueCopyright © 2004–2021 XWiki. All rights reserved.