亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? messageresources.java

?? webwork study w ebwork study
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/*
 * $Header: /home/cvs/jakarta-struts/src/share/org/apache/struts/util/MessageResources.java,v 1.10.2.1 2001/08/06 22:40:12 craigmcc Exp $
 * $Revision: 1.10.2.1 $
 * $Date: 2001/08/06 22:40:12 $
 *
 * ====================================================================
 * 
 * The Apache Software License, Version 1.1
 *
 * Copyright (c) 1999-2001 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 acknowlegement:  
 *       "This product includes software developed by the 
 *        Apache Software Foundation (http://www.apache.org/)."
 *    Alternately, this acknowlegement may appear in the software itself,
 *    if and wherever such third-party acknowlegements normally appear.
 *
 * 4. The names "The Jakarta Project", "Struts", 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 names without prior written
 *    permission of the Apache Group.
 *
 * 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.  For more
 * information on the Apache Software Foundation, please see
 * <http://www.apache.org/>.
 *
 */ 


package jaction.utility;

import java.io.Serializable;
import java.text.MessageFormat;
import java.util.HashMap;
import java.util.Locale;


/**
 * General purpose abstract class that describes an API for retrieving
 * Locale-sensitive messages from underlying resource locations of an
 * unspecified design, and optionally utilizing the <code>MessageFormat</code>
 * class to produce internationalized messages with parametric replacement.
 * <p>
 * Calls to <code>getMessage()</code> variants without a <code>Locale</code>
 * argument are presumed to be requesting a message string in the default
 * <code>Locale</code> for this JVM.
 * <p>
 * Calls to <code>getMessage()</code> with an unknown key, or an unknown
 * <code>Locale</code> will return <code>null</code> if the
 * <code>returnNull</code> property is set to <code>true</code>.  Otherwise,
 * a suitable error message will be returned instead.
 * <p>
 * <strong>IMPLEMENTATION NOTE</strong> - Classes that extend this class
 * must be Serializable so that instances may be used in distributable
 * application server environments.
 *
 * @author Craig R. McClanahan
 * @version $Revision: 1.10.2.1 $ $Date: 2001/08/06 22:40:12 $
 */

public abstract class MessageResources implements Serializable {


    // ------------------------------------------------------------- Properties


    /**
     * The configuration parameter used to initialize this MessageResources.
     */
    protected String config = null;

    public String getConfig() {
        return (this.config);
    }


    /**
     * The default Locale for our environment.
     */
    protected Locale defaultLocale = Locale.getDefault();


    /**
     * The <code>MessageResourcesFactory</code> that created this instance.
     */
    protected MessageResourcesFactory factory = null;

    public MessageResourcesFactory getFactory() {
        return (this.factory);
    }


    /**
     * The set of previously created MessageFormat objects, keyed by the
     * key computed in <code>messageKey()</code>.
     */
    protected HashMap formats = new HashMap();


    /**
     * Should we return <code>null</code> instead of an error message string
     * if an unknown Locale or key is requested?
     */
    protected boolean returnNull = false;

    public boolean getReturnNull() {
        return (this.returnNull);
    }

    public void setReturnNull(boolean returnNull) {
        this.returnNull = returnNull;
    }


    // ----------------------------------------------------------- Constructors


    /**
     * Construct a new MessageResources according to the specified parameters.
     *
     * @param factory The MessageResourcesFactory that created us
     * @param config The configuration parameter for this MessageResources
     */
    public MessageResources(MessageResourcesFactory factory, String config) {

        this(factory, config, false);

    }


    /**
     * Construct a new MessageResources according to the specified parameters.
     *
     * @param factory The MessageResourcesFactory that created us
     * @param config The configuration parameter for this MessageResources
     * @param returnNull The returnNull property we should initialize with
     */
    public MessageResources(MessageResourcesFactory factory, String config,
                         boolean returnNull) {

        super();
        this.factory = factory;
        this.config = config;
        this.returnNull = returnNull;

    }


    // --------------------------------------------------------- Public Methods



    /**
     * Returns a text message for the specified key, for the default Locale.
     *
     * @param key The message key to look up
     */
    public String getMessage(String key) {

	return (getMessage((Locale) null, key));

    }


    /**
     * Returns a text message after parametric replacement of the specified
     * parameter placeholders.
     *
     * @param key The message key to look up
     * @param args An array of replacement parameters for placeholders
     */
    public String getMessage(String key, Object args[]) {

	return (getMessage((Locale) null, key, args));

    }


