KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > javabb > vo > BadWord


1 package org.javabb.vo;
2
3 import java.io.Serializable JavaDoc;
4
5 /*
6  * Copyright 2004 JavaFree.org
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  */

20
21 /* $Id: BadWord.java,v 1.6.8.2 2006/04/17 17:46:55 daltoncamargo Exp $ */
22 /**
23  * This class represent a offensive word that should be censured in forum.
24  * @author Dalton Camargo - <a HREF="mailto:dalton@javabb.org">dalton@javabb.org </a> <br>
25  * @author Ronald Tetsuo Miura
26  */

27 public class BadWord extends VOObject implements Serializable JavaDoc {
28
29     private String JavaDoc word;
30
31     private String JavaDoc replacement;
32
33     /**
34      * Default constructor.
35      */

36     public BadWord() {
37         // do nothing
38
}
39
40     /**
41      * @param id
42      */

43     public BadWord(Long JavaDoc id) {
44         setId(id);
45     }
46
47     /**
48      * @param word
49      * @param replacement
50      */

51     public BadWord(String JavaDoc word, String JavaDoc replacement) {
52         this(null, word, replacement);
53     }
54
55     /**
56      * @param id
57      * @param word
58      * @param replacement
59      */

60     public BadWord(Long JavaDoc id, String JavaDoc word, String JavaDoc replacement) {
61         setId(id);
62         setWord(word);
63         setReplacement(replacement);
64     }
65
66     /**
67      * @return Returns the idBadWord.
68      */

69     public Long JavaDoc getIdBadWord() {
70         return getId();
71     }
72
73     /**
74      * @param id The idBadWord to set.
75      */

76     public void setIdBadWord(Long JavaDoc id) {
77         this.setId(id);
78     }
79
80     /**
81      * @return Returns the replacement.
82      */

83     public String JavaDoc getReplacement() {
84         return replacement;
85     }
86
87     /**
88      * @param replacement The replacement to set.
89      */

90     public void setReplacement(String JavaDoc replacement) {
91         this.replacement = replacement;
92     }
93
94     /**
95      * @return Returns the word.
96      */

97     public String JavaDoc getWord() {
98         return word;
99     }
100
101     /**
102      * @param word The word to set.
103      */

104     public void setWord(String JavaDoc word) {
105         this.word = word;
106     }
107 }
108
Popular Tags