Home | History | Annotate | Download | only in utils
      1 /*
      2  * Licensed to the Apache Software Foundation (ASF) under one
      3  * or more contributor license agreements. See the NOTICE file
      4  * distributed with this work for additional information
      5  * regarding copyright ownership. The ASF licenses this file
      6  * to you under the Apache License, Version 2.0 (the  "License");
      7  * you may not use this file except in compliance with the License.
      8  * You may obtain a copy of the License at
      9  *
     10  *     http://www.apache.org/licenses/LICENSE-2.0
     11  *
     12  * Unless required by applicable law or agreed to in writing, software
     13  * distributed under the License is distributed on an "AS IS" BASIS,
     14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     15  * See the License for the specific language governing permissions and
     16  * limitations under the License.
     17  */
     18 /*
     19  * $Id: MsgKey.java 471981 2006-11-07 04:28:00Z minchau $
     20  */
     21 package org.apache.xml.serializer.utils;
     22 
     23 /**
     24  * This class is not a public API,
     25  * It is used internally by serializer and is public,
     26  * in the Java sense, only because its use crosses
     27  * package boundaries.
     28  * <p>
     29  * This class holds only the message keys used
     30  * when generating messages.
     31  */
     32 public class MsgKey {
     33 
     34     /** An internal error with the messages,
     35      * this is the message to use if the message key can't be found
     36      */
     37     public static final String BAD_MSGKEY = "BAD_MSGKEY";
     38 
     39     /**
     40      * An internal error with the messages,
     41      * this is the message to use if the message format operation failed.
     42      */
     43     public static final String BAD_MSGFORMAT = "BAD_MSGFORMAT";
     44 
     45     public static final String ER_RESOURCE_COULD_NOT_FIND =
     46         "ER_RESOURCE_COULD_NOT_FIND";
     47     public static final String ER_RESOURCE_COULD_NOT_LOAD =
     48         "ER_RESOURCE_COULD_NOT_LOAD";
     49     public static final String ER_BUFFER_SIZE_LESSTHAN_ZERO =
     50         "ER_BUFFER_SIZE_LESSTHAN_ZERO";
     51     public static final String ER_INVALID_UTF16_SURROGATE =
     52         "ER_INVALID_UTF16_SURROGATE";
     53     public static final String ER_OIERROR = "ER_OIERROR";
     54     public static final String ER_NAMESPACE_PREFIX = "ER_NAMESPACE_PREFIX";
     55     public static final String ER_STRAY_ATTRIBUTE = "ER_STRAY_ATTRIBUTE";
     56     public static final String ER_STRAY_NAMESPACE = "ER_STRAY_NAMESPACE";
     57     public static final String ER_COULD_NOT_LOAD_RESOURCE =
     58         "ER_COULD_NOT_LOAD_RESOURCE";
     59     public static final String ER_COULD_NOT_LOAD_METHOD_PROPERTY =
     60         "ER_COULD_NOT_LOAD_METHOD_PROPERTY";
     61     public static final String ER_SERIALIZER_NOT_CONTENTHANDLER =
     62         "ER_SERIALIZER_NOT_CONTENTHANDLER";
     63     public static final String ER_ILLEGAL_ATTRIBUTE_POSITION =
     64         "ER_ILLEGAL_ATTRIBUTE_POSITION";
     65     public static final String ER_ILLEGAL_CHARACTER = "ER_ILLEGAL_CHARACTER";
     66 
     67     public static final String ER_INVALID_PORT = "ER_INVALID_PORT";
     68     public static final String ER_PORT_WHEN_HOST_NULL =
     69         "ER_PORT_WHEN_HOST_NULL";
     70     public static final String ER_HOST_ADDRESS_NOT_WELLFORMED =
     71         "ER_HOST_ADDRESS_NOT_WELLFORMED";
     72     public static final String ER_SCHEME_NOT_CONFORMANT =
     73         "ER_SCHEME_NOT_CONFORMANT";
     74     public static final String ER_SCHEME_FROM_NULL_STRING =
     75         "ER_SCHEME_FROM_NULL_STRING";
     76     public static final String ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE =
     77         "ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE";
     78     public static final String ER_PATH_INVALID_CHAR = "ER_PATH_INVALID_CHAR";
     79     public static final String ER_NO_SCHEME_INURI = "ER_NO_SCHEME_INURI";
     80     public static final String ER_FRAG_INVALID_CHAR = "ER_FRAG_INVALID_CHAR";
     81     public static final String ER_FRAG_WHEN_PATH_NULL =
     82         "ER_FRAG_WHEN_PATH_NULL";
     83     public static final String ER_FRAG_FOR_GENERIC_URI =
     84         "ER_FRAG_FOR_GENERIC_URI";
     85     public static final String ER_NO_SCHEME_IN_URI = "ER_NO_SCHEME_IN_URI";
     86     public static final String ER_CANNOT_INIT_URI_EMPTY_PARMS =
     87         "ER_CANNOT_INIT_URI_EMPTY_PARMS";
     88     public static final String ER_NO_FRAGMENT_STRING_IN_PATH =
     89         "ER_NO_FRAGMENT_STRING_IN_PATH";
     90     public static final String ER_NO_QUERY_STRING_IN_PATH =
     91         "ER_NO_QUERY_STRING_IN_PATH";
     92     public static final String ER_NO_PORT_IF_NO_HOST = "ER_NO_PORT_IF_NO_HOST";
     93     public static final String ER_NO_USERINFO_IF_NO_HOST =
     94         "ER_NO_USERINFO_IF_NO_HOST";
     95     public static final String ER_SCHEME_REQUIRED = "ER_SCHEME_REQUIRED";
     96     public static final String ER_XML_VERSION_NOT_SUPPORTED = "ER_XML_VERSION_NOT_SUPPORTED";
     97     public static final String ER_FACTORY_PROPERTY_MISSING = "ER_FACTORY_PROPERTY_MISSING";
     98     public static final String ER_ENCODING_NOT_SUPPORTED = "ER_ENCODING_NOT_SUPPORTED";
     99     // 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 }
    132