org.apache.xerces.utils
Class ImplementationMessages
java.lang.Object
|
+--org.apache.xerces.utils.ImplementationMessages
- All Implemented Interfaces:
- XMLMessageProvider
- public class ImplementationMessages
- extends java.lang.Object
- implements XMLMessageProvider
ImplementationMessages provides messages internal to the parser implementation
- Version:
-
Method Summary |
java.lang.String |
createMessage(java.util.Locale locale,
int majorCode,
int minorCode,
java.lang.Object[] args)
Creates a message from the specified key and replacement
arguments, localized to the given locale. |
java.util.Locale |
getLocale()
Get the locale being used for error messages |
void |
setLocale(java.util.Locale locale)
Set the locale to be used for error messages |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XERCES_IMPLEMENTATION_DOMAIN
public static final java.lang.String XERCES_IMPLEMENTATION_DOMAIN
- The domain of messages concerning the Xerces implementation.
BAD_MAJORCODE
public static final int BAD_MAJORCODE
ENC4
public static final int ENC4
ENC5
public static final int ENC5
ENC6
public static final int ENC6
ENC7
public static final int ENC7
IO0
public static final int IO0
VAL_BST
public static final int VAL_BST
VAL_CMSI
public static final int VAL_CMSI
VAL_CST
public static final int VAL_CST
VAL_LST
public static final int VAL_LST
VAL_NIICM
public static final int VAL_NIICM
VAL_NPCD
public static final int VAL_NPCD
VAL_UST
public static final int VAL_UST
VAL_WCGHI
public static final int VAL_WCGHI
INT_DCN
public static final int INT_DCN
INT_PCN
public static final int INT_PCN
FATAL_ERROR
public static final int FATAL_ERROR
FORMAT_FAILED
public static final int FORMAT_FAILED
ImplementationMessages
public ImplementationMessages()
setLocale
public void setLocale(java.util.Locale locale)
- Description copied from interface:
XMLMessageProvider
- Set the locale to be used for error messages
- Specified by:
setLocale
in interface XMLMessageProvider
- Following copied from interface:
org.apache.xerces.utils.XMLMessageProvider
- Parameters:
locale
- the new locale
getLocale
public java.util.Locale getLocale()
- Description copied from interface:
XMLMessageProvider
- Get the locale being used for error messages
- Specified by:
getLocale
in interface XMLMessageProvider
- Following copied from interface:
org.apache.xerces.utils.XMLMessageProvider
- Returns:
- the locale
createMessage
public java.lang.String createMessage(java.util.Locale locale,
int majorCode,
int minorCode,
java.lang.Object[] args)
- Creates a message from the specified key and replacement
arguments, localized to the given locale.
- Specified by:
createMessage
in interface XMLMessageProvider
- Parameters:
locale
- The requested locale of the message to be
created.key
- The key for the message text.args
- The arguments to be used as replacement text
in the message created.
Copyright © 1999-2001 Apache XML Project. All Rights Reserved.