KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > opencms > setup > xml > Messages


1 /*
2  * File : $Source: /usr/local/cvs/opencms/src/org/opencms/setup/xml/Messages.java,v $
3  * Date : $Date: 2006/04/28 15:20:52 $
4  * Version: $Revision: 1.2 $
5  *
6  * Copyright (c) 2005 Alkacon Software GmbH (http://www.alkacon.com)
7  * All rights reserved.
8  *
9  * This source code is the intellectual property of Alkacon Software GmbH.
10  * It is PROPRIETARY and CONFIDENTIAL.
11  * Use of this source code is subject to license terms.
12  *
13  * In order to use this source code, you need written permission from
14  * Alkacon Software GmbH. Redistribution of this source code, in modified
15  * or unmodified form, is not allowed unless written permission by
16  * Alkacon Software GmbH has been given.
17  *
18  * ALKACON SOFTWARE GMBH MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY
19  * OF THIS SOURCE CODE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
20  * TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
21  * PURPOSE, OR NON-INFRINGEMENT. ALKACON SOFTWARE GMBH SHALL NOT BE LIABLE FOR ANY
22  * DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
23  * THIS SOURCE CODE OR ITS DERIVATIVES.
24  *
25  * For further information about Alkacon Software GmbH, please see the
26  * company website: http://www.alkacon.com
27  */

28
29 package org.opencms.setup.xml;
30
31 import org.opencms.i18n.A_CmsMessageBundle;
32 import org.opencms.i18n.I_CmsMessageBundle;
33
34 /**
35  * Convenience class to access the localized messages of this OpenCms package.<p>
36  *
37  * @author Michael Moossen
38  *
39  * @version $Revision: 1.2 $
40  *
41  * @since 6.2.0
42  */

43 public final class Messages extends A_CmsMessageBundle {
44     
45     /** Message contant for key in the resource bundle. */
46     public static final String JavaDoc ERR_XML_SET_VALUE_2 = "ERR_XML_SET_VALUE_2";
47
48     /** Name of the used resource bundle. */
49     private static final String JavaDoc BUNDLE_NAME = "org.opencms.setup.xml.messages";
50
51     /** Static instance member. */
52     private static final I_CmsMessageBundle INSTANCE = new Messages();
53
54     /**
55      * Hides the public constructor for this utility class.<p>
56      */

57     private Messages() {
58
59         // hide the constructor
60
}
61
62     /**
63      * Returns an instance of this localized message accessor.<p>
64      *
65      * @return an instance of this localized message accessor
66      */

67     public static I_CmsMessageBundle get() {
68
69         return INSTANCE;
70     }
71
72     /**
73      * Returns the bundle name for this OpenCms package.<p>
74      *
75      * @return the bundle name for this OpenCms package
76      */

77     public String JavaDoc getBundleName() {
78
79         return BUNDLE_NAME;
80     }
81
82 }
83
Popular Tags