org.enhydra.apache.xerces.validators.schema
Class SchemaMessageProvider

java.lang.Object
  |
  +--org.enhydra.apache.xerces.validators.schema.SchemaMessageProvider
All Implemented Interfaces:
XMLMessageProvider

public class SchemaMessageProvider
extends Object
implements XMLMessageProvider

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


Field Summary
static int AbsentKeyValue
           
static int AllContentLimited
           
static int AllContentRestricted
           
static int AnnotationError
           
static int AttMissingType
           
static int BadAttWithRef
           
static int BadMinMaxForAllElem
           
static int BadMinMaxForAllGp
           
static int BadMinMaxForGroupWithAll
           
static int CardinalityNotEqual
           
static int Con3X3AttributeAppearance
           
static int Con3X3AttributeInvalidValue
           
static int Con3X3AttributeMustAppear
           
static int Con3X3ElementAppearance
           
static int ContentError
           
static int DatatypeError
           
static int DatatypeQualUnsupported
           
static int DatatypeWithType
           
static int DuplicateField
           
static int DuplicateKey
           
static int DuplicateUnique
           
static int EltRefOnlyInMixedElemOnly
           
static int FeatureUnsupported
           
static String[] fgMessageKeys
           
static int FieldMultipleMatch
           
static int FixedDiffersFromActual
           
static int GenericError
           
static int GroupContentRestricted
           
static int IllegalAttContent
           
static int IncorrectDatatype
           
static int IncorrectDefaultType
           
static int InvalidBaseType
           
static int KeyMatchesNillable
           
static int KeyNotEnoughValues
           
static int KeyNotFound
           
static int KeyRefNotEnoughValues
           
static int KeyRefOutOfScope
           
static int KeyRefReferNotFound
           
static int ListUnionRestrictionError
           
static int MinMaxOnGroupChild
           
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 OnlyInEltContent
           
static int OrderIsAll
           
static int ProhibitedAttributePresent
           
static String SCHEMA_DOMAIN
          The domain of messages concerning the XML Schema: Structures specification.
static int SchemaLocation
           
static int SeqChoiceContentRestricted
           
static int TextOnlyContentWithType
           
static int TypeAlreadySet
           
static int UnclassifiedError
           
static int UniqueNotEnoughValues
           
static int UniqueParticleAttribution
           
static int UnknownBaseDatatype
           
static int UnknownField
           
