001: /*
002: * Copyright 1999-2004 The Apache Software Foundation.
003: *
004: * Licensed under the Apache License, Version 2.0 (the "License");
005: * you may not use this file except in compliance with the License.
006: * You may obtain a copy of the License at
007: *
008: * http://www.apache.org/licenses/LICENSE-2.0
009: *
010: * Unless required by applicable law or agreed to in writing, software
011: * distributed under the License is distributed on an "AS IS" BASIS,
012: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013: * See the License for the specific language governing permissions and
014: * limitations under the License.
015: */
016: /*
017: * $Id: SerializerMessages_ca.java,v 1.2 2004/12/16 19:19:57 minchau Exp $
018: */
019:
020: package org.apache.xml.serializer.utils;
021:
022: import java.util.ListResourceBundle;
023:
024: public class SerializerMessages_ca extends ListResourceBundle {
025: public Object[][] getContents() {
026: Object[][] contents = new Object[][] {
027: { MsgKey.BAD_MSGKEY,
028: "The message key ''{0}'' is not in the message class ''{1}''" },
029:
030: { MsgKey.BAD_MSGFORMAT,
031: "The format of message ''{0}'' in message class ''{1}'' failed." },
032:
033: { MsgKey.ER_SERIALIZER_NOT_CONTENTHANDLER,
034: "The serializer class ''{0}'' does not implement org.xml.sax.ContentHandler." },
035:
036: { MsgKey.ER_RESOURCE_COULD_NOT_FIND,
037: "The resource [ {0} ] could not be found.\n {1}" },
038:
039: { MsgKey.ER_RESOURCE_COULD_NOT_LOAD,
040: "The resource [ {0} ] could not load: {1} \n {2} \n {3}" },
041:
042: { MsgKey.ER_BUFFER_SIZE_LESSTHAN_ZERO,
043: "Buffer size <=0" },
044:
045: { MsgKey.ER_INVALID_UTF16_SURROGATE,
046: "Invalid UTF-16 surrogate detected: {0} ?" },
047:
048: { MsgKey.ER_OIERROR, "IO error" },
049:
050: {
051: MsgKey.ER_ILLEGAL_ATTRIBUTE_POSITION,
052: "Cannot add attribute {0} after child nodes or before an element is produced. Attribute will be ignored." },
053:
054: { MsgKey.ER_NAMESPACE_PREFIX,
055: "Namespace for prefix ''{0}'' has not been declared." },
056:
057: { MsgKey.ER_STRAY_ATTRIBUTE,
058: "Attribute ''{0}'' outside of element." },
059:
060: { MsgKey.ER_STRAY_NAMESPACE,
061: "Namespace declaration ''{0}''=''{1}'' outside of element." },
062:
063: { MsgKey.ER_COULD_NOT_LOAD_RESOURCE,
064: "Could not load ''{0}'' (check CLASSPATH), now using just the defaults" },
065:
066: {
067: MsgKey.ER_ILLEGAL_CHARACTER,
068: "Attempt to output character of integral value {0} that is not represented in specified output encoding of {1}." },
069:
070: {
071: MsgKey.ER_COULD_NOT_LOAD_METHOD_PROPERTY,
072: "Could not load the propery file ''{0}'' for output method ''{1}'' (check CLASSPATH)" },
073:
074: { MsgKey.ER_INVALID_PORT, "Invalid port number" },
075:
076: { MsgKey.ER_PORT_WHEN_HOST_NULL,
077: "Port cannot be set when host is null" },
078:
079: { MsgKey.ER_HOST_ADDRESS_NOT_WELLFORMED,
080: "Host is not a well formed address" },
081:
082: { MsgKey.ER_SCHEME_NOT_CONFORMANT,
083: "The scheme is not conformant." },
084:
085: { MsgKey.ER_SCHEME_FROM_NULL_STRING,
086: "Cannot set scheme from null string" },
087:
088: { MsgKey.ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE,
089: "Path contains invalid escape sequence" },
090:
091: { MsgKey.ER_PATH_INVALID_CHAR,
092: "Path contains invalid character: {0}" },
093:
094: { MsgKey.ER_FRAG_INVALID_CHAR,
095: "Fragment contains invalid character" },
096:
097: { MsgKey.ER_FRAG_WHEN_PATH_NULL,
098: "Fragment cannot be set when path is null" },
099:
100: { MsgKey.ER_FRAG_FOR_GENERIC_URI,
101: "Fragment can only be set for a generic URI" },
102:
103: { MsgKey.ER_NO_SCHEME_IN_URI, "No scheme found in URI" },
104:
105: { MsgKey.ER_CANNOT_INIT_URI_EMPTY_PARMS,
106: "Cannot initialize URI with empty parameters" },
107:
108: { MsgKey.ER_NO_FRAGMENT_STRING_IN_PATH,
109: "Fragment cannot be specified in both the path and fragment" },
110:
111: { MsgKey.ER_NO_QUERY_STRING_IN_PATH,
112: "Query string cannot be specified in path and query string" },
113:
114: { MsgKey.ER_NO_PORT_IF_NO_HOST,
115: "Port may not be specified if host is not specified" },
116:
117: { MsgKey.ER_NO_USERINFO_IF_NO_HOST,
118: "Userinfo may not be specified if host is not specified" },
119:
120: { MsgKey.ER_SCHEME_REQUIRED, "Scheme is required!" }
121:
122: };
123: return contents;
124: }
125: }
|