com.atlassian.mywork.model
Class Item

java.lang.Object
  extended by com.atlassian.mywork.model.Item

public class Item
extends java.lang.Object

This class describes content related to a notification or a task.


Constructor Summary
protected Item()
           
  Item(java.lang.String iconUrl, java.lang.String title, java.lang.String url)
          Creates a new item.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getIconUrl()
          Returns the absolute url to an icon describing the related content.
 java.lang.String getTitle()
          Returns the title describing the related content.
 java.lang.String getUrl()
          Returns the absolute url to the related content.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Item

protected Item()

Item

public Item(java.lang.String iconUrl,
            java.lang.String title,
            java.lang.String url)
Creates a new item.

Parameters:
iconUrl - an absolute url to an icon describing the related content
title - a title describing the related content
url - an absolute url to the related content
Method Detail

getIconUrl

public java.lang.String getIconUrl()
Returns the absolute url to an icon describing the related content.

The icon should preferably be 16x16 px.

Returns:
the absolute url to an icon describing the related content

getTitle

public java.lang.String getTitle()
Returns the title describing the related content.

Returns:
the title describing the related content

getUrl

public java.lang.String getUrl()
Returns the absolute url to the related content.

Returns:
the absolute url to the related content

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2012 Atlassian. All Rights Reserved.