org.apache.xerces.validators.schema
Class SchemaMessageProvider

java.lang.Object
  |
  +--org.apache.xerces.validators.schema.SchemaMessageProvider

public class SchemaMessageProvider
extends java.lang.Object
implements XMLMessageProvider

SchemaMessageProvider implements an XMLMessageProvider that provides localizable error messages for the W3C XML Schema Language


Field Summary
static int AttMissingType
           
static int DatatypeError
           
static int DatatypeQualUnsupported
           
static int DatatypeWithType
           
static int EltRefOnlyInMixedElemOnly
           
static int FeatureUnsupported
           
static java.lang.String[] fgMessageKeys
           
static int GroupContentRestricted
           
static int IllegalAttContent
           
static int IncorrectDatatype
           
static int IncorrectDefaultType
           
static int MSG_BAD_MAJORCODE
           
static int MSG_FORMAT_FAILURE
           
static int MSG_MAX_CODE
           
static int MSG_NONE
           
static int NestedOnlyInElemOnly
           
static int NoContentForRef
           
static int NotADatatype
           
static int NoValidatorFor
           
static int OneOfTypeRefArchRef
           
static int OnlyInEltContent
           
static int OrderIsAll
           
static java.lang.String SCHEMA_DOMAIN
          The domain of messages concerning the XML Schema: Structures specification.
static int TextOnlyContentWithType
           
static int UnknownBaseDatatype
           
static int ValueNotInteger
           
 
Constructor Summary
SchemaMessageProvider()
           
 
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

SCHEMA_DOMAIN

public static final java.lang.String SCHEMA_DOMAIN
The domain of messages concerning the XML Schema: Structures specification.

MSG_BAD_MAJORCODE

public static final int MSG_BAD_MAJORCODE

MSG_FORMAT_FAILURE

public static final int MSG_FORMAT_FAILURE

NoValidatorFor

public static final int NoValidatorFor

IncorrectDatatype

public static final int IncorrectDatatype

AttMissingType

public static final int AttMissingType

NotADatatype

public static final int NotADatatype

TextOnlyContentWithType

public static final int TextOnlyContentWithType

FeatureUnsupported

public static final int FeatureUnsupported

NestedOnlyInElemOnly

public static final int NestedOnlyInElemOnly

EltRefOnlyInMixedElemOnly

public static final int EltRefOnlyInMixedElemOnly

OnlyInEltContent

public static final int OnlyInEltContent

OrderIsAll

public static final int OrderIsAll

DatatypeWithType

public static final int DatatypeWithType

DatatypeQualUnsupported

public static final int DatatypeQualUnsupported

GroupContentRestricted

public static final int GroupContentRestricted

UnknownBaseDatatype

public static final int UnknownBaseDatatype

OneOfTypeRefArchRef

public static final int OneOfTypeRefArchRef

NoContentForRef

public static final int NoContentForRef

IncorrectDefaultType

public static final int IncorrectDefaultType

IllegalAttContent

public static final int IllegalAttContent

ValueNotInteger

public static final int ValueNotInteger

DatatypeError

public static final int DatatypeError

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
Constructor Detail

SchemaMessageProvider

public SchemaMessageProvider()
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
Tags copied from 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
Tags copied from 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.