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

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

?? messages.java

?? JDBF是一個實現o/r mapping 的軟件
?? JAVA
字號:
/**
 * Redistribution and use of this software and associated documentation
 * ("Software"), with or without modification, are permitted provided
 * that the following conditions are met:
 *
 * 1. Redistributions of source code must retain copyright
 *    statements and notices.  Redistributions must also contain a
 *    copy of this document.
 *
 * 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 name "Exolab" must not be used to endorse or promote
 *    products derived from this Software without prior written
 *    permission of Exoffice Technologies.  For written permission,
 *    please contact info@exolab.org.
 *
 * 4. Products derived from this Software may not be called "Exolab"
 *    nor may "Exolab" appear in their names without prior written
 *    permission of Exoffice Technologies. Exolab is a registered
 *    trademark of Exoffice Technologies.
 *
 * 5. Due credit should be given to the Exolab Project
 *    (http://www.exolab.org/).
 *
 * THIS SOFTWARE IS PROVIDED BY EXOFFICE TECHNOLOGIES AND CONTRIBUTORS
 * ``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
 * EXOFFICE TECHNOLOGIES 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.
 *
 * Copyright 1999 (C) Exoffice Technologies Inc. All Rights Reserved.
 *
 * $Id: Messages.java,v 1.9 2004/06/28 22:17:41 gmartone Exp $
 */


package org.jdbf.castor;


import java.text.*;
import java.util.*;


/**
 * I18N message formatting class. A static factory for obtaining
 * messages and formatting messages with arguments.
 * <p>
 * The resource file <tt>messages</tt> contains a list of all the messages 
 * in English. Additional resource files can be added for other languages and locales by placing them
 * in the same package with a language/locale prefix. See the I18N
 * documentation and use of resource bundles in the JDK docs.
 *
 * @author <a href="arkin@exoffice.com">Assaf Arkin</a>
 * @version $Revision: 1.9 $
 * last changed by $Author: gmartone $
 *  
 */

/*
 * Made some modifcations to Assaf Arkin's code to remove static for
 * resource name. 
 * George Stewart
 */
public class Messages{
    
    static {
		setLocale("messages");
	
    }

    /**
     * The name of the resource holding all the messages in the English
     * language. Resources for other languages and locales use the same
     * name with a language/locale prefix.
     */

    /**
     * The resource bundle holds all the messages.
     */
    private static ResourceBundle   _messages;
    
    
    /**
     * Once a format has been created once, it is cached here.
     */
    private static Hashtable        _formats;
    

    /**
     * Format the named message using a single argument and return the
     * full message text.
     *
     * @param message The message name
     * @param arg1 The first argument
     * @return The full message text
     */
    public static String format( String message, Object arg1 )
 	{
        return format( message, new Object[] { arg1 } );
    }

    
    /**
     * Format the named message using two argument and return the
     * full message text.
     *
     * @param message The message name
     * @param arg1 The first argument
     * @param arg2 The second argument
     * @return The full message text
     */
    public static String format( String message, Object arg1, Object arg2 )
    {
        return format( message, new Object[] { arg1, arg2 } );
    }

    
    /**
     * Format the named message using three argument and return the
     * full message text.
     *
     * @param message The message name
     * @param arg1 The first argument
     * @param arg2 The second argument
     * @param arg3 The third argument
     * @return The full message text
     */
    public static String format( String message, Object arg1, Object arg2, Object arg3 )
    {
        return format( message, new Object[] { arg1, arg2, arg3 } );
    }

    
    /**
     * Format the named message using any number of arguments and return the
     * full message text.
     *
     * @param message The message name
     * @param args Argument list
     * @return The full message text
     */
    public static String format( String message, Object[] args )
    {
        MessageFormat   mf;
        String          msg;
        
        try {
            mf = (MessageFormat) _formats.get( message );
            if ( mf == null ) {
                try {
                    msg = _messages.getString( message );
                } catch ( MissingResourceException except ) {
                    return message;
                }
                mf = new MessageFormat( msg );
                _formats.put( message, mf );
            }
            return mf.format( args );
        } catch ( Exception except ) {
            return "An internal error occured while processing message " + message;
        }
    }
    

