01: /*
02: * Copyright 2004-2006 the original author or authors.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16:
17: package org.compass.sample.library;
18:
19: import java.util.Date;
20:
21: /**
22: *
23: * @author kimchy
24: */
25: public class Article {
26:
27: private String title;
28:
29: private String[] keywords;
30:
31: private Date publishDate;
32:
33: private String summary;
34:
35: private String content;
36:
37: public Article() {
38:
39: }
40:
41: public Article(String title, Date publishDate, String summary,
42: String content, String[] keywords) {
43: this .title = title;
44: this .publishDate = publishDate;
45: this .content = content;
46: this .summary = summary;
47: this .keywords = keywords;
48: }
49:
50: public String getContent() {
51: return content;
52: }
53:
54: public void setContent(String content) {
55: this .content = content;
56: }
57:
58: public Date getPublishDate() {
59: return publishDate;
60: }
61:
62: public void setPublishDate(Date date) {
63: this .publishDate = date;
64: }
65:
66: public String getTitle() {
67: return title;
68: }
69:
70: public void setTitle(String title) {
71: this .title = title;
72: }
73:
74: public String[] getKeywords() {
75: return keywords;
76: }
77:
78: public void setKeywords(String[] keywords) {
79: this .keywords = keywords;
80: }
81:
82: public String getSummary() {
83: return summary;
84: }
85:
86: public void setSummary(String summary) {
87: this .summary = summary;
88: }
89:
90: public String toString() {
91: return title;
92: }
93:
94: }
|