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:
  • Field Details

    • KEY_VALUE

      public static final String KEY_VALUE
      The key identifying the value property of the linkable item.
      See Also:
    • KEY_LOCATION

      public static final String KEY_LOCATION
      The key identifying the value property of the linkable item.
      See Also:
  • Constructor Details

    • Linkable

      public Linkable()
      Default constructor.
    • Linkable

      public Linkable(String value, String location)
      Parameters:
      value - the value this object wraps.
      location - the location where the resource represented by this object can be accessed.
  • Method Details

    • 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 - see getLocation().
    • getValue

      public String getValue()
      Returns:
      the value of this property. i.e. a username.
    • setValue

      public void setValue(String value)
      Parameters:
      value - see getValue().