Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.xerces.utils
Class XMLMessages  view XMLMessages download XMLMessages.java

java.lang.Object
  extended byorg.apache.xerces.utils.XMLMessages
All Implemented Interfaces:
XMLMessageProvider

public class XMLMessages
extends java.lang.Object
implements XMLMessageProvider

XMLMessages provides error messages for the XML 1.0 Recommendation and for the Namespaces Recommendation


Field Summary
static int CONSTRAINT_MAX_CODE
           
private static java.lang.String[] fgMessageKeys
           
private  java.util.Locale fLocale
           
private  java.util.ResourceBundle fResourceBundle
           
static int MSG_ATT_DEFAULT_INVALID
           
static int MSG_ATTRIBUTE_NAME_REQUIRED_IN_ATTDEF
           
static int MSG_ATTRIBUTE_NOT_DECLARED
           
static int MSG_ATTRIBUTE_NOT_UNIQUE
           
static int MSG_ATTRIBUTE_VALUE_NOT_IN_LIST
           
static int MSG_ATTRIBUTE_VALUE_UNTERMINATED
           
static int MSG_ATTTYPE_REQUIRED_IN_ATTDEF
           
static int MSG_ATTVALUE_CHANGED_DURING_NORMALIZATION_WHEN_STANDALONE
           
static int MSG_AVAILABLE1
           
static int MSG_AVAILABLE2
           
static int MSG_AVAILABLE3
           
static int MSG_AVAILABLE4
           
static int MSG_AVAILABLE5
           
static int MSG_AVAILABLE6
           
static int MSG_BAD_MAJORCODE
           
static int MSG_CDEND_IN_CONTENT
           
static int MSG_CDSECT_UNTERMINATED
           
static int MSG_CLOSE_PAREN_REQUIRED_IN_CHILDREN
           
static int MSG_CLOSE_PAREN_REQUIRED_IN_MIXED
           
static int MSG_COMMENT_NOT_IN_ONE_ENTITY
           
static int MSG_COMMENT_UNTERMINATED
           
static int MSG_CONTENT_INCOMPLETE
           
static int MSG_CONTENT_INVALID
           
static int MSG_CONTENTSPEC_REQUIRED_IN_ELEMENTDECL
           
static int MSG_DASH_DASH_IN_COMMENT
           
static int MSG_DEFAULTED_ATTRIBUTE_NOT_SPECIFIED
           
static int MSG_DIGIT_REQUIRED_IN_CHARREF
           
static int MSG_DOCTYPEDECL_UNTERMINATED
           
static int MSG_DUPLICATE_ATTDEF
           
static int MSG_DUPLICATE_TYPE_IN_MIXED_CONTENT
           
static int MSG_ELEMENT_ALREADY_DECLARED
           
static int MSG_ELEMENT_ENTITY_MISMATCH
           
static int MSG_ELEMENT_NOT_DECLARED
           
static int MSG_ELEMENT_TYPE_REQUIRED_IN_ATTLISTDECL
           
static int MSG_ELEMENT_TYPE_REQUIRED_IN_ELEMENTDECL
           
static int MSG_ELEMENT_TYPE_REQUIRED_IN_MIXED_CONTENT
           
static int MSG_ELEMENT_UNTERMINATED
           
static int MSG_ELEMENT_WITH_ID_REQUIRED
           
static int MSG_ELEMENTDECL_UNTERMINATED
           
static int MSG_ENCODING_NOT_SUPPORTED
           
static int MSG_ENCODING_REQUIRED
           
static int MSG_ENCODINGDECL_INVALID
           
static int MSG_ENCODINGDECL_REQUIRED
           
static int MSG_ENTITIES_INVALID
           
static int MSG_ENTITY_INVALID
           
static int MSG_ENTITY_NAME_REQUIRED_IN_ENTITYDECL
           
static int MSG_ENTITY_NOT_DECLARED
           
static int MSG_ENTITYDECL_UNTERMINATED
           
static int MSG_ENUMERATION_UNTERMINATED
           
static int MSG_EQ_REQUIRED_IN_ATTRIBUTE
           
static int MSG_EQ_REQUIRED_IN_TEXTDECL
           
static int MSG_EQ_REQUIRED_IN_XMLDECL
           
static int MSG_ETAG_REQUIRED
           
static int MSG_ETAG_UNTERMINATED
           
static int MSG_EXTERNAL_ENTITY_NOT_PERMITTED
           
