|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.mywork.model.Item
public class Item
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 url to an icon describing the related content. |
java.lang.String |
getTitle()
Returns the title describing the related content. |
java.lang.String |
getUrl()
Returns 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 |
---|
protected Item()
public Item(java.lang.String iconUrl, java.lang.String title, java.lang.String url)
URLs can be either absolute urls or a urls that start with '/' and are relative to the base url of the creating application. Relative urls are only supported for notifications that have a registration.
iconUrl
- url to an icon describing the related contenttitle
- a title describing the related contenturl
- url to the related contentMethod Detail |
---|
public java.lang.String getIconUrl()
URL can be either an absolute url or a url that starts with '/' and is relative to the base url of the creating application. Relative urls are only supported for notifications that have a registration.
The icon should preferably be 16x16 px.
public java.lang.String getTitle()
public java.lang.String getUrl()
URL can be either an absolute url or a url that starts with '/' and is relative to the base url of the creating application. Relative urls are only supported for notifications that have a registration.
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |