KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > springframework > samples > tiles > NewsItem


1 package org.springframework.samples.tiles;
2
3 /**
4  * News item data class.
5  *
6  * @author Alef Arendsen
7  */

8 public class NewsItem {
9     
10     private String JavaDoc link;
11     
12     private String JavaDoc title;
13     
14     private String JavaDoc sourceName;
15     
16     public void setLink(String JavaDoc link) {
17         this.link = link;
18     }
19     
20     public String JavaDoc getLink() {
21         return this.link;
22     }
23     
24     public void setTitle(String JavaDoc title) {
25         this.title = title;
26     }
27
28     public String JavaDoc getTitle() {
29         return this.title;
30     }
31         
32     public void setSourceName(String JavaDoc sourceName) {
33         this.sourceName = sourceName;
34     }
35
36     public String JavaDoc getSourceName() {
37         return this.sourceName;
38     }
39
40 }
41
Popular Tags