static int MSG_EXTERNALID_REQUIRED
           
static int MSG_FIXED_ATTVALUE_INVALID
           
static int MSG_FORMAT_FAILURE
           
static int MSG_GENERIC_SCHEMA_ERROR
           
static int MSG_HEXDIGIT_REQUIRED_IN_CHARREF
           
static int MSG_ID_DEFAULT_TYPE_INVALID
           
static int MSG_ID_INVALID
           
static int MSG_ID_NOT_UNIQUE
           
static int MSG_IDREF_INVALID
           
static int MSG_IDREFS_INVALID
           
static int MSG_IGNORESECT_UNTERMINATED
           
static int MSG_IMPROPER_DECLARATION_NESTING
           
static int MSG_IMPROPER_GROUP_NESTING
           
static int MSG_INCLUDESECT_UNTERMINATED
           
static int MSG_INVALID_CHAR_IN_ATTVALUE
           
static int MSG_INVALID_CHAR_IN_CDSECT
           
static int MSG_INVALID_CHAR_IN_COMMENT
           
static int MSG_INVALID_CHAR_IN_CONTENT
           
static int MSG_INVALID_CHAR_IN_ENTITYVALUE
           
static int MSG_INVALID_CHAR_IN_EXTERNAL_SUBSET
           
static int MSG_INVALID_CHAR_IN_IGNORESECT
           
static int MSG_INVALID_CHAR_IN_INTERNAL_SUBSET
           
static int MSG_INVALID_CHAR_IN_MISC
           
static int MSG_INVALID_CHAR_IN_PI
           
static int MSG_INVALID_CHAR_IN_PROLOG
           
static int MSG_INVALID_CHAR_IN_PUBLICID
           
static int MSG_INVALID_CHAR_IN_SYSTEMID
           
static int MSG_INVALID_CHAR_IN_TEXTDECL
           
static int MSG_INVALID_CHAR_IN_XMLDECL
           
static int MSG_INVALID_CHARREF
           
static int MSG_LESSTHAN_IN_ATTVALUE
           
static int MSG_MARKUP_NOT_RECOGNIZED_IN_CONTENT
           
static int MSG_MARKUP_NOT_RECOGNIZED_IN_DTD
           
static int MSG_MARKUP_NOT_RECOGNIZED_IN_MISC
           
static int MSG_MARKUP_NOT_RECOGNIZED_IN_PROLOG
           
static int MSG_MAX_CODE
           
static int MSG_MIXED_CONTENT_UNTERMINATED
           
static int MSG_MORE_THAN_ONE_ID_ATTRIBUTE
           
static int MSG_MORE_THAN_ONE_NOTATION_ATTRIBUTE
           
static int MSG_NAME_REQUIRED_IN_NOTATIONTYPE
           
static int MSG_NAME_REQUIRED_IN_PEREFERENCE
           
static int MSG_NAME_REQUIRED_IN_REFERENCE
           
static int MSG_NMTOKEN_INVALID
           
static int MSG_NMTOKEN_REQUIRED_IN_ENUMERATION
           
static int MSG_NMTOKENS_INVALID
           
static int MSG_NOTATION_NAME_REQUIRED_FOR_UNPARSED_ENTITYDECL
           
static int MSG_NOTATION_NAME_REQUIRED_IN_NOTATIONDECL
           
static int MSG_NOTATION_NOT_DECLARED_FOR_NOTATIONTYPE_ATTRIBUTE
           
static int MSG_NOTATION_NOT_DECLARED_FOR_UNPARSED_ENTITYDECL
           
static int MSG_NOTATIONDECL_UNTERMINATED
           
static int MSG_NOTATIONTYPE_UNTERMINATED
           
static int MSG_OPEN_PAREN_OR_ELEMENT_TYPE_REQUIRED_IN_CHILDREN
           
static int MSG_OPEN_PAREN_REQUIRED_IN_NOTATIONTYPE
           
static int MSG_PEREFERENCE_WITHIN_MARKUP
           
static int MSG_PI_NOT_IN_ONE_ENTITY
           
static int MSG_PI_UNTERMINATED
           
static int MSG_PITARGET_REQUIRED
           
static int MSG_PREFIX_DECLARED
           
static int MSG_PUBIDCHAR_ILLEGAL
           
static int MSG_PUBLICID_UNTERMINATED
           
static int MSG_QUOTE_REQUIRED_IN_ATTVALUE
           
