01: /*
02: * Copyright 1999-2004 The Apache Software Foundation.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
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 org.apache.xml.utils.res;
20:
21: import java.util.ListResourceBundle;
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 {
29:
30: /**
31: * Get the error string associated with the error code
32: *
33: * @param errorCode Error code
34: *
35: * @return error string associated with the given error code
36: */
37: abstract public String getMessageKey(int errorCode);
38:
39: /**
40: * Get the warning string associated with the error code
41: *
42: * @param errorCode Error code
43: *
44: * @return warning string associated with the given error code
45: */
46: abstract public String getWarningKey(int errorCode);
47: }
|