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

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

?? messagesmap.java

?? struts的源代碼
?? JAVA
字號:
/*
 * Copyright 2002,2004 The Apache Software Foundation.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.apache.struts.faces.util;


import java.util.Collection;
import java.util.Locale;
import java.util.Map;
import java.util.Set;

import org.apache.struts.util.MessageResources;


/**
 * <p>A limited immutable <code>Map</code> implementation that wraps the
 * <code>MessageResources</code> instance for the specified
 * <code>Locale</code>.  Exposing the messages as a <code>Map</code>
 * makes them easily accessible via value binding expressions, as
 * well as JSP 2.0 expression language expressions.
 */

public class MessagesMap implements Map {


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


    /**
     * <p>Construct a new {@link MessagesMap} instance that wraps the
     * specified <code>MessageResources</code> instance, and returns messages
     * for the specified <code>Locale</code>.</p>
     *
     * @param messages <code>MessageResources</code> instance to wrap
     * @param locale <code>Locale</code> for which to retrieve messages,
     *  or <code>null</code> for the system default <code>Locale</code>
     *
     * @exception NullPointerException if <code>messages</code>
     *  is <code>null</code>
     */
    public MessagesMap(MessageResources messages, Locale locale) {

        super();
        if (messages == null) {
            throw new NullPointerException();
        }
        this.messages = messages;
        this.locale = locale;

    }


    // ------------------------------------------------------ Instance Variables


    /**
     * <p>The <code>Locale</code> for which to return messages, or
     * <code>null</code> for the system default <code>Locale</code>.</p>
     */
    private Locale locale = null;


    /**
     * <p>The <code>MessageResources</code> being wrapped by this
     * {@link MessagesMap}.</p>
     */
    private MessageResources messages = null;


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


    /**
     * <p>The <code>clear()</code> method is not supported.</p>
     */
    public void clear() {

        throw new UnsupportedOperationException();

    }


    /**
     * <p>Return <code>true</code> if there is a message for the
     * specified key.</p>
     *
     * @param key Message key to evaluate
     */
    public boolean containsKey(Object key) {

        if (key == null) {
            return (false);
        } else {
            return (messages.isPresent(locale, key.toString()));
        }

    }


    /**
     * <p>The <code>containsValue()</code> method is not supported.</p>
     *
     * @param value Value to evaluate
     */
    public boolean containsValue(Object value) {

        throw new UnsupportedOperationException();

    }


    /**
     * <p>The <code>entrySet()</code> method is not supported.</p>
     */
    public Set entrySet() {

        throw new UnsupportedOperationException();

    }


    /**
     * <p>The <code>equals</code> method checks whether equal
     * <code>MessageResources</code> and <code>Locale</code> are
     * being wrapped.</p>
     *
     * @param o The object to be compared
     */
    public boolean equals(Object o) {

        if (!(o instanceof MessagesMap)) {
            return (false);
        }
        MessagesMap other = (MessagesMap) o;
        if (!messages.equals(other.getMessages())) {
            return (false);
        }
        if (locale == null) {
            return (other.getLocale() == null);
        } else {
            return (locale.equals(other.getLocale()));
        }

    }


    /**
     * <p>Return the message string for the specified key.</p>
     *
     * @param key Key for message to return
     */
    public Object get(Object key) {

        if (key == null) {
            return ("??????");
        } else {
            return (messages.getMessage(locale, key.toString()));
        }

    }


    /**
     * <p>The <code>hashCode()</code> method returns values that will
     * be identical if the <code>equals</code> method returns <code>true</code>.
     * </p>
     */
    public int hashCode() {

        int value = messages.hashCode();
        if (locale != null) {
            value = value ^ locale.hashCode();
        }
        return (value);

    }


    /**
     * <p>The <code>isEmpty()</code> method returns <code>false</code>, on the
     * assumption that there is always at least one message available.</p>
     */
    public boolean isEmpty() {

        return (false);

    }


    /**
     * <p>The <code>keySet()</code> method is not supported.</p>
     */
    public Set keySet() {

        throw new UnsupportedOperationException();

    }