static int MSG_QUOTE_REQUIRED_IN_PUBLICID
           
static int MSG_QUOTE_REQUIRED_IN_SYSTEMID
           
static int MSG_QUOTE_REQUIRED_IN_TEXTDECL
           
static int MSG_QUOTE_REQUIRED_IN_XMLDECL
           
static int MSG_RECURSIVE_PEREFERENCE
           
static int MSG_RECURSIVE_REFERENCE
           
static int MSG_REFERENCE_NOT_IN_ONE_ENTITY
           
static int MSG_REFERENCE_TO_EXTERNAL_ENTITY
           
static int MSG_REFERENCE_TO_EXTERNALLY_DECLARED_ENTITY_WHEN_STANDALONE
           
static int MSG_REFERENCE_TO_UNPARSED_ENTITY
           
static int MSG_REFERENCE_UNTERMINATED
           
static int MSG_REQUIRED_ATTRIBUTE_NOT_SPECIFIED
           
static int MSG_RESERVED_PITARGET
           
static int MSG_ROOT_ELEMENT_REQUIRED
           
static int MSG_ROOT_ELEMENT_TYPE
           
static int MSG_ROOT_ELEMENT_TYPE_REQUIRED
           
static int MSG_SDDECL_INVALID
           
static int MSG_SEMICOLON_REQUIRED_IN_CHARREF
           
static int MSG_SEMICOLON_REQUIRED_IN_PEREFERENCE
           
static int MSG_SEMICOLON_REQUIRED_IN_REFERENCE
           
static int MSG_SPACE_REQUIRED_AFTER_ENTITY_NAME_IN_ENTITYDECL
           
static int MSG_SPACE_REQUIRED_AFTER_FIXED_IN_DEFAULTDECL
           
static int MSG_SPACE_REQUIRED_AFTER_NOTATION_IN_NOTATIONTYPE
           
static int MSG_SPACE_REQUIRED_AFTER_NOTATION_NAME_IN_NOTATIONDECL
           
static int MSG_SPACE_REQUIRED_AFTER_PUBIDLITERAL_IN_EXTERNALID
           
static int MSG_SPACE_REQUIRED_BEFORE_ATTRIBUTE_NAME_IN_ATTDEF
           
static int MSG_SPACE_REQUIRED_BEFORE_ATTTYPE_IN_ATTDEF
           
static int MSG_SPACE_REQUIRED_BEFORE_CONTENTSPEC_IN_ELEMENTDECL
           
static int MSG_SPACE_REQUIRED_BEFORE_DEFAULTDECL_IN_ATTDEF
           
static int MSG_SPACE_REQUIRED_BEFORE_ELEMENT_TYPE_IN_ATTLISTDECL
           
static int MSG_SPACE_REQUIRED_BEFORE_ELEMENT_TYPE_IN_ELEMENTDECL
           
static int MSG_SPACE_REQUIRED_BEFORE_ENTITY_NAME_IN_ENTITYDECL
           
static int MSG_SPACE_REQUIRED_BEFORE_ENTITY_NAME_IN_PEDECL
           
static int MSG_SPACE_REQUIRED_BEFORE_NOTATION_NAME_IN_NOTATIONDECL
           
static int MSG_SPACE_REQUIRED_BEFORE_NOTATION_NAME_IN_UNPARSED_ENTITYDECL
           
static int MSG_SPACE_REQUIRED_BEFORE_PERCENT_IN_PEDECL
           
static int MSG_SPACE_REQUIRED_BEFORE_PUBIDLITERAL_IN_EXTERNALID
           
static int MSG_SPACE_REQUIRED_BEFORE_ROOT_ELEMENT_TYPE_IN_DOCTYPEDECL
           
static int MSG_SPACE_REQUIRED_BEFORE_SYSTEMLITERAL_IN_EXTERNALID
           
static int MSG_SPACE_REQUIRED_IN_PI
           
static int MSG_SPACE_REQUIRED_IN_TEXTDECL
           
static int MSG_SYSTEMID_UNTERMINATED
           
static int MSG_TEXTDECL_MUST_BE_FIRST
           
static int MSG_TEXTDECL_UNTERMINATED
           
static int MSG_TWO_COLONS_IN_QNAME
           
static int MSG_UNDECLARED_ELEMENT_IN_CONTENTSPEC
           
static int MSG_URI_FRAGMENT_IN_SYSTEMID
           