    /**
     * Return the text of the named message without formatting.
     *
     * @param message The message name
     * @return The full message text
     */
    public static String message( String message )
    {
        try {
            return _messages.getString( message );
        } catch ( MissingResourceException except ) {
            return message;
        }
    }

    
    /**
     * Set the locale to use for loading messages. Calling this method
     * will reload all the messages based on the new locale name.
     *
     * @param resourceName 
     * @param locale
     * @return The full message text
     */
    public static void setLocale( String resourceName, Locale locale )
    {
        try {
            if ( locale == null )
                _messages = ResourceBundle.getBundle( resourceName ); 
            else
                _messages = ResourceBundle.getBundle( resourceName, locale ); 
        } catch ( Exception except ) {
	    _messages = new EmptyResourceBundle();
        }
        _formats = new Hashtable();
    }
    
    public static void setLocale( String resourceName )
    {
	setLocale(resourceName, Locale.getDefault());
    }
    

    static class EmptyResourceBundle
        extends ResourceBundle
        implements Enumeration
    {
        
        public Enumeration getKeys()
        {
            return this;
        }
        
        protected Object handleGetObject( String name )
        {
            return "[Missing message " + name + "]";
        }
        
        public boolean hasMoreElements()
        {
            return false;
        }
        
        public Object nextElement()
        {
            return null;
        }
        
    }
    
    
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一区二区三区视频在线观看| 婷婷开心久久网| 午夜成人在线视频| 成人永久aaa| 日韩欧美视频在线| 亚洲午夜成aⅴ人片| 99久久免费视频.com| 久久久久久9999| 男人的天堂亚洲一区| 欧美在线free| 中文字幕在线不卡一区| 国产精品一区专区| 日韩免费视频一区二区| 亚洲成人一区在线| 日本道免费精品一区二区三区| 久久精品在线观看| 韩国三级在线一区| 日韩精品一区二区三区视频播放| 日精品一区二区| 欧美老人xxxx18| 亚洲电影在线播放| 欧美亚洲动漫精品| 亚洲欧美韩国综合色| 不卡一区二区中文字幕| 中文字幕精品一区二区精品绿巨人 | 国产综合成人久久大片91| 欧美日韩国产bt| 午夜视频一区在线观看| 欧美在线你懂的| 五月激情综合婷婷| 在线不卡中文字幕| 美女在线观看视频一区二区| 7777精品伊人久久久大香线蕉| 亚洲一卡二卡三卡四卡无卡久久| 欧美自拍偷拍午夜视频| 亚洲午夜一二三区视频| 欧美日韩二区三区| 日韩av一区二区在线影视| 日韩一卡二卡三卡国产欧美| 韩国精品在线观看| 国产亚洲一区二区三区| 成人丝袜18视频在线观看| 中文字幕一区二区三中文字幕| 91麻豆自制传媒国产之光| 中文字幕在线视频一区| 色999日韩国产欧美一区二区| 亚洲综合色丁香婷婷六月图片| 欧美蜜桃一区二区三区| 秋霞国产午夜精品免费视频| 久久综合av免费| 成人99免费视频| 亚洲国产综合91精品麻豆| 欧美一级日韩免费不卡| 粉嫩久久99精品久久久久久夜| 亚洲欧美偷拍三级| 欧美日本国产视频| 国产成人自拍网| 玉米视频成人免费看| 欧美日韩国产天堂| 国产一区二区主播在线| **性色生活片久久毛片| 欧美日韩一区二区三区在线看| 奇米精品一区二区三区四区| 国产婷婷一区二区| 欧美三区在线观看| 黑人巨大精品欧美一区| 亚洲精品国产一区二区精华液| 欧美酷刑日本凌虐凌虐| 成人app网站| 青青草91视频| 亚洲精品videosex极品| 精品国产一区久久| 91久久精品一区二区三区| 国内外精品视频| 日韩限制级电影在线观看| 国产福利91精品一区| 亚洲成人自拍偷拍| 欧美国产一区二区在线观看| 欧美欧美欧美欧美| 成人97人人超碰人人99| 青青草成人在线观看| 一区二区三区欧美视频| 国产色一区二区| 91精品国产综合久久久久久漫画| 成人免费观看av| 精品一区二区三区不卡 | 精品国产凹凸成av人导航| 91偷拍与自偷拍精品| 精品一区二区三区不卡| 亚洲bt欧美bt精品777| 成人欧美一区二区三区小说 | 久久毛片高清国产| 欧美一区二区三区在线看| 色狠狠色狠狠综合| 北岛玲一区二区三区四区| 精品在线观看视频| 欧美aⅴ一区二区三区视频| 亚洲一区二区三区免费视频| 国产精品久久久久毛片软件| 久久久美女艺术照精彩视频福利播放| 欧美日韩国产小视频在线观看| 色婷婷激情综合| 99视频超级精品| 成人福利视频在线| 成人丝袜18视频在线观看| 国产精品综合二区| 国产一区二区三区在线观看精品 | 国产欧美日韩亚州综合| 欧美精品一区二区蜜臀亚洲| 日韩欧美一级片| 91精品国产91综合久久蜜臀| 欧美午夜寂寞影院| 欧美色中文字幕| 欧美日韩美少妇| 欧美区视频在线观看| 欧美精品久久99久久在免费线| 欧美性感一区二区三区| 欧美日韩精品系列| 制服丝袜亚洲精品中文字幕| 欧美一级二级在线观看| 日韩精品一区二区三区中文不卡| 日韩久久精品一区| 久久老女人爱爱| 国产精品久久久久久妇女6080| 中文字幕视频一区二区三区久| 亚洲免费资源在线播放| 亚洲国产综合在线| 麻豆成人av在线| 国产91精品露脸国语对白| 91在线国产观看| 欧美群妇大交群的观看方式| 日韩欧美国产三级| 中文字幕av免费专区久久| 亚洲欧美日韩在线不卡| 婷婷综合在线观看| 国产风韵犹存在线视精品| www.色精品| 欧美日韩日本视频| 久久综合狠狠综合久久综合88| 国产精品久久三区| 午夜电影一区二区三区| 国产一区二区三区香蕉| 色菇凉天天综合网| 欧美不卡123| 1区2区3区精品视频| 日韩电影在线免费| 国产成人8x视频一区二区| 欧美视频在线一区| 久久亚洲精品国产精品紫薇| 亚洲视频在线一区二区| 七七婷婷婷婷精品国产| 91视频com| 欧美电影免费观看高清完整版在线 | 精品国产一区二区三区四区四| 中文子幕无线码一区tr| 亚洲成av人片观看| gogogo免费视频观看亚洲一| 91麻豆精品国产91久久久久久| 国产欧美视频一区二区| 日韩精品视频网| 91蜜桃视频在线| 国产日韩欧美激情| 老司机精品视频在线| 色婷婷狠狠综合| 国产欧美一区在线| 麻豆国产欧美日韩综合精品二区| 在线区一区二视频| 中文字幕不卡在线观看| 蜜桃一区二区三区在线观看| 在线中文字幕一区二区| 成人免费在线播放视频| 国产一区二区看久久| 91精品国产色综合久久ai换脸| 亚洲精品乱码久久久久久黑人| 成人一区二区在线观看| 欧美tickling网站挠脚心| 视频一区二区三区入口| 欧美三级欧美一级| 亚洲少妇30p| 97国产一区二区| 国产精品成人午夜| 福利电影一区二区| 久久久五月婷婷| 精品亚洲国产成人av制服丝袜 | 国模套图日韩精品一区二区| 欧美日韩五月天| 一区二区日韩av| 91美女片黄在线观看91美女| 国产精品不卡在线| 成人av网址在线| 国产精品乱码久久久久久| 国产精品综合视频| 久久久精品国产免大香伊| 国产精品一区二区三区乱码| 欧美成人精品二区三区99精品| 日韩电影免费在线| 欧美成人aa大片| 国模无码大尺度一区二区三区| 2024国产精品视频| 国产一区二区三区在线观看免费 |