@Unstable public abstract class AbstractResource extends Object implements Resource
| Constructor and Description |
|---|
AbstractResource(ResourceType type) |
| Modifier and Type | Method and Description |
|---|---|
void |
addParameter(String name,
String value) |
ActionId |
getActionId() |
Map<String,List<String>> |
getParameters()
A Resource parameter provides optional additional information about the Resource.
|
String |
getParameterValue(String name) |
List<String> |
getParameterValues(String name) |
ResourceType |
getType() |
void |
setActionId(ActionId action) |
void |
setType(ResourceType type) |
public AbstractResource(ResourceType type)
type - see getType()public ResourceType getType()
public void setType(ResourceType type)
type - see getType()public ActionId getActionId()
getActionId in interface Resourcepublic void setActionId(ActionId action)
action - see getActionId()public void addParameter(String name, String value)
addParameter in interface Resourcename - the name of the parameter to addvalue - the value of the parameter to add. If null then no value is added.public Map<String,List<String>> getParameters()
ResourcegetParameters in interface Resourcepublic List<String> getParameterValues(String name)
getParameterValues in interface Resourcename - the parameter name for which to return the valuespublic String getParameterValue(String name)
getParameterValue in interface Resourcename - the parameter name for which to return the valueCopyright © 2004–2014 XWiki. All rights reserved.