static int MSG_VERSION_NOT_SUPPORTED
           
static int MSG_VERSIONINFO_INVALID
           
static int MSG_VERSIONINFO_REQUIRED
           
static int MSG_WHITE_SPACE_IN_ELEMENT_CONTENT_WHEN_STANDALONE
           
static int MSG_XML_LANG_INVALID
           
static int MSG_XML_SPACE_DECLARATION_ILLEGAL
           
static int MSG_XMLDECL_MUST_BE_FIRST
           
static int MSG_XMLDECL_UNTERMINATED
           
static int NC_PREFIX_DECLARED
           
static int P1_ELEMENT_REQUIRED
           
static int P10_INVALID_CHARACTER
           
static int P10_QUOTE_REQUIRED
           
static int P10_UNTERMINATED
           
static int P11_INVALID_CHARACTER
           
static int P11_QUOTE_REQUIRED
           
static int P11_UNTERMINATED
           
static int P11_URI_FRAGMENT
           
static int P12_INVALID_CHARACTER
           
static int P12_QUOTE_REQUIRED
           
static int P12_UNTERMINATED
           
static int P14_INVALID
           
static int P15_DASH_DASH
           
static int P15_INVALID_CHARACTER
           
static int P15_UNTERMINATED
           
static int P16_INVALID_CHARACTER
           
static int P16_PITARGET_REQUIRED
           
static int P16_REQUIRED
           
static int P16_UNTERMINATED
           
static int P16_WHITESPACE_REQUIRED
           
static int P17_RESERVED_PITARGET
           
static int P18_UNTERMINATED
           
static int P20_INVALID_CHARACTER
           
static int P22_INVALID_CHARACTER
           
static int P22_NOT_RECOGNIZED
           
static int P22_XMLDECL_MUST_BE_FIRST
           
static int P23_UNTERMINATED
           
static int P23_VERSIONINFO_REQUIRED
           
static int P24_EQ_REQUIRED
           
static int P24_QUOTE_REQUIRED
           
static int P26_INVALID_CHARACTER
           
static int P26_INVALID_VALUE
           
static int P26_NOT_SUPPORTED
           
static int P27_INVALID_CHARACTER
           
static int P27_NOT_RECOGNIZED
           
static int P28_INVALID_CHARACTER
           
static int P28_ROOT_ELEMENT_TYPE_REQUIRED
           
static int P28_SPACE_REQUIRED
           
static int P28_UNTERMINATED
           
static int P29_NOT_RECOGNIZED
           
static int P30_INVALID_CHARACTER
           
static int P30_TEXTDECL_MUST_BE_FIRST
           
static int P32_EQ_REQUIRED
           
static int P32_INVALID_CHARACTER
           
static int P32_INVALID_VALUE
           
static int P32_QUOTE_REQUIRED
           
static int P33_INVALID
           
static int P39_ELEMENT_TYPE_REQUIRED
           
static int P39_UNTERMINATED
           
static int P40_UNTERMINATED
           
static int P41_EQ_REQUIRED
           
static int P42_UNTERMINATED
           
static int P43_INVALID_CHARACTER
           
static int P43_NOT_RECOGNIZED
           
static int P45_CONTENTSPEC_REQUIRED
           
static int P45_ELEMENT_TYPE_REQUIRED
           
static int P45_SPACE_REQUIRED
           
static int P45_UNDECLARED_ELEMENT_IN_CONTENTSPEC
           
static int P45_UNTERMINATED
           
static int P47_CLOSE_PAREN_REQUIRED
           
static int P47_OPEN_PAREN_OR_ELEMENT_TYPE_REQUIRED
           
static int P5_INVALID_CHARACTER
           
static int P51_CLOSE_PAREN_REQUIRED
           
static int P51_ELEMENT_TYPE_REQUIRED
           
static int P51_UNTERMINATED
           
static int P52_ELEMENT_TYPE_REQUIRED
           
static int P52_SPACE_REQUIRED
           
static int P53_ATTTYPE_REQUIRED
           
static int P53_DUPLICATE
           
static int P53_NAME_REQUIRED
           
static int P53_SPACE_REQUIRED
           
static int P58_NAME_REQUIRED
           
static int P58_OPEN_PAREN_REQUIRED
           
static int P58_SPACE_REQUIRED
           
static int P58_UNTERMINATED
           
static int P59_NMTOKEN_REQUIRED
           
