01: package com.jclark.xml.parse;
02:
03: import java.util.ListResourceBundle;
04: import java.util.MissingResourceException;
05: import java.util.Enumeration;
06: import com.jclark.util.Hashtable;
07:
08: /**
09: * A <code>ResourceBundle</code> for the text of messages used
10: * in <code>NotWellFormedException</code>.
11: *
12: * @see NotWellFormedException
13: * @see Parser
14: * @version $Revision: 1.10 $ $Date: 1998/05/14 02:04:05 $
15: */
16: public class Messages extends ListResourceBundle {
17: protected Object[][] getContents() {
18: return contents;
19: }
20:
21: private static final Object[][] contents = {
22: // Arguments: description, location, line number, column number, byte index
23: // Use ,0 in the number format to avoid getting , as thousands separator.
24: { MessageId.MESSAGE_FORMAT,
25: "{1}:{2,number,0}:{3,number,0}: {0}" },
26: { MessageId.PUBID_CHAR,
27: "character not allowed in public identifier" },
28: { MessageId.ELEMENT_AFTER_DOCUMENT_ELEMENT,
29: "element after document element" },
30: { MessageId.BAD_INITIAL_BYTES,
31: "impossible initial byte sequence" },
32: { MessageId.BAD_DECL_ENCODING,
33: "incorrect encoding specified in XML declaration" },
34: { MessageId.INVALID_XML_DECLARATION,
35: "invalid XML declaration" },
36: { MessageId.IGNORE_SECT_CHAR,
37: "invalid character in ignored conditional section" },
38: { MessageId.INVALID_END_TAG, "invalid end-tag" },
39: { MessageId.EPILOG_JUNK, "junk after document element" },
40: { MessageId.MISMATCHED_END_TAG,
41: "mismatched end tag: expected \"{1}\" but got \"{0}\"" },
42: { MessageId.MISPLACED_XML_DECL, "misplaced XML decl" },
43: { MessageId.MISSING_END_TAG, "missing end-tag" },
44: { MessageId.NO_DOCUMENT_ELEMENT, "no document element" },
45: { MessageId.NOT_WELL_FORMED, "not well-formed" },
46: { MessageId.PE_GROUP_NESTING,
47: "parameter entities not properly nested with parentheses" },
48: { MessageId.PE_DECL_NESTING,
49: "parameter entity not properly nested with declarations" },
50: { MessageId.INTERNAL_PEREF_ENTVAL,
51: "parameter entity reference in entity value in internal subset" },
52: { MessageId.RECURSION, "recursive entity reference" },
53: { MessageId.EXTERN_REF_ATTVAL,
54: "reference to external entity in attribute value" },
55: { MessageId.UNDEF_REF,
56: "reference to undefined entity \"{0}\"" },
57: { MessageId.UNDEF_PEREF,
58: "reference to undefined parameter entity \"{0}\"" },
59: { MessageId.UNPARSED_REF, "reference to unparsed entity" },
60: { MessageId.SYNTAX_ERROR, "syntax error" },
61: { MessageId.UNCLOSED_CDATA_SECTION,
62: "unclosed CDATA section" },
63: { MessageId.UNCLOSED_CONDITIONAL_SECTION,
64: "unclosed conditional section" },
65: { MessageId.UNCLOSED_TOKEN, "unclosed token" },
66: { MessageId.UNSUPPORTED_ENCODING, "unsupported encoding" },
67: { MessageId.DUPLICATE_ATTRIBUTE, "duplicate attribute" },
68: { MessageId.XML_TARGET,
69: "target of a processing instruction must not be [Xx][Mm][Ll]" },
70: { MessageId.ILLEGAL_CHAR, "character not allowed" } };
71: }
|