    /**
     * Returns a text message after parametric replacement of the specified
     * parameter placeholders.
     *
     * @param key The message key to look up
     * @param arg0 The replacement for placeholder {0} in the message
     */
    public String getMessage(String key, Object arg0) {

	return (getMessage((Locale) null, key, arg0));

    }


    /**
     * Returns a text message after parametric replacement of the specified
     * parameter placeholders.
     *
     * @param key The message key to look up
     * @param arg0 The replacement for placeholder {0} in the message
     * @param arg1 The replacement for placeholder {1} in the message
     */
    public String getMessage(String key, Object arg0, Object arg1) {

	return (getMessage((Locale) null, key, arg0, arg1));

    }


    /**
     * Returns a text message after parametric replacement of the specified
     * parameter placeholders.
     *
     * @param key The message key to look up
     * @param arg0 The replacement for placeholder {0} in the message
     * @param arg1 The replacement for placeholder {1} in the message
     * @param arg2 The replacement for placeholder {2} in the message
     */
    public String getMessage(String key, Object arg0, Object arg1,
			     Object arg2) {

	return (getMessage((Locale) null, key, arg0, arg1, arg2));

    }


    /**
     * Returns a text message after parametric replacement of the specified
     * parameter placeholders.
     *
     * @param key The message key to look up
     * @param arg0 The replacement for placeholder {0} in the message
     * @param arg1 The replacement for placeholder {1} in the message
     * @param arg2 The replacement for placeholder {2} in the message
     * @param arg3 The replacement for placeholder {3} in the message
     */
    public String getMessage(String key, Object arg0, Object arg1,
			     Object arg2, Object arg3) {

	return (getMessage((Locale) null, key, arg0, arg1, arg2, arg3));

    }


    /**
     * Returns a text message for the specified key, for the default Locale.
     * A null string result will be returned by this method if no relevant
     * message resource is found for this key or Locale, if the
     * <code>returnNull</code> property is set.  Otherwise, an appropriate
     * error message will be returned.
     * <p>
     * This method must be implemented by a concrete subclass.
     *
     * @param locale The requested message Locale, or <code>null</code>
     *  for the system default Locale
     * @param key The message key to look up
     */
    public abstract String getMessage(Locale locale, String key);


