KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > org > apache > xml > internal > utils > res > XResourceBundleBase


1 /*
2  * Copyright 1999-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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  * $Id: XResourceBundleBase.java,v 1.7 2004/02/17 04:22:15 minchau Exp $
18  */

19 package com.sun.org.apache.xml.internal.utils.res;
20
21 import java.util.ListResourceBundle JavaDoc;
22
23 /**
24  * This is an interface for error messages. This class is misnamed,
25  * and should be called XalanResourceBundle, or some such.
26  * @xsl.usage internal
27  */

28 abstract public class XResourceBundleBase extends ListResourceBundle JavaDoc
29 {
30
31   /**
32    * Get the error string associated with the error code
33    *
34    * @param errorCode Error code
35    *
36    * @return error string associated with the given error code
37    */

38   abstract public String JavaDoc getMessageKey(int errorCode);
39
40   /**
41    * Get the warning string associated with the error code
42    *
43    * @param errorCode Error code
44    *
45    * @return warning string associated with the given error code
46    */

47   abstract public String JavaDoc getWarningKey(int errorCode);
48 }
49
Popular Tags