org.silvermoon.moonglow.common
Class Item

java.lang.Object
  |
  +--java.util.AbstractMap
        |
        +--java.util.HashMap
              |
              +--org.silvermoon.moonglow.common.Item
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class Item
extends java.util.HashMap

Represents a single item in a response to a query. Each item defines some basic required fields, e.g. id, title, link, and description. Additional properties can be added which are specific to the data source.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.util.Map
java.util.Map.Entry
 
Constructor Summary
Item()
           
Item(java.lang.String id, java.lang.String title, java.lang.String link, java.lang.String description)
           
 
Method Summary
 java.lang.String getDescription()
          Get a description of this Item
 java.lang.String getId()
          Get a unique identifier for this Item within the scope of its Plugin
 java.lang.String getLink()
          Get a URL associated with this item
 java.lang.String getTitle()
          Get the title of this item
 void setDescription(java.lang.String description)
          Set the description
 void setId(java.lang.String id)
          Set the id
 void setLink(java.lang.String link)
          Set the link (URL)
 void setTitle(java.lang.String title)
          Set the title
 java.lang.String toString()
          Get a basic String representation for debugging
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

Item

public Item()

Item

public Item(java.lang.String id,
            java.lang.String title,
            java.lang.String link,
            java.lang.String description)
Method Detail

getDescription

public java.lang.String getDescription()
Get a description of this Item


getId

public java.lang.String getId()
Get a unique identifier for this Item within the scope of its Plugin


getLink

public java.lang.String getLink()
Get a URL associated with this item


getTitle

public java.lang.String getTitle()
Get the title of this item


toString

public java.lang.String toString()
Get a basic String representation for debugging

Overrides:
toString in class java.util.AbstractMap

setDescription

public void setDescription(java.lang.String description)
Set the description


setId

public void setId(java.lang.String id)
Set the id


setLink

public void setLink(java.lang.String link)
Set the link (URL)


setTitle

public void setTitle(java.lang.String title)
Set the title