View Javadoc

1   package org.gnomekr.potron.parser;
2   
3   import java.io.Serializable;
4   import java.util.List;
5   
6   /***
7    * ParserEntry.java
8    * @author Xavier Cho
9    * @version $Revision 1.1 $ $Date: 2005/08/27 15:30:31 $
10   */
11  public class ParserEntry implements Serializable {
12  
13      private static final long serialVersionUID = -8018191711268420561L;
14  
15      private String msgId;
16      private String msgIdPlural;
17      private List<String> msgStr;
18      private boolean fuzzy;
19      private String comment;
20      private String references;
21  
22      /***
23       * @return Returns the comment.
24       */
25      public String getComment() {
26          return comment;
27      }
28  
29      /***
30       * @param comment The comment to set.
31       */
32      public void setComment(String comment) {
33          this.comment = comment;
34      }
35  
36      /***
37       * @return Returns the fuzzy.
38       */
39      public boolean isFuzzy() {
40          return fuzzy;
41      }
42  
43      /***
44       * @param fuzzy The fuzzy to set.
45       */
46      public void setFuzzy(boolean fuzzy) {
47          this.fuzzy = fuzzy;
48      }
49  
50      /***
51       * @return Returns the msgid.
52       */
53      public String getMsgId() {
54          return msgId;
55      }
56  
57      /***
58       * @param msgid The msgid to set.
59       */
60      public void setMsgId(String msgid) {
61          this.msgId = msgid;
62      }
63  
64      /***
65       * @return Returns the msgid_plural.
66       */
67      public String getMsgIdPlural() {
68          return msgIdPlural;
69      }
70  
71      /***
72       * @param msgid The msgid_plural to set.
73       */
74      public void setMsgIdPlural(String msgid_plural) {
75          this.msgIdPlural = msgid_plural;
76      }
77  
78      /***
79       * @return Returns the msgstr.
80       */
81      public List<String> getMsgStr() {
82          return msgStr;
83      }
84  
85      /***
86       * @param msgstr The msgstr to set.
87       */
88      public void setMsgStr(List<String> msgstr) {
89          this.msgStr = msgstr;
90      }
91  
92      /***
93       * @return Returns the references.
94       */
95      public String getReferences() {
96          return references;
97      }
98  
99      /***
100      * @param references The references to set.
101      */
102     public void setReferences(String references) {
103         this.references = references;
104     }
105     
106     public void addReferences(String references) {
107         if (this.references == null) {
108             this.references = references;
109         } else {
110             this.references = new StringBuffer(this.references).append(' ')
111                     .append(references).toString();
112         }
113     }
114 
115 }