| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
|
| 15 | |
|
| 16 | |
|
| 17 | |
|
| 18 | |
|
| 19 | |
|
| 20 | |
|
| 21 | |
package no.sesat.search.view.output.syndication.modules; |
| 22 | |
|
| 23 | |
import com.sun.syndication.feed.module.ModuleImpl; |
| 24 | |
import org.jdom.Namespace; |
| 25 | |
|
| 26 | |
|
| 27 | |
|
| 28 | |
|
| 29 | |
public class SearchResultModuleImpl extends ModuleImpl |
| 30 | |
implements SearchResultModule { |
| 31 | |
|
| 32 | 0 | public static final Namespace NS |
| 33 | |
= Namespace.getNamespace(SearchResultModule.PREFIX, SearchResultModule.URI); |
| 34 | |
|
| 35 | |
private String numberOfHits; |
| 36 | |
private String articleAge; |
| 37 | |
private String newsSource; |
| 38 | |
|
| 39 | |
|
| 40 | |
|
| 41 | |
|
| 42 | |
public SearchResultModuleImpl() { |
| 43 | 0 | super(SearchResultModule.class, SearchResultModule.URI); |
| 44 | 0 | } |
| 45 | |
|
| 46 | |
|
| 47 | |
|
| 48 | |
|
| 49 | |
public Class getInterface() { |
| 50 | 0 | return SearchResultModule.class; |
| 51 | |
} |
| 52 | |
|
| 53 | |
|
| 54 | |
|
| 55 | |
|
| 56 | |
public void copyFrom(final Object object) { |
| 57 | 0 | SearchResultModule m = (SearchResultModule) object; |
| 58 | 0 | setNumberOfHits(m.getNumberOfHits()); |
| 59 | 0 | setArticleAge(m.getArticleAge()); |
| 60 | 0 | } |
| 61 | |
|
| 62 | |
|
| 63 | |
|
| 64 | |
|
| 65 | |
public String getNumberOfHits() { |
| 66 | 0 | return numberOfHits; |
| 67 | |
} |
| 68 | |
|
| 69 | |
|
| 70 | |
public void setNewsSource(String newsSource) { |
| 71 | 0 | this.newsSource = newsSource; |
| 72 | 0 | } |
| 73 | |
|
| 74 | |
|
| 75 | |
public String getNewsSource() { |
| 76 | 0 | return newsSource; |
| 77 | |
} |
| 78 | |
|
| 79 | |
|
| 80 | |
|
| 81 | |
|
| 82 | |
public void setNumberOfHits(final String numberOfHits) { |
| 83 | 0 | this.numberOfHits = numberOfHits; |
| 84 | 0 | } |
| 85 | |
|
| 86 | |
|
| 87 | |
|
| 88 | |
|
| 89 | |
public String getArticleAge() { |
| 90 | 0 | return articleAge; |
| 91 | |
} |
| 92 | |
|
| 93 | |
|
| 94 | |
|
| 95 | |
|
| 96 | |
public void setArticleAge(final String articleAge) { |
| 97 | 0 | this.articleAge = articleAge; |
| 98 | 0 | } |
| 99 | |
} |