org.apache.xerces.impl.dv.dtd
Class DatatypeMessageProvider
java.lang.Object
|
+--org.apache.xerces.impl.dv.dtd.DatatypeMessageProvider
- All Implemented Interfaces:
- MessageFormatter
- public class DatatypeMessageProvider
- extends java.lang.Object
- implements MessageFormatter
- Version:
- $Id: DatatypeMessageProvider.java,v 1.2 2002/01/29 01:15:11 lehors Exp $
- Author:
- Jeffrey Rodriguez
Method Summary |
java.lang.String |
formatMessage(java.util.Locale locale,
java.lang.String key,
java.lang.Object[] arguments)
Formats a message with the specified arguments using the given
locale information. |
java.util.Locale |
getLocale()
get the local used for error messages |
void |
setLocale(java.util.Locale locale)
Set the locale used for error messages |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DATATYPE_DOMAIN
public static final java.lang.String DATATYPE_DOMAIN
- The domain of messages concerning the XML Schema: Datatypes specification.
MSG_BAD_MAJORCODE
public static final int MSG_BAD_MAJORCODE
MSG_FORMAT_FAILURE
public static final int MSG_FORMAT_FAILURE
NotBoolean
public static final int NotBoolean
NotDecimal
public static final int NotDecimal
FacetsInconsistent
public static final int FacetsInconsistent
IllegalFacetValue
public static final int IllegalFacetValue
IllegalDecimalFacet
public static final int IllegalDecimalFacet
UnknownFacet
public static final int UnknownFacet
InvalidEnumValue
public static final int InvalidEnumValue
OutOfBounds
public static final int OutOfBounds
NotAnEnumValue
public static final int NotAnEnumValue
NotInteger
public static final int NotInteger
IllegalIntegerFacet
public static final int IllegalIntegerFacet
NotReal
public static final int NotReal
IllegalRealFacet
public static final int IllegalRealFacet
ScaleLargerThanPrecision
public static final int ScaleLargerThanPrecision
PrecisionExceeded
public static final int PrecisionExceeded
ScaleExceeded
public static final int ScaleExceeded
NotFloat
public static final int NotFloat
MSG_MAX_CODE
public static final int MSG_MAX_CODE
MSG_NONE
public static final int MSG_NONE
fgMessageKeys
public static final java.lang.String[] fgMessageKeys
DatatypeMessageProvider
public DatatypeMessageProvider()
setLocale
public void setLocale(java.util.Locale locale)
- Set the locale used for error messages
- Parameters:
locale
- the new locale
getLocale
public java.util.Locale getLocale()
- get the local used for error messages
- Returns:
- the locale
formatMessage
public java.lang.String formatMessage(java.util.Locale locale,
java.lang.String key,
java.lang.Object[] arguments)
throws java.util.MissingResourceException
- Description copied from interface:
MessageFormatter
- Formats a message with the specified arguments using the given
locale information.
- Specified by:
formatMessage
in interface MessageFormatter
- Following copied from interface:
org.apache.xerces.util.MessageFormatter
- Parameters:
locale
- The locale of the message.key
- The message key.arguments
- The message replacement text arguments. The order
of the arguments must match that of the placeholders
in the actual message.- Returns:
- Returns the formatted message.
- Throws:
java.util.MissingResourceException
- Thrown if the message with the
specified key cannot be found.
Copyright © 1999-2002 Apache XML Project. All Rights Reserved.