static int ValueNotInteger
           
 
Constructor Summary
SchemaMessageProvider()
           
 
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 locale being used for error messages
 void setLocale(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 String SCHEMA_DOMAIN
The domain of messages concerning the XML Schema: Structures specification.

See Also:
Constant Field Values

MSG_BAD_MAJORCODE

public static final int MSG_BAD_MAJORCODE
See Also:
Constant Field Values

MSG_FORMAT_FAILURE

public static final int MSG_FORMAT_FAILURE
See Also:
Constant Field Values

NoValidatorFor

public static final int NoValidatorFor
See Also:
Constant Field Values

IncorrectDatatype

public static final int IncorrectDatatype
See Also:
Constant Field Values

AttMissingType

public static final int AttMissingType
See Also:
Constant Field Values

NotADatatype

public static final int NotADatatype
See Also:
Constant Field Values

TextOnlyContentWithType

public static final int TextOnlyContentWithType
See Also:
Constant Field Values

FeatureUnsupported

public static final int FeatureUnsupported
See Also:
Constant Field Values

NestedOnlyInElemOnly

public static final int NestedOnlyInElemOnly
See Also:
Constant Field Values

EltRefOnlyInMixedElemOnly

public static final int EltRefOnlyInMixedElemOnly
See Also:
Constant Field Values

OnlyInEltContent

public static final int OnlyInEltContent
See Also:
Constant Field Values

OrderIsAll

public static final int OrderIsAll
See Also:
Constant Field Values

DatatypeWithType

public static final int DatatypeWithType
See Also:
Constant Field Values

DatatypeQualUnsupported

public static final int DatatypeQualUnsupported
See Also:
Constant Field Values

GroupContentRestricted

public static final int GroupContentRestricted
See Also:
Constant Field Values

UnknownBaseDatatype

public static final int UnknownBaseDatatype
See Also:
Constant Field Values

BadAttWithRef

public static final int BadAttWithRef
See Also:
Constant Field Values

NoContentForRef

public static final int NoContentForRef
See Also:
Constant Field Values

IncorrectDefaultType

public static final int IncorrectDefaultType
See Also:
Constant Field Values

IllegalAttContent

public static final int IllegalAttContent
See Also:
Constant Field Values

ValueNotInteger

public static final int ValueNotInteger
See Also:
Constant Field Values

DatatypeError

public static final int DatatypeError
See Also:
Constant Field Values

TypeAlreadySet

public static final int TypeAlreadySet
See Also:
Constant Field Values

GenericError

public static final int GenericError
See Also:
Constant Field Values

UnclassifiedError

public static final int UnclassifiedError
See Also:
Constant Field Values

ContentError

public static final int ContentError
See Also:
Constant Field Values

AnnotationError

public static final int AnnotationError
See Also:
Constant Field Values

ListUnionRestrictionError

public static final int ListUnionRestrictionError
See Also:
Constant Field Values

ProhibitedAttributePresent

public static final int ProhibitedAttributePresent
See Also:
Constant Field Values

UniqueNotEnoughValues

public static final int UniqueNotEnoughValues
See Also:
Constant Field Values

KeyNotEnoughValues

public static final int KeyNotEnoughValues
See Also:
Constant Field Values

KeyRefNotEnoughValues

public static final int KeyRefNotEnoughValues
See Also:
Constant Field Values

DuplicateField

public static final int DuplicateField
See Also:
Constant Field Values

DuplicateUnique

public static final int DuplicateUnique
See Also:
Constant Field Values

DuplicateKey

public static final int DuplicateKey
See Also:
Constant Field Values

KeyNotFound

public static final int KeyNotFound
See Also:
Constant Field Values

UnknownField

public static final int UnknownField
See Also:
Constant Field Values

KeyRefReferNotFound

public static final int KeyRefReferNotFound
See Also:
Constant Field Values

FixedDiffersFromActual

public static final int FixedDiffersFromActual
See Also:
Constant Field Values

InvalidBaseType

public static final int InvalidBaseType
See Also:
Constant Field Values

FieldMultipleMatch

public static final int FieldMultipleMatch
See Also:
Constant Field Values

KeyRefOutOfScope

public static final int KeyRefOutOfScope
See Also:
Constant Field Values

AbsentKeyValue

public static final int AbsentKeyValue
See Also:
Constant Field Values

KeyMatchesNillable

public static final int KeyMatchesNillable
See Also:
Constant Field Values

BadMinMaxForAllElem

public static final int BadMinMaxForAllElem
See Also:
Constant Field Values

BadMinMaxForGroupWithAll

public static final int BadMinMaxForGroupWithAll
See Also:
Constant Field Values

SeqChoiceContentRestricted

public static final int SeqChoiceContentRestricted
See Also:
Constant Field Values

AllContentRestricted

public static final int AllContentRestricted
See Also:
Constant Field Values

AllContentLimited

public static final int AllContentLimited
See Also:
Constant Field Values

MinMaxOnGroupChild

public static final int MinMaxOnGroupChild
See Also:
Constant Field Values

BadMinMaxForAllGp

public static final int BadMinMaxForAllGp
See Also:
Constant Field Values

SchemaLocation

public static final int SchemaLocation
See Also:
Constant Field Values

UniqueParticleAttribution

public static final int UniqueParticleAttribution
See Also:
Constant Field Values

Con3X3ElementAppearance

public static final int Con3X3ElementAppearance
See Also:
Constant Field Values

Con3X3AttributeAppearance

public static final int Con3X3AttributeAppearance
See Also:
Constant Field Values

Con3X3AttributeMustAppear

public static final int Con3X3AttributeMustAppear
See Also:
Constant Field Values

Con3X3AttributeInvalidValue

public static final int Con3X3AttributeInvalidValue
See Also:
Constant Field Values

CardinalityNotEqual

public static final int CardinalityNotEqual
See Also:
Constant Field Values

MSG_MAX_CODE

public static final int MSG_MAX_CODE
See Also:
Constant Field Values

MSG_NONE

public static final int MSG_NONE
See Also:
Constant Field Values

fgMessageKeys

public static final String[] fgMessageKeys
Constructor Detail

SchemaMessageProvider

public SchemaMessageProvider()
Method Detail

setLocale

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


Copyright © 1999 The Apache Software Foundation. All Rights reserved.