org.apache.xerces.validators.datatype
Class DatatypeMessageProvider
java.lang.Object
|
+--org.apache.xerces.validators.datatype.DatatypeMessageProvider
- public class DatatypeMessageProvider
- extends java.lang.Object
- implements XMLMessageProvider
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 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
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
- Specified by:
- setLocale in interface XMLMessageProvider
- Parameters:
locale
- the new locale
getLocale
public java.util.Locale getLocale()
- get the local 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.key
- The key for the message text.args
- The arguments to be used as replacement text
in the message created.
Copyright © 1999 Apache XML Project. All Rights Reserved.