static int P59_UNTERMINATED
           
static int P60_SPACE_REQUIRED
           
static int P62_UNTERMINATED
           
static int P63_UNTERMINATED
           
static int P65_INVALID_CHARACTER
           
static int P66_DIGIT_REQUIRED
           
static int P66_HEXDIGIT_REQUIRED
           
static int P66_SEMICOLON_REQUIRED
           
static int P67_UNTERMINATED
           
static int P68_NAME_REQUIRED
           
static int P68_SEMICOLON_REQUIRED
           
static int P69_NAME_REQUIRED
           
static int P69_SEMICOLON_REQUIRED
           
static int P70_REQUIRED_NAME
           
static int P70_REQUIRED_SPACE
           
static int P70_SPACE
           
static int P71_UNTERMINATED
           
static int P72_SPACE
           
static int P72_UNTERMINATED
           
static int P75_INVALID
           
static int P75_SPACE_REQUIRED
           
static int P76_REQUIRED
           
static int P76_SPACE_REQUIRED
           
static int P77_ENCODINGDECL_REQUIRED
           
static int P77_UNTERMINATED
           
static int P78_NOT_WELLFORMED
           
static int P80_EQ_REQUIRED
           
static int P80_QUOTE_REQUIRED
           
static int P80_WHITESPACE_REQUIRED
           
static int P81_INVALID_CHARACTER
           
static int P81_INVALID_VALUE
           
static int P81_NOT_SUPPORTED
           
static int P81_REQUIRED
           
static int P82_NAME_REQUIRED
           
static int P82_SPACE_REQUIRED
           
static int P82_UNTERMINATED
           
static int P9_INVALID_CHARACTER
           
static int S2_10_DECLARATION_ILLEGAL
           
static int SCHEMA_GENERIC_ERROR
           
static int VC_ATTRIBUTE_DEFAULT_LEGAL
           
static int VC_ATTRIBUTE_VALUE_TYPE
           
static int VC_ELEMENT_VALID
           
static int VC_ENTITY_DECLARED
           
static int VC_ENTITY_NAME
           
static int VC_ENUMERATION
           
static int VC_FIXED_ATTRIBUTE_DEFAULT
           
static int VC_ID
           
static int VC_ID_ATTRIBUTE_DEFAULT
           
static int VC_IDREF
           
static int VC_NAME_TOKEN
           
static int VC_NO_DUPLICATE_TYPES
           
static int VC_NOTATION_ATTRIBUTES
           
static int VC_NOTATION_DECLARED
           
static int VC_ONE_ID_PER_ELEMENT_TYPE
           
static int VC_ONE_NOTATION_PER_ELEMENT_TYPE
           
static int VC_PROPER_DECLARATION_PE_NESTING
           
static int VC_PROPER_GROUP_PE_NESTING
           
static int VC_REQUIRED_ATTRIBUTE
           
static int VC_ROOT_ELEMENT_TYPE
           
static int VC_STANDALONE_DOCUMENT_DECLARATION
           
static int VC_UNIQUE_ELEMENT_TYPE_DECLARATION
           
static int WFC_ENTITY_DECLARED
           
static int WFC_LEGAL_CHARACTER
           
static int WFC_NO_EXTERNAL_ENTITY_REFERENCES
           
static int WFC_NO_LESSTHAN_IN_ATTVALUE
           
static int WFC_NO_RECURSION
           
static int WFC_PARSED_ENTITY
           
static int WFC_PES_IN_INTERNAL_SUBSET
           
static int WFC_UNIQUE_ATT_SPEC
           
static java.lang.String XML_DOMAIN
          The domain of messages concerning the XML 1.0 specification.
static java.lang.String XMLNS_DOMAIN
           
 
Constructor Summary
XMLMessages()
           
 
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

XML_DOMAIN

public static final java.lang.String XML_DOMAIN
The domain of messages concerning the XML 1.0 specification.

See Also:
Constant Field Values

XMLNS_DOMAIN

public static final java.lang.String XMLNS_DOMAIN
See Also:
Constant Field Values

fLocale

private java.util.Locale fLocale

fResourceBundle

private java.util.ResourceBundle fResourceBundle

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

MSG_LESSTHAN_IN_ATTVALUE

public static final int MSG_LESSTHAN_IN_ATTVALUE
See Also:
Constant Field Values

MSG_ROOT_ELEMENT_TYPE<