xslterrorresources_ja.java
来自「java jdk 1.4的源码」· Java 代码 · 共 2,021 行 · 第 1/5 页
JAVA
2,021 行
/* * @(#)XSLTErrorResources_ja.java 1.7 03/05/09 * The Apache Software License, Version 1.1 * * * Copyright (c) 1999 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. * * 4. The names "Xalan" and "Apache Software Foundation" must * not be used to endorse or promote products derived from this * software without prior written permission. For written * permission, please contact apache@apache.org. * * 5. Products derived from this software may not be called "Apache", * nor may "Apache" appear in their name, without prior written * permission of the Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation and was * originally based on software copyright (c) 2002, Sun Microsystems, * Inc., http://www.sun.com. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. */package org.apache.xalan.res;import org.apache.xml.utils.res.XResourceBundleBase;import java.util.MissingResourceException;import java.util.Locale;import java.util.ResourceBundle;import java.text.DecimalFormat;import org.apache.xalan.templates.Constants;/** * Set up error messages. * We build a two dimensional array of message keys and * message strings. In order to add a new message here, * you need to first add a String constant. And * you need to enter key , value pair as part of contents * Array. You also need to update MAX_CODE for error strings * and MAX_WARNING for warnings ( Needed for only information * purpose ) */public class XSLTErrorResources_ja extends XSLTErrorResources{ /** Maximum error messages, this is needed to keep track of the number of messages. */ public static final int MAX_CODE = 253; /** Maximum warnings, this is needed to keep track of the number of warnings. */ public static final int MAX_WARNING = 29; /** Maximum misc strings. */ public static final int MAX_OTHERS = 55; /** Maximum total warnings and error messages. */ public static final int MAX_MESSAGES = MAX_CODE + MAX_WARNING + 1; /** The lookup table for error messages. */ public static final Object[][] contents = { /** Error message ID that has a null message, but takes in a single object. */ //public static final int ERROR0000 = 0; { "ERROR0000", "{0}"}, /** ER_NO_CURLYBRACE */ //public static final int ER_NO_CURLYBRACE = 1; { ER_NO_CURLYBRACE, "\u30a8\u30e9\u30fc: \u5f0f\u306e\u4e2d\u3067 '{' \u3092\u6301\u3064\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093"}, // "Error: Can not have '{' within expression"}, /** ER_ILLEGAL_ATTRIBUTE */ //public static final int ER_ILLEGAL_ATTRIBUTE = 2; { ER_ILLEGAL_ATTRIBUTE, "{0} \u306b\u4e0d\u5f53\u306a\u5c5e\u6027\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059: {1}"}, // ER_ILLEGAL_ATTRIBUTE, "{0} has an illegal attribute: {1}"}, /** ER_NULL_SOURCENODE_APPLYIMPORTS */ //public static final int ER_NULL_SOURCENODE_APPLYIMPORTS = 3; { ER_NULL_SOURCENODE_APPLYIMPORTS, "xsl:apply-imports \u3067 sourceNode \u304c null \u3067\u3059"}, // "sourceNode is null in xsl:apply-imports!"}, /** ER_CANNOT_ADD */ //public static final int ER_CANNOT_ADD = 4; { ER_CANNOT_ADD, "{0} \u3092 {1} \u306b\u8ffd\u52a0\u3067\u304d\u307e\u305b\u3093"}, // ER_CANNOT_ADD, "Can not add {0} to {1}"}, /** ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES */ //public static final int ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES = 5; { ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES, "handleApplyTemplatesInstruction \u3067 sourceNode \u304c null \u3067\u3059\u3002"}, // "sourceNode is null in handleApplyTemplatesInstruction!"}, /** ER_NO_NAME_ATTRIB */ //public static final int ER_NO_NAME_ATTRIB = 6; { ER_NO_NAME_ATTRIB, "{0} \u306b\u306f\u540d\u524d\u5c5e\u6027\u304c\u5fc5\u8981\u3067\u3059\u3002"}, // ER_NO_NAME_ATTRIB, "{0} must have a name attribute."}, /** ER_TEMPLATE_NOT_FOUND */ //public static final int ER_TEMPLATE_NOT_FOUND = 7; { ER_TEMPLATE_NOT_FOUND, "{0} \u3068\u3044\u3046\u540d\u524d\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002"}, // ER_TEMPLATE_NOT_FOUND, "Could not find template named: {0}"}, /** ER_CANT_RESOLVE_NAME_AVT */ //public static final int ER_CANT_RESOLVE_NAME_AVT = 8; { ER_CANT_RESOLVE_NAME_AVT, "xls:call-template \u3067\u540d\u524d AVT \u3092\u89e3\u6c7a\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002"}, // "Could not resolve name AVT in xsl:call-template."}, /** ER_REQUIRES_ATTRIB */ //public static final int ER_REQUIRES_ATTRIB = 9; { ER_REQUIRES_ATTRIB, "{0} \u306b\u306f\u5c5e\u6027 {1} \u304c\u5fc5\u8981\u3067\u3059:"}, // ER_REQUIRES_ATTRIB, "{0} requires attribute: {1}"}, /** ER_MUST_HAVE_TEST_ATTRIB */ //public static final int ER_MUST_HAVE_TEST_ATTRIB = 10; { ER_MUST_HAVE_TEST_ATTRIB, "{0} \u306b\u306f ''test'' \u5c5e\u6027\u304c\u5fc5\u8981\u3067\u3059\u3002"}, // "{0} must have a 'test' attribute."}, /** ER_BAD_VAL_ON_LEVEL_ATTRIB */ //public static final int ER_BAD_VAL_ON_LEVEL_ATTRIB = 11; { ER_BAD_VAL_ON_LEVEL_ATTRIB, "\u30ec\u30d9\u30eb\u5c5e\u6027\u306b\u4e0d\u6b63\u306a\u5024\u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059: {0}"}, // "Bad value on level attribute: {0}"}, /** ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML */ //public static final int ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML = 12; { ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML, "processing-instruction \u540d\u306f 'xml' \u306b\u3067\u304d\u307e\u305b\u3093"}, // "processing-instruction name can not be 'xml'"}, /** ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME */ //public static final int ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME = 13; { ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME, "processing-instruction \u540d\u306f\u6709\u52b9\u306a NCName \u3067\u306a\u304f\u3066\u306f\u306a\u308a\u307e\u305b\u3093: {0}"}, // "processing-instruction name must be a valid NCName: {0}"}, /** ER_NEED_MATCH_ATTRIB */ //public static final int ER_NEED_MATCH_ATTRIB = 14; { ER_NEED_MATCH_ATTRIB, "{0} \u306b\u30e2\u30fc\u30c9\u304c\u3042\u308b\u5834\u5408\u3001\u4e00\u81f4\u3059\u308b\u5c5e\u6027\u3092\u6301\u305f\u306a\u304f\u3066\u306f\u306a\u308a\u307e\u305b\u3093\u3002"}, // "{0} must have a match attribute if it has a mode."}, /** ER_NEED_NAME_OR_MATCH_ATTRIB */ //public static final int ER_NEED_NAME_OR_MATCH_ATTRIB = 15; { ER_NEED_NAME_OR_MATCH_ATTRIB, "{0} \u306f name \u5c5e\u6027\u304b\u3001\u307e\u305f\u306f match \u5c5e\u6027\u3092\u5fc5\u8981\u3068\u3057\u307e\u3059\u3002"}, // "{0} requires either a name or a match attribute."}, /** ER_CANT_RESOLVE_NSPREFIX */ //public static final int ER_CANT_RESOLVE_NSPREFIX = 16; { ER_CANT_RESOLVE_NSPREFIX, "\u540d\u524d\u7a7a\u9593\u306e\u63a5\u982d\u8f9e {0} \u3092\u89e3\u6c7a\u3067\u304d\u307e\u305b\u3093"}, // "Can not resolve namespace prefix: {0}"}, /** ER_ILLEGAL_VALUE */ //public static final int ER_ILLEGAL_VALUE = 17; { ER_ILLEGAL_VALUE, "xml:space \u306b\u4e0d\u5f53\u306a\u5024\u304c\u3042\u308a\u307e\u3059: {0}"}, // ER_ILLEGAL_VALUE, "xml:space has an illegal value: {0}"}, /** ER_NO_OWNERDOC */ //public static final int ER_NO_OWNERDOC = 18; { ER_NO_OWNERDOC, "\u5b50\u30ce\u30fc\u30c9\u306f\u6240\u6709\u8005\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u4fdd\u6301\u3057\u307e\u305b\u3093\u3002"}, // "Child node does not have an owner document!"}, /** ER_ELEMTEMPLATEELEM_ERR */ //public static final int ER_ELEMTEMPLATEELEM_ERR = 19; { ER_ELEMTEMPLATEELEM_ERR, "ElemTemplateElement \u30a8\u30e9\u30fc: {0}"}, // ER_ELEMTEMPLATEELEM_ERR, "ElemTemplateElement error: {0}"}, /** ER_NULL_CHILD */ //public static final int ER_NULL_CHILD = 20; { ER_NULL_CHILD, "null \u3067\u3042\u308b\u5b50\u3092\u8ffd\u52a0\u3057\u3066\u3044\u307e\u3059\u3002"}, // ER_NULL_CHILD, "Trying to add a null child!"}, /** ER_NEED_SELECT_ATTRIB */ //public static final int ER_NEED_SELECT_ATTRIB = 21; { ER_NEED_SELECT_ATTRIB, "{0} \u306f select \u5c5e\u6027\u304c\u5fc5\u8981\u3067\u3059\u3002"}, // ER_NEED_SELECT_ATTRIB, "{0} requires a select attribute."}, /** ER_NEED_TEST_ATTRIB */ //public static final int ER_NEED_TEST_ATTRIB = 22; { ER_NEED_TEST_ATTRIB, "xsl:when \u306b\u306f 'test' \u5c5e\u6027\u304c\u5fc5\u8981\u3067\u3059\u3002"}, // "xsl:when must have a 'test' attribute."}, /** ER_NEED_NAME_ATTRIB */ //public static final int ER_NEED_NAME_ATTRIB = 23; { ER_NEED_NAME_ATTRIB, "xsl:with-param \u306b\u306f 'name' \u5c5e\u6027\u304c\u5fc5\u8981\u3067\u3059\u3002"}, // "xsl:with-param must have a 'name' attribute."}, /** ER_NO_CONTEXT_OWNERDOC */ //public static final int ER_NO_CONTEXT_OWNERDOC = 24; { ER_NO_CONTEXT_OWNERDOC, "\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306f\u6240\u6709\u8005\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u4fdd\u6301\u3057\u307e\u305b\u3093\u3002"}, // "context does not have an owner document!"}, /** ER_COULD_NOT_CREATE_XML_PROC_LIAISON */ //public static final int ER_COULD_NOT_CREATE_XML_PROC_LIAISON = 25; { ER_COULD_NOT_CREATE_XML_PROC_LIAISON, "XML TransformerFactory Liaison {0} \u3092\u4f5c\u6210\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002"}, // "Could not create XML TransformerFactory Liaison: {0}"}, /** ER_PROCESS_NOT_SUCCESSFUL */ //public static final int ER_PROCESS_NOT_SUCCESSFUL = 26; { ER_PROCESS_NOT_SUCCESSFUL, "Xalan: \u30d7\u30ed\u30bb\u30b9\u306f\u6210\u529f\u3057\u307e\u305b\u3093\u3067\u3057\u305f\u3002"}, // "Xalan: Process was not successful."}, /** ER_NOT_SUCCESSFUL */ //public static final int ER_NOT_SUCCESSFUL = 27; { ER_NOT_SUCCESSFUL, "Xalan: \u306f\u6210\u529f\u3057\u307e\u305b\u3093\u3067\u3057\u305f\u3002"}, // ER_NOT_SUCCESSFUL, "Xalan: was not successful."}, /** ER_ENCODING_NOT_SUPPORTED */ //public static final int ER_ENCODING_NOT_SUPPORTED = 28; { ER_ENCODING_NOT_SUPPORTED, "\u30a8\u30f3\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u306f\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u307e\u305b\u3093: {0}"}, // ER_ENCODING_NOT_SUPPORTED, "Encoding not supported: {0}"}, /** ER_COULD_NOT_CREATE_TRACELISTENER */ //public static final int ER_COULD_NOT_CREATE_TRACELISTENER = 29; { ER_COULD_NOT_CREATE_TRACELISTENER, "TraceListener \u3092\u4f5c\u6210\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f: {0}"}, // "Could not create TraceListener: {0}"}, /** ER_KEY_REQUIRES_NAME_ATTRIB */ //public static final int ER_KEY_REQUIRES_NAME_ATTRIB = 30; { ER_KEY_REQUIRES_NAME_ATTRIB, "xsl:key \u306b\u306f 'name' \u5c5e\u6027\u304c\u5fc5\u8981\u3067\u3059\u3002"}, // "xsl:key requires a 'name' attribute!"}, /** ER_KEY_REQUIRES_MATCH_ATTRIB */ //public static final int ER_KEY_REQUIRES_MATCH_ATTRIB = 31; { ER_KEY_REQUIRES_MATCH_ATTRIB, "xsl:key \u306b\u306f 'match' \u5c5e\u6027\u304c\u5fc5\u8981\u3067\u3059\u3002"}, // "xsl:key requires a 'match' attribute!"},
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?