001 /* 002 * Licensed to the Apache Software Foundation (ASF) under one 003 * or more contributor license agreements. See the NOTICE file 004 * distributed with this work for additional information 005 * regarding copyright ownership. The ASF licenses this file 006 * to you under the Apache License, Version 2.0 (the "License"); 007 * you may not use this file except in compliance with the License. 008 * You may obtain a copy of the License at 009 * 010 * http://www.apache.org/licenses/LICENSE-2.0 011 * 012 * Unless required by applicable law or agreed to in writing, software 013 * distributed under the License is distributed on an "AS IS" BASIS, 014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 015 * See the License for the specific language governing permissions and 016 * limitations under the License. 017 */ 018 /* 019 * $Id: MsgKey.java 471981 2006-11-07 04:28:00Z minchau $ 020 */ 021 package org.apache.xml.serializer.utils; 022 023 /** 024 * This class is not a public API, 025 * It is used internally by serializer and is public, 026 * in the Java sense, only because its use crosses 027 * package boundaries. 028 * <p> 029 * This class holds only the message keys used 030 * when generating messages. 031 */ 032 public class MsgKey { 033 034 /** An internal error with the messages, 035 * this is the message to use if the message key can't be found 036 */ 037 public static final String BAD_MSGKEY = "BAD_MSGKEY"; 038 039 /** 040 * An internal error with the messages, 041 * this is the message to use if the message format operation failed. 042 */ 043 public static final String BAD_MSGFORMAT = "BAD_MSGFORMAT"; 044 045 public static final String ER_RESOURCE_COULD_NOT_FIND = 046 "ER_RESOURCE_COULD_NOT_FIND"; 047 public static final String ER_RESOURCE_COULD_NOT_LOAD = 048 "ER_RESOURCE_COULD_NOT_LOAD"; 049 public static final String ER_BUFFER_SIZE_LESSTHAN_ZERO = 050 "ER_BUFFER_SIZE_LESSTHAN_ZERO"; 051 public static final String ER_INVALID_UTF16_SURROGATE = 052 "ER_INVALID_UTF16_SURROGATE"; 053 public static final String ER_OIERROR = "ER_OIERROR"; 054 public static final String ER_NAMESPACE_PREFIX = "ER_NAMESPACE_PREFIX"; 055 public static final String ER_STRAY_ATTRIBUTE = "ER_STRAY_ATTRIBUTE"; 056 public static final String ER_STRAY_NAMESPACE = "ER_STRAY_NAMESPACE"; 057 public static final String ER_COULD_NOT_LOAD_RESOURCE = 058 "ER_COULD_NOT_LOAD_RESOURCE"; 059 public static final String ER_COULD_NOT_LOAD_METHOD_PROPERTY = 060 "ER_COULD_NOT_LOAD_METHOD_PROPERTY"; 061 public static final String ER_SERIALIZER_NOT_CONTENTHANDLER = 062 "ER_SERIALIZER_NOT_CONTENTHANDLER"; 063 public static final String ER_ILLEGAL_ATTRIBUTE_POSITION = 064 "ER_ILLEGAL_ATTRIBUTE_POSITION"; 065 public static final String ER_ILLEGAL_CHARACTER = "ER_ILLEGAL_CHARACTER"; 066 067 public static final String ER_INVALID_PORT = "ER_INVALID_PORT"; 068 public static final String ER_PORT_WHEN_HOST_NULL = 069 "ER_PORT_WHEN_HOST_NULL"; 070 public static final String ER_HOST_ADDRESS_NOT_WELLFORMED = 071 "ER_HOST_ADDRESS_NOT_WELLFORMED"; 072 public static final String ER_SCHEME_NOT_CONFORMANT = 073 "ER_SCHEME_NOT_CONFORMANT"; 074 public static final String ER_SCHEME_FROM_NULL_STRING = 075 "ER_SCHEME_FROM_NULL_STRING"; 076 public static final String ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE = 077 "ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE"; 078 public static final String ER_PATH_INVALID_CHAR = "ER_PATH_INVALID_CHAR"; 079 public static final String ER_NO_SCHEME_INURI = "ER_NO_SCHEME_INURI"; 080 public static final String ER_FRAG_INVALID_CHAR = "ER_FRAG_INVALID_CHAR"; 081 public static final String ER_FRAG_WHEN_PATH_NULL = 082 "ER_FRAG_WHEN_PATH_NULL"; 083 public static final String ER_FRAG_FOR_GENERIC_URI = 084 "ER_FRAG_FOR_GENERIC_URI"; 085 public static final String ER_NO_SCHEME_IN_URI = "ER_NO_SCHEME_IN_URI"; 086 public static final String ER_CANNOT_INIT_URI_EMPTY_PARMS = 087 "ER_CANNOT_INIT_URI_EMPTY_PARMS"; 088 public static final String ER_NO_FRAGMENT_STRING_IN_PATH = 089 "ER_NO_FRAGMENT_STRING_IN_PATH"; 090 public static final String ER_NO_QUERY_STRING_IN_PATH = 091 "ER_NO_QUERY_STRING_IN_PATH"; 092 public static final String ER_NO_PORT_IF_NO_HOST = "ER_NO_PORT_IF_NO_HOST"; 093 public static final String ER_NO_USERINFO_IF_NO_HOST = 094 "ER_NO_USERINFO_IF_NO_HOST"; 095 public static final String ER_SCHEME_REQUIRED = "ER_SCHEME_REQUIRED"; 096 public static final String ER_XML_VERSION_NOT_SUPPORTED = "ER_XML_VERSION_NOT_SUPPORTED"; 097 public static final String ER_FACTORY_PROPERTY_MISSING = "ER_FACTORY_PROPERTY_MISSING"; 098 public static final String ER_ENCODING_NOT_SUPPORTED = "ER_ENCODING_NOT_SUPPORTED"; 099 // DOM Exceptions 100 public static final String ER_FEATURE_NOT_FOUND = "FEATURE_NOT_FOUND"; 101 public static final String ER_FEATURE_NOT_SUPPORTED = "FEATURE_NOT_SUPPORTED"; 102 public static final String ER_STRING_TOO_LONG = "DOMSTRING_SIZE_ERR"; 103 public static final String ER_TYPE_MISMATCH_ERR = "TYPE_MISMATCH_ERR"; 104 105 // DOM Level 3 load and save messages 106 public static final String ER_NO_OUTPUT_SPECIFIED = "no-output-specified"; 107 public static final String ER_UNSUPPORTED_ENCODING = "unsupported-encoding"; 108 public static final String ER_ELEM_UNBOUND_PREFIX_IN_ENTREF = "unbound-prefix-in-entity-reference"; 109 public static final String ER_ATTR_UNBOUND_PREFIX_IN_ENTREF = "unbound-prefix-in-entity-reference"; 110 public static final String ER_CDATA_SECTIONS_SPLIT = "cdata-sections-splitted"; 111 public static final String ER_WF_INVALID_CHARACTER = "wf-invalid-character"; 112 public static final String ER_WF_INVALID_CHARACTER_IN_NODE_NAME = "wf-invalid-character-in-node-name"; 113 114 // DOM Level 3 Implementation specific Exceptions 115 public static final String ER_UNABLE_TO_SERIALIZE_NODE = "ER_UNABLE_TO_SERIALIZE_NODE"; 116 public static final String ER_WARNING_WF_NOT_CHECKED = "ER_WARNING_WF_NOT_CHECKED"; 117 118 public static final String ER_WF_INVALID_CHARACTER_IN_COMMENT = "ER_WF_INVALID_CHARACTER_IN_COMMENT"; 119 public static final String ER_WF_INVALID_CHARACTER_IN_PI = "ER_WF_INVALID_CHARACTER_IN_PI"; 120 public static final String ER_WF_INVALID_CHARACTER_IN_CDATA = "ER_WF_INVALID_CHARACTER_IN_CDATA"; 121 public static final String ER_WF_INVALID_CHARACTER_IN_TEXT = "ER_WF_INVALID_CHARACTER_IN_TEXT"; 122 public static final String ER_WF_DASH_IN_COMMENT = "ER_WF_DASH_IN_COMMENT"; 123 public static final String ER_WF_LT_IN_ATTVAL = "ER_WF_LT_IN_ATTVAL"; 124 public static final String ER_WF_REF_TO_UNPARSED_ENT = "ER_WF_REF_TO_UNPARSED_ENT"; 125 public static final String ER_WF_REF_TO_EXTERNAL_ENT = "ER_WF_REF_TO_EXTERNAL_ENT"; 126 public static final String ER_NS_PREFIX_CANNOT_BE_BOUND = "ER_NS_PREFIX_CANNOT_BE_BOUND"; 127 public static final String ER_NULL_LOCAL_ELEMENT_NAME = "ER_NULL_LOCAL_ELEMENT_NAME"; 128 public static final String ER_NULL_LOCAL_ATTR_NAME = "ER_NULL_LOCAL_ATTR_NAME"; 129 public static final String ER_WRITING_INTERNAL_SUBSET = "ER_WRITING_INTERNAL_SUBSET"; 130 131 }