01: /*
02: * Copyright 2004 The Apache Software Foundation.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: /*
17: * $Id: MsgKey.java,v 1.4 2005/08/04 23:59:14 minchau Exp $
18: */
19: package org.apache.xml.serializer.utils;
20:
21: /**
22: * This class is not a public API,
23: * It is used internally by serializer and is public,
24: * in the Java sense, only because its use crosses
25: * package boundaries.
26: * <p>
27: * This class holds only the message keys used
28: * when generating messages.
29: */
30: public class MsgKey {
31:
32: /** An internal error with the messages,
33: * this is the message to use if the message key can't be found
34: */
35: public static final String BAD_MSGKEY = "BAD_MSGKEY";
36:
37: /**
38: * An internal error with the messages,
39: * this is the message to use if the message format operation failed.
40: */
41: public static final String BAD_MSGFORMAT = "BAD_MSGFORMAT";
42:
43: public static final String ER_RESOURCE_COULD_NOT_FIND = "ER_RESOURCE_COULD_NOT_FIND";
44: public static final String ER_RESOURCE_COULD_NOT_LOAD = "ER_RESOURCE_COULD_NOT_LOAD";
45: public static final String ER_BUFFER_SIZE_LESSTHAN_ZERO = "ER_BUFFER_SIZE_LESSTHAN_ZERO";
46: public static final String ER_INVALID_UTF16_SURROGATE = "ER_INVALID_UTF16_SURROGATE";
47: public static final String ER_OIERROR = "ER_OIERROR";
48: public static final String ER_NAMESPACE_PREFIX = "ER_NAMESPACE_PREFIX";
49: public static final String ER_STRAY_ATTRIBUTE = "ER_STRAY_ATTRIBUTE";
50: public static final String ER_STRAY_NAMESPACE = "ER_STRAY_NAMESPACE";
51: public static final String ER_COULD_NOT_LOAD_RESOURCE = "ER_COULD_NOT_LOAD_RESOURCE";
52: public static final String ER_COULD_NOT_LOAD_METHOD_PROPERTY = "ER_COULD_NOT_LOAD_METHOD_PROPERTY";
53: public static final String ER_SERIALIZER_NOT_CONTENTHANDLER = "ER_SERIALIZER_NOT_CONTENTHANDLER";
54: public static final String ER_ILLEGAL_ATTRIBUTE_POSITION = "ER_ILLEGAL_ATTRIBUTE_POSITION";
55: public static final String ER_ILLEGAL_CHARACTER = "ER_ILLEGAL_CHARACTER";
56:
57: public static final String ER_INVALID_PORT = "ER_INVALID_PORT";
58: public static final String ER_PORT_WHEN_HOST_NULL = "ER_PORT_WHEN_HOST_NULL";
59: public static final String ER_HOST_ADDRESS_NOT_WELLFORMED = "ER_HOST_ADDRESS_NOT_WELLFORMED";
60: public static final String ER_SCHEME_NOT_CONFORMANT = "ER_SCHEME_NOT_CONFORMANT";
61: public static final String ER_SCHEME_FROM_NULL_STRING = "ER_SCHEME_FROM_NULL_STRING";
62: public static final String ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE = "ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE";
63: public static final String ER_PATH_INVALID_CHAR = "ER_PATH_INVALID_CHAR";
64: public static final String ER_NO_SCHEME_INURI = "ER_NO_SCHEME_INURI";
65: public static final String ER_FRAG_INVALID_CHAR = "ER_FRAG_INVALID_CHAR";
66: public static final String ER_FRAG_WHEN_PATH_NULL = "ER_FRAG_WHEN_PATH_NULL";
67: public static final String ER_FRAG_FOR_GENERIC_URI = "ER_FRAG_FOR_GENERIC_URI";
68: public static final String ER_NO_SCHEME_IN_URI = "ER_NO_SCHEME_IN_URI";
69: public static final String ER_CANNOT_INIT_URI_EMPTY_PARMS = "ER_CANNOT_INIT_URI_EMPTY_PARMS";
70: public static final String ER_NO_FRAGMENT_STRING_IN_PATH = "ER_NO_FRAGMENT_STRING_IN_PATH";
71: public static final String ER_NO_QUERY_STRING_IN_PATH = "ER_NO_QUERY_STRING_IN_PATH";
72: public static final String ER_NO_PORT_IF_NO_HOST = "ER_NO_PORT_IF_NO_HOST";
73: public static final String ER_NO_USERINFO_IF_NO_HOST = "ER_NO_USERINFO_IF_NO_HOST";
74: public static final String ER_SCHEME_REQUIRED = "ER_SCHEME_REQUIRED";
75: public static final String ER_XML_VERSION_NOT_SUPPORTED = "ER_XML_VERSION_NOT_SUPPORTED";
76: public static final String ER_FACTORY_PROPERTY_MISSING = "ER_FACTORY_PROPERTY_MISSING";
77: public static final String ER_ENCODING_NOT_SUPPORTED = "ER_ENCODING_NOT_SUPPORTED";
78:
79: }
|