org.enhydra.apache.xerces.validators.datatype
Class DatatypeMessageProvider
java.lang.Object
|
+--org.enhydra.apache.xerces.validators.datatype.DatatypeMessageProvider
- All Implemented Interfaces:
- XMLMessageProvider
- public class DatatypeMessageProvider
- extends Object
- implements XMLMessageProvider
- Version:
- $Id: DatatypeMessageProvider.java,v 1.2 2005/01/26 08:28:44 jkjome Exp $
- Author:
- Jeffrey Rodriguez
Method Summary |
String |
createMessage(Locale locale,
int majorCode,
int minorCode,
Object[] args)
Creates a message from the specified key and replacement
arguments, localized to the given locale. |
Locale |
getLocale()
get the local used for error messages |
void |
setLocale(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 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
NOT_BOOLEAN
public static final int NOT_BOOLEAN
NOT_DECIMAL
public static final int NOT_DECIMAL
NOT_FLOAT
public static final int NOT_FLOAT
NOT_DOUBLE
public static final int NOT_DOUBLE
INVALID_ENUM_VALUE
public static final int INVALID_ENUM_VALUE
OUT_OF_BOUNDS
public static final int OUT_OF_BOUNDS
NOT_ENUM_VALUE
public static final int NOT_ENUM_VALUE
FRACTION_GREATER_TOTALDIGITS
public static final int FRACTION_GREATER_TOTALDIGITS
FRACTION_EXCEEDED
public static final int FRACTION_EXCEEDED
TOTALDIGITS_EXCEEDED
public static final int TOTALDIGITS_EXCEEDED
ILLEGAL_FACET_VALUE
public static final int ILLEGAL_FACET_VALUE
ILLEGAL_ANYURI_FACET
public static final int ILLEGAL_ANYURI_FACET
ILLEGAL_BOOLEAN_FACET
public static final int ILLEGAL_BOOLEAN_FACET
ILLEGAL_BASE64_FACET
public static final int ILLEGAL_BASE64_FACET
ILLEGAL_DATETIME_FACET
public static final int ILLEGAL_DATETIME_FACET
ILLEGAL_DECIMAL_FACET
public static final int ILLEGAL_DECIMAL_FACET
ILLEGAL_DOUBLE_FACET
public static final int ILLEGAL_DOUBLE_FACET
ILLEGAL_FLOAT_FACET
public static final int ILLEGAL_FLOAT_FACET
ILLEGAL_HEXBINARY_FACET
public static final int ILLEGAL_HEXBINARY_FACET
ILLEGAL_NOTATION_FACET
public static final int ILLEGAL_NOTATION_FACET
ILLEGAL_QNAME_FACET
public static final int ILLEGAL_QNAME_FACET
ILLEGAL_STRING_FACET
public static final int ILLEGAL_STRING_FACET
ILLEGAL_LIST_FACET
public static final int ILLEGAL_LIST_FACET
ILLEGAL_UNION_FACET
public static final int ILLEGAL_UNION_FACET
ILLEGAL_ANYSIMPLETYPE_FACET
public static final int ILLEGAL_ANYSIMPLETYPE_FACET
MSG_MAX_CODE
public static final int MSG_MAX_CODE
MSG_NONE
public static final int MSG_NONE
fgMessageKeys
public static final String[] fgMessageKeys
DatatypeMessageProvider
public DatatypeMessageProvider()
setLocale
public void setLocale(Locale locale)
- Set the locale used for error messages
- Specified by:
setLocale
in interface XMLMessageProvider
- Parameters:
locale
- the new locale
getLocale
public Locale getLocale()
- get the local used for error messages
- Specified by:
getLocale
in interface XMLMessageProvider
- Returns:
- the locale
createMessage
public String createMessage(Locale locale,
int majorCode,
int minorCode,
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 The Apache Software Foundation. All Rights reserved.