16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 */
20
21 package com.sun.org.apache.xerces.internal.impl.msg;
22
23 import com.sun.org.apache.xerces.internal.util.MessageFormatter;
24 import com.sun.org.apache.xerces.internal.utils.SecuritySupport;
25 import java.util.Locale;
26 import java.util.MissingResourceException;
27 import java.util.ResourceBundle;
28
29 /**
30 * XMLMessageFormatter provides error messages for the XML 1.0 Recommendation and for
31 * the Namespaces Recommendation
32 *
33 * @xerces.internal
34 *
35 * @author Eric Ye, IBM
36 * @version $Id: XMLMessageFormatter.java 3094 2012-03-21 05:50:01Z joehw $
37 *
38 */
39 public class XMLMessageFormatter implements MessageFormatter {
40 /**
41 * The domain of messages concerning the XML 1.0 specification.
42 */
43 public static final String XML_DOMAIN = "http://www.w3.org/TR/1998/REC-xml-19980210";
44 public static final String XMLNS_DOMAIN = "http://www.w3.org/TR/1999/REC-xml-names-19990114";
45
46 // private objects to cache the locale and resource bundle
47 private Locale fLocale = null;
48 private ResourceBundle fResourceBundle = null;
49
50 //
51 // MessageFormatter methods
52 //
53
54 /**
55 * Formats a message with the specified arguments using the given
56 * locale information.
|
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 */
20
21 package com.sun.org.apache.xerces.internal.impl.msg;
22
23 import com.sun.org.apache.xerces.internal.util.MessageFormatter;
24 import com.sun.org.apache.xerces.internal.utils.SecuritySupport;
25 import java.util.Locale;
26 import java.util.MissingResourceException;
27 import java.util.ResourceBundle;
28
29 /**
30 * XMLMessageFormatter provides error messages for the XML 1.0 Recommendation and for
31 * the Namespaces Recommendation
32 *
33 * @xerces.internal
34 *
35 * @author Eric Ye, IBM
36 *
37 */
38 public class XMLMessageFormatter implements MessageFormatter {
39 /**
40 * The domain of messages concerning the XML 1.0 specification.
41 */
42 public static final String XML_DOMAIN = "http://www.w3.org/TR/1998/REC-xml-19980210";
43 public static final String XMLNS_DOMAIN = "http://www.w3.org/TR/1999/REC-xml-names-19990114";
44
45 // private objects to cache the locale and resource bundle
46 private Locale fLocale = null;
47 private ResourceBundle fResourceBundle = null;
48
49 //
50 // MessageFormatter methods
51 //
52
53 /**
54 * Formats a message with the specified arguments using the given
55 * locale information.
|