KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > j2biz > blogunity > i18n > I18NStatusImpl


1 /*
2  * $Id: I18NStatusImpl.java,v 1.1 2004/12/10 22:53:55 michelson Exp $
3  *
4  * Copyright (c) 2004 j2biz Group, http://www.j2biz.com Koeln / Duesseldorf ,
5  * Germany
6  *
7  * @author Max Kalina
8  *
9  *
10  * This program is free software; you can redistribute it and/or modify it under
11  * the terms of the GNU General Public License as published by the Free Software
12  * Foundation; either version 2 of the License, or (at your option) any later
13  * version.
14  *
15  * This program is distributed in the hope that it will be useful, but WITHOUT
16  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
17  * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
18  * details.
19  *
20  * You should have received a copy of the GNU General Public License along with
21  * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
22  * Place, Suite 330, Boston, MA 02111-1307 USA
23  *
24  */

25
26 package com.j2biz.blogunity.i18n;
27
28 class I18NStatusImpl implements I18NStatus {
29
30     private String JavaDoc key = I18N.ERRORS.UNKNOWN;
31
32     private String JavaDoc[] parameters;
33
34     private Throwable JavaDoc cause;
35
36     public I18NStatusImpl() {
37
38     }
39
40     public I18NStatusImpl(String JavaDoc key) {
41         this.key = key;
42     }
43
44     public I18NStatusImpl(String JavaDoc key, String JavaDoc[] parameters) {
45         this.key = key;
46         this.parameters = parameters;
47     }
48
49     public I18NStatusImpl(String JavaDoc key, Throwable JavaDoc cause) {
50         this.key = key;
51         this.cause = cause;
52     }
53
54     public I18NStatusImpl(String JavaDoc key, String JavaDoc[] parameters, Throwable JavaDoc cause) {
55         this.key = key;
56         this.parameters = parameters;
57         this.cause = cause;
58     }
59
60     /*
61      * (non-Javadoc)
62      *
63      * @see com.j2biz.blogunity.i18n.I18NStatus#getKey()
64      */

65     public String JavaDoc getKey() {
66         return key;
67     }
68
69     /*
70      * (non-Javadoc)
71      *
72      * @see com.j2biz.blogunity.i18n.I18NStatus#getParameters()
73      */

74     public String JavaDoc[] getParameters() {
75         return parameters;
76     }
77
78     /*
79      * (non-Javadoc)
80      *
81      * @see com.j2biz.blogunity.i18n.I18NStatus#getCause()
82      */

83     public Throwable JavaDoc getCause() {
84         return cause;
85     }
86
87 }
Popular Tags