|
|||||||||||||||||||
| This license of Clover is provided to support the development of Flock only. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover. | |||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| Item.java | - | 90% | 90% | 90% |
|
||||||||||||||
| 1 |
package net.sf.flock.hibernate; |
|
| 2 |
|
|
| 3 |
import java.net.URL; |
|
| 4 |
import java.util.Date; |
|
| 5 |
|
|
| 6 |
import net.sf.flock.FeedI; |
|
| 7 |
import net.sf.flock.ItemI; |
|
| 8 |
|
|
| 9 |
class Item implements ItemI {
|
|
| 10 |
|
|
| 11 |
private FeedI origin; |
|
| 12 |
|
|
| 13 |
private String title; |
|
| 14 |
private String description; |
|
| 15 |
private URL link; |
|
| 16 |
private Date creationTime; |
|
| 17 |
|
|
| 18 |
/** |
|
| 19 |
* @see net.sf.flock.ItemI#getOrigin() |
|
| 20 |
*/ |
|
| 21 | 0 |
public FeedI getOrigin() {
|
| 22 | 0 |
return this.origin; |
| 23 |
} |
|
| 24 |
|
|
| 25 | 2 |
protected void setOrigin(FeedI origin) {
|
| 26 | 2 |
this.origin = origin; |
| 27 |
} |
|
| 28 |
|
|
| 29 |
/** |
|
| 30 |
* @see net.sf.flock.ItemI#getTitle() |
|
| 31 |
*/ |
|
| 32 | 32 |
public String getTitle() {
|
| 33 | 32 |
return this.title; |
| 34 |
} |
|
| 35 |
|
|
| 36 | 8 |
protected void setTitle(String title) {
|
| 37 | 8 |
this.title = title; |
| 38 |
} |
|
| 39 |
|
|
| 40 |
/** |
|
| 41 |
* @see net.sf.flock.ItemI#getDescription() |
|
| 42 |
*/ |
|
| 43 | 24 |
public String getDescription() {
|
| 44 | 24 |
return this.description; |
| 45 |
} |
|
| 46 |
|
|
| 47 | 8 |
protected void setDescription(String description) {
|
| 48 | 8 |
this.description = description; |
| 49 |
} |
|
| 50 |
|
|
| 51 |
/** |
|
| 52 |
* @see net.sf.flock.ItemI#getLink() |
|
| 53 |
*/ |
|
| 54 | 24 |
public URL getLink() {
|
| 55 | 24 |
return this.link; |
| 56 |
} |
|
| 57 |
|
|
| 58 | 8 |
protected void setLink(URL link) {
|
| 59 | 8 |
this.link = link; |
| 60 |
} |
|
| 61 |
|
|
| 62 |
/** |
|
| 63 |
* @see net.sf.flock.ItemI#getCreationTime() |
|
| 64 |
*/ |
|
| 65 | 24 |
public Date getCreationTime() {
|
| 66 | 24 |
return this.creationTime; |
| 67 |
} |
|
| 68 |
|
|
| 69 | 8 |
protected void setCreationTime(Date creationTime) {
|
| 70 | 8 |
this.creationTime = creationTime; |
| 71 |
} |
|
| 72 |
|
|
| 73 |
} |
|
| 74 |
|
|
||||||||||