Class Linkable
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<String,Object>
-
- com.xwiki.projectmanagement.model.Linkable
-
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,Object>
public class Linkable extends HashMap<String,Object>
Describes a property that be accessed through a URL.- Since:
- 1.0
- Version:
- $Id$
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static StringKEY_LOCATIONThe key identifying the value property of the linkable item.static StringKEY_VALUEThe key identifying the value property of the linkable item.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetLocation()StringgetValue()voidsetLocation(String location)voidsetValue(String value)-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
-
-
-
Field Detail
-
KEY_VALUE
public static final String KEY_VALUE
The key identifying the value property of the linkable item.- See Also:
- Constant Field Values
-
KEY_LOCATION
public static final String KEY_LOCATION
The key identifying the value property of the linkable item.- See Also:
- Constant Field Values
-
-
Method Detail
-
getLocation
public String getLocation()
- Returns:
- the location where this object can be accessed. i.e. the url to a user profile.
-
setLocation
public void setLocation(String location)
- Parameters:
location- seegetLocation().
-
getValue
public String getValue()
- Returns:
- the value of this property. i.e. a username.
-
setValue
public void setValue(String value)
- Parameters:
value- seegetValue().
-
-