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. import java.util.ListResourceBundle;
  21. /**
  22. * This is an interface for error messages. This class is misnamed,
  23. * and should be called XalanResourceBundle, or some such.
  24. * @xsl.usage internal
  25. */
  26. abstract public class XResourceBundleBase extends ListResourceBundle
  27. {
  28. /**
  29. * Get the error string associated with the error code
  30. *
  31. * @param errorCode Error code
  32. *
  33. * @return error string associated with the given error code
  34. */
  35. abstract public String getMessageKey(int errorCode);
  36. /**
  37. * Get the warning string associated with the error code
  38. *
  39. * @param errorCode Error code
  40. *
  41. * @return warning string associated with the given error code
  42. */
  43. abstract public String getWarningKey(int errorCode);
  44. }