    /**
     * Returns a text message after parametric replacement of the specified

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩美一区二区三区| 国产精品影音先锋| 亚洲成人免费av| 首页亚洲欧美制服丝腿| 亚洲午夜精品一区二区三区他趣| 成人欧美一区二区三区1314| 国产精品萝li| 视频一区在线播放| 国产精一区二区三区| 懂色中文一区二区在线播放| 狠狠色狠狠色合久久伊人| 国产98色在线|日韩| 欧美日韩精品一区二区三区| 欧美精品xxxxbbbb| 中文字幕一区二区三区av| 五月天亚洲婷婷| 欧美日精品一区视频| 亚洲精品在线观看网站| 婷婷综合五月天| 欧美性xxxxxx少妇| 亚洲女人小视频在线观看| 久久精品免费看| 欧美日韩一级视频| 性感美女极品91精品| 91福利小视频| 首页欧美精品中文字幕| 在线视频观看一区| 亚洲精品乱码久久久久久黑人 | 国产风韵犹存在线视精品| 欧美在线观看18| 亚洲一区二区三区四区中文字幕| 国产福利精品一区二区| 国产欧美日韩三区| 91女神在线视频| 亚洲成av人**亚洲成av**| 欧美色图第一页| 天天综合天天综合色| 欧美日韩一区在线观看| 三级久久三级久久久| 26uuu精品一区二区| 粉嫩aⅴ一区二区三区四区 | 免费观看在线色综合| 精品国偷自产国产一区| 色婷婷久久一区二区三区麻豆| 国产精品国产自产拍高清av| 成人做爰69片免费看网站| 一个色在线综合| 久久精品视频一区二区三区| 色欧美日韩亚洲| 激情另类小说区图片区视频区| 亚洲国产精品99久久久久久久久| 色婷婷综合激情| 精品一区二区三区影院在线午夜| 中国av一区二区三区| 欧美午夜免费电影| 丁香一区二区三区| 国产一区二区电影| 亚洲成人精品影院| 亚洲精品一二三| 亚洲国产精品99久久久久久久久| 日韩一区二区三区高清免费看看| 99久久99久久精品国产片果冻| 国产中文字幕精品| 蜜桃视频第一区免费观看| 亚洲午夜影视影院在线观看| 国产精品久久综合| 国产精品久久久久影院| 日本一区二区三区四区在线视频| 91精品国产日韩91久久久久久| av激情成人网| 欧美色窝79yyyycom| 99久久婷婷国产综合精品| 91视频一区二区三区| 91免费在线看| 69堂亚洲精品首页| 久久免费视频色| 中文字幕一区二区视频| 日韩美女久久久| 亚洲成人av资源| 久久成人免费电影| 国产精品白丝av| 色拍拍在线精品视频8848| 欧美日韩精品一区二区三区蜜桃| 91精品国产综合久久精品性色 | 亚洲黄色小说网站| 久久精品国产久精国产| 成人丝袜18视频在线观看| 97精品国产97久久久久久久久久久久| av福利精品导航| 欧美一级理论性理论a| 中文字幕日韩欧美一区二区三区| 亚洲美腿欧美偷拍| 福利91精品一区二区三区| 精品视频一区 二区 三区| 精品999在线播放| 亚洲高清免费视频| 色综合久久久久| 国产亚洲欧美色| 久久国产精品露脸对白| 欧美综合在线视频| 一区二区三区四区在线播放 | 欧美日韩精品久久久| 最新不卡av在线| 不卡av在线免费观看| 亚洲精品在线观看视频| 日本aⅴ免费视频一区二区三区| eeuss影院一区二区三区| 日本一区二区免费在线观看视频| 蜜桃av噜噜一区| 久久久另类综合| 国产成人精品免费| 国产精品网曝门| 色综合久久久网| 亚洲伦理在线精品| 欧美综合亚洲图片综合区| 亚洲裸体在线观看| 欧美亚洲尤物久久| 玖玖九九国产精品| 久久欧美一区二区| 91一区二区三区在线观看| 亚洲综合色自拍一区| 日韩免费看网站| 国产成人免费高清| 五月婷婷另类国产| 国产精品女主播av| 日韩免费高清视频| 91国偷自产一区二区三区成为亚洲经典| 亚洲乱码精品一二三四区日韩在线| 欧美性生交片4| 成人国产视频在线观看| 蜜臀av性久久久久蜜臀aⅴ| 国产精品丝袜在线| 精品国产91久久久久久久妲己| 成人av免费观看| 国产一区日韩二区欧美三区| 一区二区三区在线观看视频| 精品国产sm最大网站免费看| 91久久奴性调教| 91在线播放网址| 成人免费看视频| 成人美女视频在线看| 国产呦精品一区二区三区网站| 午夜电影网一区| 亚洲黄色av一区| 亚洲精品一二三区| 亚洲国产视频直播| 亚洲成a人v欧美综合天堂下载| 中文字幕一区二| 亚洲综合无码一区二区| 亚洲三级在线观看| 亚洲综合男人的天堂| 亚洲一区在线观看视频| 亚洲精品国久久99热| 亚洲一区二区三区小说| 亚洲一区在线免费观看| 免费三级欧美电影| 国产成人免费高清| 色婷婷国产精品综合在线观看| 91久久精品一区二区二区| 欧美日本一区二区三区四区| 日韩一区二区中文字幕| 国产精品久久三| 亚洲成a人片在线观看中文| 韩国av一区二区| 99精品视频在线免费观看| 欧美精品xxxxbbbb| 亚洲免费av高清| 国产精品一区二区三区乱码 | 久久天天做天天爱综合色| 国产精品国产三级国产有无不卡 | 久久久久久久久97黄色工厂| 久久精品亚洲一区二区三区浴池| 国产精品福利影院| 九九**精品视频免费播放| 色哟哟精品一区| 欧美极品aⅴ影院| 精品在线播放午夜| 91精品国产综合久久久久久久久久 | 国产精品综合一区二区三区| 欧美亚洲综合色| 亚洲国产成人porn| 91精彩视频在线| 有码一区二区三区| 色欧美88888久久久久久影院| 国产亚洲欧美激情| 韩国成人在线视频| 国产精品理论在线观看| 国产伦精品一区二区三区免费| 日韩欧美一级二级三级| 日韩在线一区二区| 精品久久一二三区| 国产精品亚洲专一区二区三区| 精品国产123| av在线这里只有精品| 伊人性伊人情综合网| 色呦呦国产精品| 蜜臀久久99精品久久久久宅男| 精品国产一区a| 91原创在线视频| 香蕉乱码成人久久天堂爱免费|