Class Linkable

    • 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
    • Constructor Detail

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