xpatherrorresources_ja.java

来自「java jdk 1.4的源码」· Java 代码 · 共 1,482 行 · 第 1/4 页

JAVA
1,482
字号
/* * @(#)XPATHErrorResources_ja.java	1.5 03/04/28 * 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.xpath.res;import org.apache.xml.utils.res.XResourceBundleBase;import java.util.*;import java.text.DecimalFormat;/** * <meta name="usage" content="advanced"/> * 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 Static string constant for the * Key and update the contents array with Key, Value pair  * Also you need to  update the count of messages(MAX_CODE)or * the count of warnings(MAX_WARNING) [ Information purpose only] */public class XPATHErrorResources_ja extends XPATHErrorResources{  /** Field MAX_CODE          */  public static final int MAX_CODE = 116;  // this is needed to keep track of the number of messages            /** Field MAX_WARNING          */  public static final int MAX_WARNING = 11;  // this is needed to keep track of the number of warnings  /** Field MAX_OTHERS          */  public static final int MAX_OTHERS = 20;  /** Field MAX_MESSAGES          */  public static final int MAX_MESSAGES = MAX_CODE + MAX_WARNING + 1;  // Error messages...  public static final Object[][] contents = {  /** Field ERROR0000          */  //public static final int ERROR0000 = 0;  {    "ERROR0000", "{0}"},  /** Field ER_CURRENT_NOT_ALLOWED_IN_MATCH          */  //public static final int ER_CURRENT_NOT_ALLOWED_IN_MATCH = 1;  {    ER_CURRENT_NOT_ALLOWED_IN_MATCH,      "current() \u95a2\u6570\u306f\u4e00\u81f4\u30d1\u30bf\u30fc\u30f3\u3067\u8a31\u53ef\u3055\u308c\u307e\u305b\u3093\u3002"},//      "The current() function is not allowed in a match pattern!"},  /** Field ER_CURRENT_TAKES_NO_ARGS          */  //public static final int ER_CURRENT_TAKES_NO_ARGS = 2;  {    ER_CURRENT_TAKES_NO_ARGS,      "current() \u95a2\u6570\u306f\u5f15\u6570\u3092\u53d7\u3051\u5165\u308c\u307e\u305b\u3093\u3002"},//      "The current() function does not accept arguments!"},  /** Field ER_DOCUMENT_REPLACED          */  //public static final int ER_DOCUMENT_REPLACED = 3;  {    ER_DOCUMENT_REPLACED,      "document() \u95a2\u6570\u5b9f\u88c5\u306f org.apache.xalan.xslt.FuncDocument \u306b\u7f6e\u304d\u63db\u3048\u3089\u308c\u307e\u3057\u305f\u3002"},//      "document() function implementation has been replaced by org.apache.xalan.xslt.FuncDocument!"},  /** Field ER_CONTEXT_HAS_NO_OWNERDOC          */  //public static final int ER_CONTEXT_HAS_NO_OWNERDOC = 4;  {    ER_CONTEXT_HAS_NO_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!"},  /** Field ER_LOCALNAME_HAS_TOO_MANY_ARGS          */  //public static final int ER_LOCALNAME_HAS_TOO_MANY_ARGS = 5;  {    ER_LOCALNAME_HAS_TOO_MANY_ARGS,      "local-name() \u306e\u5f15\u6570\u304c\u591a\u3059\u304e\u307e\u3059\u3002"},//      "local-name() has too many arguments."},  /** Field ER_NAMESPACEURI_HAS_TOO_MANY_ARGS          */  //public static final int ER_NAMESPACEURI_HAS_TOO_MANY_ARGS = 6;  {    ER_NAMESPACEURI_HAS_TOO_MANY_ARGS,      "namespace-uri() \u306e\u5f15\u6570\u304c\u591a\u3059\u304e\u307e\u3059\u3002"},//      "namespace-uri() has too many arguments."},  /** Field ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS          */  //public static final int ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS = 7;  {    ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS,      "normalize-space() \u306e\u5f15\u6570\u304c\u591a\u3059\u304e\u307e\u3059\u3002"},//      "normalize-space() has too many arguments."},  /** Field ER_NUMBER_HAS_TOO_MANY_ARGS          */  //public static final int ER_NUMBER_HAS_TOO_MANY_ARGS = 8;  {    ER_NUMBER_HAS_TOO_MANY_ARGS,      "number() \u306e\u5f15\u6570\u304c\u591a\u3059\u304e\u307e\u3059\u3002"},//      "number() has too many arguments."},  /** Field ER_NAME_HAS_TOO_MANY_ARGS          */  //public static final int ER_NAME_HAS_TOO_MANY_ARGS = 9;  {    ER_NAME_HAS_TOO_MANY_ARGS, "name() \u306e\u5f15\u6570\u304c\u591a\u3059\u304e\u307e\u3059\u3002"},//    ER_NAME_HAS_TOO_MANY_ARGS, "name() has too many arguments."},  /** Field ER_STRING_HAS_TOO_MANY_ARGS          */  //public static final int ER_STRING_HAS_TOO_MANY_ARGS = 10;  {    ER_STRING_HAS_TOO_MANY_ARGS,      "string() \u306e\u5f15\u6570\u304c\u591a\u3059\u304e\u307e\u3059\u3002"},//      "string() has too many arguments."},  /** Field ER_STRINGLENGTH_HAS_TOO_MANY_ARGS          */  //public static final int ER_STRINGLENGTH_HAS_TOO_MANY_ARGS = 11;  {    ER_STRINGLENGTH_HAS_TOO_MANY_ARGS,      "string-length() \u306e\u5f15\u6570\u304c\u591a\u3059\u304e\u307e\u3059\u3002"},//      "string-length() has too many arguments."},  /** Field ER_TRANSLATE_TAKES_3_ARGS          */  //public static final int ER_TRANSLATE_TAKES_3_ARGS = 12;  {    ER_TRANSLATE_TAKES_3_ARGS,      "translate() \u95a2\u6570\u306b 3 \u3064\u306e\u5f15\u6570\u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002"},//      "The translate() function takes three arguments!"},  /** Field ER_UNPARSEDENTITYURI_TAKES_1_ARG          */  //public static final int ER_UNPARSEDENTITYURI_TAKES_1_ARG = 13;  {    ER_UNPARSEDENTITYURI_TAKES_1_ARG,      "unparsed-entity-uri \u95a2\u6570\u306f\u5f15\u6570\u3092 1 \u3064\u3060\u3051\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002"},//      "The unparsed-entity-uri function should take one argument!"},  /** Field ER_NAMESPACEAXIS_NOT_IMPLEMENTED          */  //public static final int ER_NAMESPACEAXIS_NOT_IMPLEMENTED = 14;  {    ER_NAMESPACEAXIS_NOT_IMPLEMENTED,      "\u540d\u524d\u7a7a\u9593\u8ef8\u306f\u307e\u3060\u5b9f\u88c5\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002"},//      "namespace axis not implemented yet!"},  /** Field ER_UNKNOWN_AXIS          */  //public static final int ER_UNKNOWN_AXIS = 15;  {    ER_UNKNOWN_AXIS, "\u672a\u77e5\u306e\u8ef8: {0}"},//    ER_UNKNOWN_AXIS, "unknown axis: {0}"},  /** Field ER_UNKNOWN_MATCH_OPERATION          */  //public static final int ER_UNKNOWN_MATCH_OPERATION = 16;  {    ER_UNKNOWN_MATCH_OPERATION, "\u672a\u77e5\u306e\u7167\u5408\u30aa\u30da\u30ec\u30fc\u30b7\u30e7\u30f3\u3067\u3059\u3002"},//    ER_UNKNOWN_MATCH_OPERATION, "unknown match operation!"},  /** Field ER_INCORRECT_ARG_LENGTH          */  //public static final int ER_INCORRECT_ARG_LENGTH = 17;  {    ER_INCORRECT_ARG_LENGTH,      "processing-instruction() \u30ce\u30fc\u30c9\u30c6\u30b9\u30c8\u306e\u5f15\u6570\u306e\u9577\u3055\u304c\u4e0d\u6b63\u3067\u3059\u3002"},//      "Arg length of processing-instruction() node test is incorrect!"},  /** Field ER_CANT_CONVERT_TO_NUMBER          */  //public static final int ER_CANT_CONVERT_TO_NUMBER = 18;  {    ER_CANT_CONVERT_TO_NUMBER,      "{0} \u3092\u6570\u5b57\u306b\u5909\u63db\u3067\u304d\u307e\u305b\u3093"},//      "Can not convert {0} to a number"},  /** Field ER_CANT_CONVERT_TO_NODELIST          */  //public static final int ER_CANT_CONVERT_TO_NODELIST = 19;  {    ER_CANT_CONVERT_TO_NODELIST,      "{0} \u3092 NodeList \u306b\u5909\u63db\u3067\u304d\u307e\u305b\u3093\u3002"},//      "Can not convert {0} to a NodeList!"},  /** Field ER_CANT_CONVERT_TO_MUTABLENODELIST          */  //public static final int ER_CANT_CONVERT_TO_MUTABLENODELIST = 20;  {    ER_CANT_CONVERT_TO_MUTABLENODELIST,      "{0} \u3092 NodeSetDTM \u306b\u5909\u63db\u3067\u304d\u307e\u305b\u3093\u3002"},//      "Can not convert {0} to a NodeSetDTM!"},  /** Field ER_CANT_CONVERT_TO_TYPE          */  //public static final int ER_CANT_CONVERT_TO_TYPE = 21;  {    ER_CANT_CONVERT_TO_TYPE,      "{0} \u3092 type//{1} \u306b\u5909\u63db\u3067\u304d\u307e\u305b\u3093"},//      "Can not convert {0} to a type//{1}"},  /** Field ER_EXPECTED_MATCH_PATTERN          */  //public static final int ER_EXPECTED_MATCH_PATTERN = 22;  {    ER_EXPECTED_MATCH_PATTERN,      "getMatchScore \u306b\u4e88\u671f\u3055\u308c\u308b\u4e00\u81f4\u30d1\u30bf\u30fc\u30f3\u3067\u3059\u3002"},//      "Expected match pattern in getMatchScore!"},  /** Field ER_COULDNOT_GET_VAR_NAMED          */  //public static final int ER_COULDNOT_GET_VAR_NAMED = 23;  {    ER_COULDNOT_GET_VAR_NAMED,      "{0} \u3068\u3044\u3046\u540d\u524d\u306e\u5909\u6570\u3092\u53d6\u5f97\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f"},//      "Could not get variable named {0}"},  /** Field ER_UNKNOWN_OPCODE          */  //public static final int ER_UNKNOWN_OPCODE = 24;  {    ER_UNKNOWN_OPCODE, "\u30a8\u30e9\u30fc\u3002\u672a\u77e5\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u30b3\u30fc\u30c9: {0}"},//    ER_UNKNOWN_OPCODE, ERROR! Unknown op code: {0}"},  /** Field ER_EXTRA_ILLEGAL_TOKENS          */  //public static final int ER_EXTRA_ILLEGAL_TOKENS = 25;  {    ER_EXTRA_ILLEGAL_TOKENS, "\u4f59\u5206\u306a\u4e0d\u6b63\u30c8\u30fc\u30af\u30f3: {0}"},//    ER_EXTRA_ILLEGAL_TOKENS, "Extra illegal tokens: {0}"},  /** Field ER_EXPECTED_DOUBLE_QUOTE          */  //public static final int ER_EXPECTED_DOUBLE_QUOTE = 26;  {    ER_EXPECTED_DOUBLE_QUOTE,      "\u30ea\u30c6\u30e9\u30eb\u306e\u5f15\u7528\u7b26\u304c\u8aa4\u308a\u3067\u3059... \u4e8c\u91cd\u5f15\u7528\u7b26\u304c\u5fc5\u8981\u3067\u3059\u3002"},//      "misquoted literal... expected double quote!"},  /** Field ER_EXPECTED_SINGLE_QUOTE          */  //public static final int ER_EXPECTED_SINGLE_QUOTE = 27;  {    ER_EXPECTED_SINGLE_QUOTE,      "\u30ea\u30c6\u30e9\u30eb\u306e\u5f15\u7528\u7b26\u304c\u8aa4\u308a\u3067\u3059... \u5358\u4e00\u5f15\u7528\u7b26\u304c\u5fc5\u8981\u3067\u3059\u3002"},//      "misquoted literal... expected single quote!"},  /** Field ER_EMPTY_EXPRESSION          */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?