    /**
     * <p>The <code>put()</code> method is not supported.</p>
     *
     * @param key Key to store
     * @param value Value to store
     */
    public Object put(Object key, Object value) {

        throw new UnsupportedOperationException();

    }


    /**
     * <p>The <code>putAll()</code> method is not supported.</p>
     *
     * @param map Keys and values to store
     */
    public void putAll(Map map) {

        throw new UnsupportedOperationException();

    }


    /**
     * <p>The <code>remove()</code> method is not supported.</p>
     *
     * @param key Key to remove
     */
    public Object remove(Object key) {

        throw new UnsupportedOperationException();

    }


    /**
     * <p>The <code>size()</code> method is not supported.</p>
     */
    public int size() {

        throw new UnsupportedOperationException();

    }


    /**
     * <p>The <code>values()</code> method is not supported.</p>
     */
    public Collection values() {

        throw new UnsupportedOperationException();

    }


    // --------------------------------------------------------- Package Methods


    /**
     * <p>Return the <code>Locale</code> we object we are wrapping.</p>
     */
    Locale getLocale() {

        return (this.locale);

    }


    /**
     * <p>Return the <code>MessageResources</code> object we are wrapping.</p>
     */
    MessageResources getMessages() {

        return (this.messages);

    }



}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本中文字幕不卡| 欧美一级欧美一级在线播放| 欧美日韩综合在线| 久久精品欧美一区二区三区不卡| 亚洲高清免费一级二级三级| eeuss鲁片一区二区三区 | 国产99久久久国产精品 | 99久精品国产| 国产偷v国产偷v亚洲高清| 日日骚欧美日韩| 在线观看欧美日本| 亚洲三级在线观看| av中文字幕在线不卡| 日本一区二区三区dvd视频在线| 日本不卡视频一二三区| 欧美喷水一区二区| 天天综合色天天综合色h| 色狠狠桃花综合| 亚洲人成网站精品片在线观看| 成年人网站91| 一区精品在线播放| 色呦呦一区二区三区| 亚洲日韩欧美一区二区在线| 99久久精品国产一区| 一区二区中文视频| av在线一区二区| 亚洲欧美另类久久久精品2019| 99视频一区二区三区| 国产精品第一页第二页第三页| 成人免费精品视频| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆| 国产二区国产一区在线观看| 久久这里只有精品首页| 国产不卡在线一区| 成人免费一区二区三区在线观看| av在线这里只有精品| 一区二区三区在线视频免费| 日本精品一区二区三区高清| 亚洲一区二区三区在线| 欧美电影影音先锋| 久久成人免费电影| 国产欧美精品日韩区二区麻豆天美| 国产成人精品一区二区三区网站观看| 中文字幕不卡在线观看| 色婷婷久久综合| 天天av天天翘天天综合网色鬼国产| 欧美精品一卡二卡| 国产激情视频一区二区在线观看| 国产精品国产三级国产有无不卡| 97se狠狠狠综合亚洲狠狠| 亚洲愉拍自拍另类高清精品| 91精品啪在线观看国产60岁| 国产在线一区观看| ...av二区三区久久精品| 欧美日韩高清在线播放| 国产真实乱对白精彩久久| 综合激情成人伊人| 欧美久久久影院| 国产精品 欧美精品| 亚洲黄色录像片| 精品国产青草久久久久福利| 99国产精品国产精品毛片| 丝袜美腿亚洲色图| 中文字幕不卡三区| 欧美一区二区观看视频| av在线这里只有精品| 奇米影视一区二区三区| 日韩毛片精品高清免费| 日韩视频免费直播| 日本电影亚洲天堂一区| 精品一区二区三区在线观看国产| 亚洲视频一区二区免费在线观看| 欧美一级精品大片| 色噜噜偷拍精品综合在线| 国产一区福利在线| 香蕉成人啪国产精品视频综合网| 国产清纯白嫩初高生在线观看91| 欧美人妖巨大在线| 成人av电影在线| 精品一区二区成人精品| 午夜精品久久久久久久久| 国产精品的网站| 久久久久久久久久久黄色| 在线不卡a资源高清| 在线视频一区二区免费| 成人av电影在线| 国产一本一道久久香蕉| 奇米精品一区二区三区在线观看一| 亚洲人一二三区| 中文字幕在线免费不卡| 久久久激情视频| 精品国内二区三区| 日韩一二在线观看| 欧美精品免费视频| 欧美日韩精品欧美日韩精品| 色综合天天综合色综合av | 欧美美女一区二区三区| 色中色一区二区| 97国产精品videossex| 成人综合激情网| 高清成人在线观看| 国产成人自拍在线| 国产精品一区一区| 国产福利一区二区三区| 国产一区二区三区精品欧美日韩一区二区三区 | 一区二区三区在线视频观看| 国产性色一区二区| 久久久www成人免费毛片麻豆| 日韩欧美激情四射| 精品少妇一区二区三区免费观看 | 亚洲欧美日韩成人高清在线一区| 国产情人综合久久777777| 久久女同性恋中文字幕| 久久久久久久久伊人| 国产喂奶挤奶一区二区三区| 久久久久久久综合日本| 国产欧美视频在线观看| 国产日韩欧美a| 综合欧美亚洲日本| 一区二区三区 在线观看视频| 亚洲精品视频在线观看网站| 亚洲一区二区在线免费看| 亚洲国产综合人成综合网站| 午夜久久久久久| 青草国产精品久久久久久| 国产一区二区看久久| www.在线成人| 欧美日韩国产综合一区二区三区| 6080日韩午夜伦伦午夜伦| 亚洲精品一区二区三区福利 | av在线播放一区二区三区| 色综合天天视频在线观看 | 91麻豆精品在线观看| 欧美视频一区二区三区四区| 欧美一区二区在线免费播放| 久久新电视剧免费观看| 国产精品麻豆99久久久久久| 亚洲综合成人在线| 美女一区二区三区| 成人小视频免费在线观看| 欧美性受极品xxxx喷水| 欧美xxxxx裸体时装秀| 国产精品国产精品国产专区不蜜| 亚洲国产另类av| 国产精品自拍网站| 欧美午夜影院一区| 久久综合九色综合久久久精品综合| 中日韩av电影| 青娱乐精品在线视频| proumb性欧美在线观看| 欧美一区二区三区视频免费| 国产精品久久午夜夜伦鲁鲁| 亚洲一区二区欧美激情| 国产经典欧美精品| 7777精品伊人久久久大香线蕉的| 国产午夜精品理论片a级大结局| 亚洲一区在线电影| 成人性生交大片免费看在线播放| 欧美日韩免费不卡视频一区二区三区 | 在线精品视频小说1| 精品国产91乱码一区二区三区 | www.日韩精品| 欧美一区二区三区啪啪| 日韩伦理电影网| 狠狠色丁香九九婷婷综合五月| 色狠狠av一区二区三区| 国产欧美一区二区在线观看| 日韩精品亚洲一区二区三区免费| 成年人网站91| 久久久电影一区二区三区| 日本欧美韩国一区三区| 91福利资源站| 亚洲天堂福利av| 成人精品一区二区三区四区| 精品国产三级电影在线观看| 天天av天天翘天天综合网| 91色porny| 日韩一区中文字幕| 成人午夜视频在线| 国产欧美一区二区三区在线看蜜臀 | 中文文精品字幕一区二区| 精品一区二区三区在线播放| 欧美日韩精品一区二区三区| 亚洲色图另类专区| 99re热这里只有精品视频| 欧美激情一区二区在线| 国产盗摄一区二区三区| 久久综合色8888| 国产一区二区影院| 国产亚洲精品bt天堂精选| 国产在线一区观看| www亚洲一区| 国产99久久久国产精品免费看 | 91丨九色丨蝌蚪富婆spa| 国产精品乱人伦一区二区| 成人精品高清在线| 亚洲欧美在线视频| 91美女片黄在线观看91美女| 亚洲同性同志一二三专区| 色婷婷亚洲综合|