|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
net.sourceforge.eclipsetrader.core.db.PersistentObject
net.sourceforge.eclipsetrader.core.db.NewsItem
Instances of this class represents a news headline.
Constructor Summary | |
---|---|
NewsItem()
Construct an empty news item. |
|
NewsItem(java.lang.Integer id)
Construct an empty news item with the given id. |
Method Summary | |
---|---|
void |
addSecurities(java.util.List list)
Adds the securities in the given list to the list of securities related to this headline. |
void |
addSecurity(Security security)
Adds a security to the list of securities related to this headline. |
boolean |
equals(java.lang.Object obj)
Compares two headline objects for equality. |
java.util.Date |
getDate()
Returns the headline's date. |
java.util.List |
getSecurities()
Returns an unmodifiable list of securities related to this headline. |
java.lang.String |
getSource()
Returns the headline's source (news agency). |
java.lang.String |
getTitle()
Returns the headline's title. |
java.lang.String |
getUrl()
Returns the url of the headline's web page. |
boolean |
isReaded()
Returns wether this headline was readed by the user. |
boolean |
isRecent()
Returns wether this headline was recently added to the database. |
boolean |
isSecurity(Security security)
Returns wether this headline is related to the given security. |
void |
setDate(java.util.Date date)
Sets the headline's date. |
void |
setReaded(boolean readed)
Sets the readed flag. |
void |
setRecent(boolean recent)
Sets the recently added flag. |
void |
setSecurities(java.util.List securities)
Sets the list of securities related to this headline. |
void |
setSource(java.lang.String source)
Sets the headline's source (news agency). |
void |
setTitle(java.lang.String title)
Sets the headline's title. |
void |
setUrl(java.lang.String url)
Sets the url of the headline's web page. |
Methods inherited from class net.sourceforge.eclipsetrader.core.db.PersistentObject |
---|
clearChanged, getData, getId, getRepository, setChanged, setData, setId, setRepository |
Methods inherited from class java.util.Observable |
---|
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NewsItem()
public NewsItem(java.lang.Integer id)
Method Detail |
public java.util.Date getDate()
public void setDate(java.util.Date date)
date
- the date to set.public java.lang.String getTitle()
public void setTitle(java.lang.String title)
title
- the title to set.public java.util.List getSecurities()
public void setSecurities(java.util.List securities)
public void addSecurity(Security security)
security
- the security to add.public void addSecurities(java.util.List list)
list
- the list of securities to add.public boolean isSecurity(Security security)
security
- the security to check.
public java.lang.String getSource()
public void setSource(java.lang.String source)
source
- the name to set.public java.lang.String getUrl()
public void setUrl(java.lang.String url)
url
- the url to set.public boolean isRecent()
public void setRecent(boolean recent)
recent
- the recently flag status.public boolean isReaded()
public void setReaded(boolean readed)
readed
- the readed flag status.public boolean equals(java.lang.Object obj)
equals
in class PersistentObject
obj
- the object to compare.
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |