Enhydra 5.1 API

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:
1.4.4

Field Summary
static int BAD_MAJORCODE
           
static int ENC4
           
static int ENC5
           
static int ENC6
           
static int ENC7
           
static int FATAL_ERROR
           
static int FORMAT_FAILED
           
static int INT_DCN
           
static int INT_PCN
           
static int IO0
           
static int VAL_BST
           
static int VAL_CMSI
           
static int VAL_CST
           
static int VAL_LST
           
static int VAL_NIICM
           
static int VAL_NPCD
           
static int VAL_UST
           
static int VAL_WCGHI
           
static java.lang.String XERCES_IMPLEMENTATION_DOMAIN
          The domain of messages concerning the Xerces implementation.
 
Constructor Summary
ImplementationMessages()
           
 
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
 

Field Detail

XERCES_IMPLEMENTATION_DOMAIN

public static final java.lang.String XERCES_IMPLEMENTATION_DOMAIN
The domain of messages concerning the Xerces implementation.

See Also:
Constant Field Values

BAD_MAJORCODE

public static final int BAD_MAJORCODE
See Also:
Constant Field Values

ENC4

public static final int ENC4
See Also:
Constant Field Values

ENC5

public static final int ENC5
See Also:
Constant Field Values

ENC6

public static final int ENC6
See Also:
Constant Field Values

ENC7

public static final int ENC7
See Also:
Constant Field Values

IO0

public static final int IO0
See Also:
Constant Field Values

VAL_BST

public static final int VAL_BST
See Also:
Constant Field Values

VAL_CMSI

public static final int VAL_CMSI
See Also:
Constant Field Values

VAL_CST

public static final int VAL_CST
See Also:
Constant Field Values

VAL_LST

public static final int VAL_LST
See Also:
Constant Field Values

VAL_NIICM

public static final int VAL_NIICM
See Also:
Constant Field Values

VAL_NPCD

public static final int VAL_NPCD
See Also:
Constant Field Values

VAL_UST

public static final int VAL_UST
See Also:
Constant Field Values

VAL_WCGHI

public static final int VAL_WCGHI
See Also:
Constant Field Values

INT_DCN

public static final int INT_DCN
See Also:
Constant Field Values

INT_PCN

public static final int INT_PCN
See Also:
Constant Field Values

FATAL_ERROR

public static final int FATAL_ERROR
See Also:
Constant Field Values

FORMAT_FAILED

public static final int FORMAT_FAILED
See Also:
Constant Field Values
Constructor Detail

ImplementationMessages

public ImplementationMessages()
Method Detail

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
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
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.
args - The arguments to be used as replacement text in the message created.

Enhydra 5.1 API