001: /*
002: * The Apache Software License, Version 1.1
003: *
004: *
005: * Copyright (c) 1999,2000 The Apache Software Foundation. All rights
006: * reserved.
007: *
008: * Redistribution and use in source and binary forms, with or without
009: * modification, are permitted provided that the following conditions
010: * are met:
011: *
012: * 1. Redistributions of source code must retain the above copyright
013: * notice, this list of conditions and the following disclaimer.
014: *
015: * 2. Redistributions in binary form must reproduce the above copyright
016: * notice, this list of conditions and the following disclaimer in
017: * the documentation and/or other materials provided with the
018: * distribution.
019: *
020: * 3. The end-user documentation included with the redistribution,
021: * if any, must include the following acknowledgment:
022: * "This product includes software developed by the
023: * Apache Software Foundation (http://www.apache.org/)."
024: * Alternately, this acknowledgment may appear in the software itself,
025: * if and wherever such third-party acknowledgments normally appear.
026: *
027: * 4. The names "Xerces" and "Apache Software Foundation" must
028: * not be used to endorse or promote products derived from this
029: * software without prior written permission. For written
030: * permission, please contact apache@apache.org.
031: *
032: * 5. Products derived from this software may not be called "Apache",
033: * nor may "Apache" appear in their name, without prior written
034: * permission of the Apache Software Foundation.
035: *
036: * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
037: * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
038: * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
039: * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
040: * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
041: * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
042: * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
043: * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
044: * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
045: * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
046: * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
047: * SUCH DAMAGE.
048: * ====================================================================
049: *
050: * This software consists of voluntary contributions made by many
051: * individuals on behalf of the Apache Software Foundation and was
052: * originally based on software copyright (c) 1999, International
053: * Business Machines, Inc., http://www.apache.org. For more
054: * information on the Apache Software Foundation, please see
055: * <http://www.apache.org/>.
056: */
057:
058: package org.apache.xerces.msg;
059:
060: import java.util.ListResourceBundle;
061:
062: /**
063: * This file contains error and warning messages to be localized
064: * The messages are arranged in key and value tuples in a ListResourceBundle.
065: *
066: * @version $Id: ExceptionMessages.java,v 1.11 2000/04/04 21:14:22 andyc Exp $
067: */
068: public class ExceptionMessages extends ListResourceBundle {
069: /** The list resource bundle contents. */
070: public static final Object CONTENTS[][] = {
071:
072: // org.apache.xerces.msg.ExceptionMessageLocalizer
073: { "FMT001", "Message Formatting Error." },
074:
075: // org.apache.html
076:
077: { "HTM001",
078: "State error: startDocument fired twice on one builder." },
079: { "HTM002",
080: "State error: document never started or missing document element." },
081: { "HTM003",
082: "State error: document ended before end of document element." },
083: { "HTM004", "Argument ''tagName'' is null." },
084: { "HTM005",
085: "State error: Document.getDocumentElement returns null." },
086: { "HTM006",
087: "State error: startElement called after end of document element." },
088: { "HTM007",
089: "State error: endElement called with no current node." },
090: { "HTM008", "State error: mismatch in closing tag name {0}" },
091: { "HTM009",
092: "State error: character data found outside of root element." },
093: { "HTM010",
094: "State error: character data found outside of root element." },
095: { "HTM011", "Argument ''topLevel'' is null." },
096: { "HTM012", "Argument ''index'' is negative." },
097: { "HTM013", "Argument ''name'' is null." },
098: { "HTM014", "Argument ''title'' is null." },
099: { "HTM015",
100: "Tag ''{0}'' associated with an Element class that failed to construct." },
101: { "HTM016",
102: "Argument ''caption'' is not an element of type <CAPTION>." },
103: { "HTM017",
104: "Argument ''tHead'' is not an element of type <THEAD>." },
105: { "HTM018",
106: "Argument ''tFoot'' is not an element of type <TFOOT>." },
107: { "HTM019",
108: "OpenXML Error: Could not find class {0} implementing HTML element {1}" },
109:
110: // org.apache.xml.serialize
111:
112: { "SER001", "Argument ''output'' is null." },
113: { "SER002", "No writer supplied for serializer" },
114: { "SER003", "The resource [{0}] could not be found." },
115: { "SER004", "The resource [{0}] could not load: {1}" },
116: { "SER005",
117: "The method ''{0}'' is not supported by this factory" },
118:
119: // org.apache.xerces.dom
120:
121: { "DOM001", "Modification not allowed" },
122: { "DOM002", "Illegal character" },
123: { "DOM003", "Namespace error" },
124: { "DOM004", "Index out of bounds" },
125: { "DOM005", "Wrong document" },
126: { "DOM006", "Hierarchy request error" },
127: { "DOM007", "Not supported" },
128: { "DOM008", "Not found" },
129: { "DOM009", "Attribute already in use" },
130: { "DOM010", "Unspecified event type" },
131: { "DOM011", "Invalid state" },
132: { "DOM012", "Invalid node type" },
133: { "DOM013", "Bad boundary points" },
134:
135: // org.apache.xerces.framework
136: { "FWK001", "{0}] scannerState: {1}" },
137: { "FWK002", "{0}] popElementType: fElementDepth-- == 0." },
138: { "FWK003",
139: "TrailingMiscDispatcher.endOfInput moreToFollow" },
140: { "FWK004", "cannot happen: {0}" },
141: { "FWK005", "parse may not be called while parsing." },
142: { "FWK006", "setLocale may not be called while parsing." },
143: { "FWK007", "Unknown error domain \"{0}\"." },
144: { "FWK008", "Element stack underflow." },
145:
146: // org.apache.xerces.parsers
147: { "PAR001", "Fatal error constructing DOMParser." },
148: { "PAR002", "Class, \"{0}\", is not of type org.w3c.dom" },
149: { "PAR003", "Class, \"{0}\", not found." },
150: { "PAR004", "Cannot setFeature({0}): parse is in progress." },
151: { "PAR005", "Property, \"{0}\" is read-only." },
152: { "PAR006",
153: "Property value must be of type java.lang.String." },
154: { "PAR007",
155: "Current element node cannot be queried when node expansion is deferred." },
156: { "PAR008", "Fatal error getting document factory." },
157: { "PAR009", "Fatal error reading expansion mode." },
158: { "PAR010", "Can''t copy node type, {0} ({1})." },
159: { "PAR011", "Feature {0} not supported during parse." },
160: {
161: "PAR012",
162: "For propertyId \"{0}\", the value \""
163: + "{1}\" cannot be cast to {2}." },
164: { "PAR013", "Property \"{0}\" is read only." },
165: { "PAR014",
166: "Cannot getProperty(\"{0}\". No DOM tree exists." },
167: { "PAR015", "startEntityReference(): ENTITYTYPE_UNPARSED" },
168: { "PAR016", "endEntityReference(): ENTITYTYPE_UNPARSED" },
169: { "PAR017", "cannot happen: {0}" },
170:
171: // org.apache.xerces.readers
172:
173: { "RDR001", "untested" },
174: { "RDR002", "cannot happen" },
175:
176: //org.apache.xerces.utils
177: { "UTL001", "untested" },
178: { "UTL002", "cannot happen" },
179:
180: //org.apache.xerces.validators
181:
182: { "VAL001", "Element stack underflow" },
183: { "VAL002", "getValidatorForAttType ({0})" },
184: { "VAL003", "cannot happen" }
185:
186: };
187:
188: /** Returns the list resource bundle contents. */
189:
190: public Object[][] getContents() {
191: return CONTENTS;
192: }
193: }
|