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 for the Schema validator
064: * The messages are arranged in key and value tuples in a ListResourceBundle.
065: *
066: * @version $Id: SchemaMessages.java,v 1.20.2.1 2001/11/06 18:59:57 neilg Exp $
067: */
068: public class SchemaMessages extends ListResourceBundle {
069: /** The list resource bundle contents. */
070: public static final Object CONTENTS[][] = {
071: // Internal message formatter messages
072: { "BadMajorCode",
073: "The majorCode parameter to createMessage was out of bounds." },
074: { "FormatFailed",
075: "An internal error occurred while formatting the following message:\n " },
076: { "NoValidatorFor", "No validator for datatype {0}" },
077: { "IncorrectDatatype", "Incorrect datatype: {0}" },
078: { "NotADatatype", "{0} is not a datatype." },
079: { "TextOnlyContentWithType",
080: "The content attribute must be 'textOnly' if you specify a type attribute." },
081: { "FeatureUnsupported", "{0} is unsupported" },
082: { "NestedOnlyInElemOnly",
083: "Nested Element decls only allowed in elementOnly content" },
084: { "EltRefOnlyInMixedElemOnly",
085: "Element references only allowed in mixed or elementOnly content" },
086: { "OnlyInEltContent",
087: "{0} only allowed in elementOnly content." },
088: { "OrderIsAll", "{0} not allowed if the order is all." },
089: { "DatatypeWithType",
090: "Datatype qualifiers can only be used if you specify a type attribute." },
091: { "DatatypeQualUnsupported",
092: "The datatype qualifier {0} is not supported." },
093: { "GroupContentRestricted",
094: "Error: {0} content must be one of choice, all or sequence. Saw {1}." },
095: { "UnknownBaseDatatype",
096: "Unknown base type {0} for type {1}." },
097: {
098: "BadAttWithRef",
099: "cannot use ref with any of type, block, final, abstract, nillable, default or fixed." },
100: { "NoContentForRef",
101: "Cannot have child content for an element declaration that has a ref attribute" },
102: { "IncorrectDefaultType",
103: "Incorrect type for {0}'s default value: {1}" },
104: { "IllegalAttContent",
105: "Illegal content {0} in attribute group" },
106: { "ValueNotInteger", "Value of {0} is not an integer." },
107: { "DatatypeError", "Datatype error: {0}." },
108: { "TypeAlreadySet",
109: "The type of the element has already been declared." },
110: { "GenericError", "Schema error: {0}." },
111: { "UnexpectedError", "UnexpectedError" },
112: { "ContentError",
113: "Content (annotation?,..) is incorrect for type {0}" },
114: { "AnnotationError",
115: "Annotation can only appear once: type {0}" },
116: { "ListUnionRestrictionError",
117: "List | Union | Restriction content is invalid for type {0}" },
118: { "ProhibitedAttributePresent",
119: "An attribute declared \"prohibited\" is present in this element definition." },
120: // identity constraints
121: {
122: "UniqueNotEnoughValues",
123: "Not enough values specified for <unique> identity constraint specified for element \"{0}\"." },
124: {
125: "KeyNotEnoughValues",
126: "Not enough values specified for <key name=\"{1}\"> identity constraint specified for element \"{0}\"." },
127: {
128: "KeyRefNotEnoughValues",
129: "Not enough values specified for <keyref name=\"{1}\"> identity constraint specified for element \"{0}\"." },
130: { "DuplicateField",
131: "Duplicate match in scope for field \"{0}\"." },
132: {
133: "DuplicateUnique",
134: "Duplicate unique value [{0}] declared for identity constraint of element \"{1}\"." },
135: {
136: "DuplicateKey",
137: "Duplicate key value [{0}] declared for identity constraint of element \"{1}\"." },
138: { "KeyNotFound",
139: "Key with value [{0}] not found for identity constraint of element \"{1}\"." },
140: { "UnknownField",
141: "Internal identity constraint error; unknown field \"{0}\"." },
142: { "KeyRefReferNotFound",
143: "Key reference declaration \"{0}\" refers to unknown key with name \"{1}\"." },
144: {
145: "FixedDiffersFromActual",
146: "The content of this element is not equivalent to the value of the \"fixed\" attribute in the element's declaration in the schema." },
147: // simpleType
148: { "InvalidBaseType",
149: "itemType \"{0}\" must have a variety of atomic or union" },
150: {
151: "FieldMultipleMatch",
152: "Identity constraint error: field \"{0}\" matches more than one value within the scope of its selector; fields must match unique values" },
153: {
154: "KeyRefOutOfScope",
155: "Identity Constraint error: identity constraint \"{0}\" has a keyref which refers to a key or unique that is out of scope." },
156: {
157: "AbsentKeyValue",
158: "Identity Constraint error (cvc-identity-constraint.4.2.1): element \"{0}\" has a key with no value." },
159: {
160: "KeyMatchesNillable",
161: "Identity Constraint error (cvc-identity-constraint.4.2.3): element \"{0}\" has a key which matches an element which has nillable set to true." },
162: {
163: "BadMinMaxForAllElem",
164: "cos-all-limited.2: The {0} attribute of an element in an all schema component must have the value zero or one. The value \"{1}\" is incorrect." },
165: {
166: "BadMinMaxForGroupWithAll",
167: "Error: cos-all-limited.1.2: The {0} attribute in a reference to a named model group whose content model is \"all\" must have the value one. The value \"{1}\" is incorrect." },
168: {
169: "SeqChoiceContentRestricted",
170: "Error: {0} content must be zero or more of element, group, choice, sequence or any. Saw \"{1}\"." },
171: {
172: "AllContentRestricted",
173: "Error: The content of all is restricted to zero or more elements. Saw \"{0}\"." },
174: {
175: "AllContentLimited",
176: "Error: cos-all-limited.1.2: A group whose content is \"all\" must only appear as the content type of a complex type definition. Saw group in \"{0}\"." },
177: {
178: "MinMaxOnGroupChild",
179: "Error: The child ''{1}'' of the named group definition ''{0}'' must not specify either the minOccurs or maxOccurs attribute." },
180: {
181: "BadMinMaxForAllGp",
182: "Error: cos-all-limited.1.2: The {0} attribute of a model group with \"all\" compositor that is part of a pair that is the content type of a complex type definition must have the value one. The value \"{1}\" is incorrect." },
183: {
184: "SchemaLocation",
185: "Value \"{0}\" is not valid 'schemaLocation' syntax. anyURI must be followed by schema file" },
186: {
187: "UniqueParticleAttribution",
188: "Error: cos-nonambig: ({0}) and ({1}) violate the \"Unique Particle Attribution\" rule." },
189: { "Con3X3ElementAppearance",
190: "Error: constraint 3.x.3: Element ''{0}'' cannot appear here." },
191: { "Con3X3AttributeAppearance",
192: "Error: constraint 3.x.3: Attribute ''{1}'' cannot appear in element ''{0}''." },
193: { "Con3X3AttributeMustAppear",
194: "Error: constraint 3.x.3: Attribute ''{1}'' must appear in element ''{0}''." },
195: {
196: "Con3X3AttributeInvalidValue",
197: "Error: constraint 3.x.3: Invalid attribute value for ''{1}'' in element ''{0}'': {2}." },
198: { "CardinalityNotEqual",
199: "Cardinality of Fields for keyref \"{0}\" and key \"{1}\" must match." }, };
200:
201: /** Returns the list resource bundle contents. */
202: public Object[][] getContents() {
203: return CONTENTS;
204: }
205:
206: }
|