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

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

?? configuration.java

?? velocity 的腳本語言的全部代碼集合
?? JAVA
?? 第 1 頁 / 共 4 頁
字號:

    /**
     * Get a string associated with the given configuration key.
     *
     * @param key The configuration key.
     * @return The associated string.
     * @exception ClassCastException is thrown if the key maps to an
     * object that is not a String.
     */
    public String getString(String key)
    {
        return getString(key, null);
    }

    /**
     * Get a string associated with the given configuration key.
     *
     * @param key The configuration key.
     * @param defaultValue The default value.
     * @return The associated string if key is found,
     * default value otherwise.
     * @exception ClassCastException is thrown if the key maps to an
     * object that is not a String.
     */
    public String getString(String key,
                            String defaultValue)
    {
        Object value = get(key);

        if (value instanceof String)
        {
            return (String) value;
        }
        else if (value == null)
        {
            if (defaults != null)
            {
                return defaults.getString(key, defaultValue);
            }
            else
            {
                return defaultValue;
            }
        }
        else if (value instanceof Vector)
        {
            return (String) ((Vector) value).get(0);
        }
        else
        {
            throw new ClassCastException(
                '\'' + key + "' doesn't map to a String object");
        }
    }

    /**
     * Get a list of properties associated with the given
     * configuration key.
     *
     * @param key The configuration key.
     * @return The associated properties if key is found.
     * @exception ClassCastException is thrown if the key maps to an
     * object that is not a String/Vector.
     * @exception IllegalArgumentException if one of the tokens is
     * malformed (does not contain an equals sign).
     */
    public Properties getProperties(String key)
    {
        return getProperties(key, new Properties());
    }

    /**
     * Get a list of properties associated with the given
     * configuration key.
     *
     * @param key The configuration key.
     * @return The associated properties if key is found.
     * @exception ClassCastException is thrown if the key maps to an
     * object that is not a String/Vector.
     * @exception IllegalArgumentException if one of the tokens is
     * malformed (does not contain an equals sign).
     */
    public Properties getProperties(String key,
                                    Properties defaults)
    {
        /*
         * Grab an array of the tokens for this key.
         */
        String[] tokens = getStringArray(key);

        /* 
         * Each token is of the form 'key=value'.
         */
        Properties props = new Properties(defaults);
        for (int i = 0; i < tokens.length; i++)
        {
            String token = tokens[i];
            int equalSign = token.indexOf('=');
            if (equalSign > 0)
            {
                String pkey = token.substring(0, equalSign).trim();
                String pvalue = token.substring(equalSign + 1).trim();
                props.put(pkey, pvalue);
            }
            else
            {
                throw new IllegalArgumentException('\'' + token +
                                                   "' does not contain " +
                                                   "an equals sign");
            }
        }
        return props;
    }

    /**
     * Get an array of strings associated with the given configuration
     * key.
     *
     * @param key The configuration key.
     * @return The associated string array if key is found.
     * @exception ClassCastException is thrown if the key maps to an
     * object that is not a String/Vector.
     */
    public String[] getStringArray(String key)
    {
        Object value = get(key);

        // What's your vector, Victor?
        Vector vector;
        if (value instanceof String)
        {
            vector = new Vector(1);
            vector.addElement(value);
        }
        else if (value instanceof Vector)
        {
            vector = (Vector)value;
        }
        else if (value == null)
        {
            if (defaults != null)
            {
                return defaults.getStringArray(key);
            }
            else
            {
                return new String[0];
            }
        }
        else
        {
            throw new ClassCastException(
                '\'' + key + "' doesn't map to a String/Vector object");
        }

        String[] tokens = new String[vector.size()];
        for (int i = 0; i < tokens.length; i++)
        {
            tokens[i] = (String)vector.elementAt(i);
        }

        return tokens;
    }

    /**
     * Get a Vector of strings associated with the given configuration
     * key.
     *
     * @param key The configuration key.
     * @return The associated Vector.
     * @exception ClassCastException is thrown if the key maps to an
     * object that is not a Vector.
     */
    public Vector getVector(String key)
    {
        return getVector(key, null);
    }

    /**
     * Get a Vector of strings associated with the given configuration
     * key.
     *
     * @param key The configuration key.
     * @param defaultValue The default value.
     * @return The associated Vector.
     * @exception ClassCastException is thrown if the key maps to an
     * object that is not a Vector.
     */
    public Vector getVector(String key,
                            Vector defaultValue)
    {
        Object value = get(key);

        if (value instanceof Vector)
        {
            return (Vector) value;
        }
        else if (value instanceof String)
        {
            Vector v = new Vector(1);
            v.addElement((String) value);
            put(key, v);
            return v;
        }
        else if (value == null)
        {
            if (defaults != null)
            {
                return defaults.getVector(key, defaultValue);
            }
            else
            {
                return ((defaultValue == null) ?
                        new Vector() : defaultValue);
            }
        }
        else
        {
            throw new ClassCastException(
                '\'' + key + "' doesn't map to a Vector object");
        }
    }

    /**
     * Get a boolean associated with the given configuration key.
     *
     * @param key The configuration key.
     * @return The associated boolean.
     * @exception NoSuchElementException is thrown if the key doesn't
     * map to an existing object.
     * @exception ClassCastException is thrown if the key maps to an
     * object that is not a Boolean.
     */
    public boolean getBoolean(String key)
    {
        Boolean b = getBoolean(key, (Boolean) null);
        if (b != null)
        {
            return b.booleanValue();
        }
        else
        {
            throw new NoSuchElementException(
                '\'' + key + "' doesn't map to an existing object");
        }
    }

    /**
     * Get a boolean associated with the given configuration key.
     *
     * @param key The configuration key.
     * @param defaultValue The default value.
     * @return The associated boolean.
     * @exception ClassCastException is thrown if the key maps to an
     * object that is not a Boolean.
     */
    public boolean getBoolean(String key, boolean defaultValue)
    {
        return getBoolean(key, new Boolean(defaultValue)).booleanValue();
    }

    /**
     * Get a boolean associated with the given configuration key.
     *
     * @param key The configuration key.
     * @param defaultValue The default value.
     * @return The associated boolean if key is found and has valid
     * format, default value otherwise.
     * @exception ClassCastException is thrown if the key maps to an
     * object that is not a Boolean.
     */
    public Boolean getBoolean(String key, Boolean defaultValue)
    {
    
        Object value = get(key);

        if (value instanceof Boolean)
        {
            return (Boolean) value;
        }
        else if (value instanceof String)
        {
            String s = testBoolean((String)value);
            Boolean b = new Boolean(s);
            put(key, b);
            return b;
        }
        else if (value == null)
        {
            if (defaults != null)
            {
                return defaults.getBoolean(key, defaultValue);
            }
            else
            {
                return defaultValue;
            }
        }
        else
        {
            throw new ClassCastException(
                '\'' + key + "' doesn't map to a Boolean object");
        }
    }
    
    /**
     * Test whether the string represent by value maps to a boolean
     * value or not. We will allow <code>true</code>, <code>on</code>,
     * and <code>yes</code> for a <code>true</code> boolean value, and
     * <code>false</code>, <code>off</code>, and <code>no</code> for
     * <code>false</code> boolean values.  Case of value to test for
     * boolean status is ignored.
     *
     * @param String The value to test for boolean state.
     * @return <code>true</code> or <code>false</code> if the supplied
     * text maps to a boolean value, or <code>null</code> otherwise.
     */
    public String testBoolean(String value)
    {
        String s = ((String)value).toLowerCase();
    
        if (s.equals("true") || s.equals("on") || s.equals("yes"))
        {
            return "true";
        }
        else if (s.equals("false") || s.equals("off") || s.equals("no"))
        {
            return "false";
        }
        else
        {
            return null;
        }
    }

    /**
     * Get a byte associated with the given configuration key.
     *
     * @param key The configuration key.
     * @return The associated byte.
     * @exception NoSuchElementException is thrown if the key doesn't
     * map to an existing object.
     * @exception ClassCastException is thrown if the key maps to an
     * object that is not a Byte.
     * @exception NumberFormatException is thrown if the value mapped
     * by the key has not a valid number format.
     */
    public byte getByte(String key)
    {
        Byte b = getByte(key, null);
        if (b != null)
        {
            return b.byteValue();
        }
        else
        {
            throw new NoSuchElementException(
                '\'' + key + " doesn't map to an existing object");
        }
    }

    /**
     * Get a byte associated with the given configuration key.
     *
     * @param key The configuration key.
     * @param defaultValue The default value.
     * @return The associated byte.
     * @exception ClassCastException is thrown if the key maps to an
     * object that is not a Byte.
     * @exception NumberFormatException is thrown if the value mapped
     * by the key has not a valid number format.
     */
    public byte getByte(String key,
                        byte defaultValue)
    {
        return getByte(key, new Byte(defaultValue)).byteValue();
    }

    /**
     * Get a byte associated with the given configuration key.
     *
     * @param key The configuration key.
     * @param defaultValue The default value.
     * @return The associated byte if key is found and has valid
     * format, default value otherwise.
     * @exception ClassCastException is thrown if the key maps to an
     * object that is not a Byte.
     * @exception NumberFormatException is thrown if the value mapped
     * by the key has not a valid number format.
     */
    public Byte getByte(String key,
                        Byte defaultValue)
    {
        Object value = get(key);

        if (value instanceof Byte)
        {
            return (Byte) value;
        }
        else if (value instanceof String)
        {
            Byte b = new Byte((String) value);
            put(key, b);
            return b;
        }
        else if (value == null)
        {
            if (defaults != null)
            {
                return defaults.getByte(key, defaultValue);
            }
            else
            {
                return defaultValue;
            }
        }
        else
        {
            throw new ClassCastException(
                '\'' + key + "' doesn't map to a Byte object");
        }
    }

    /**
     * Get a short associated with the given configuration key.
     *
     * @param key The configuration key.
     * @return The associated short.
     * @exception NoSuchElementException is thrown if the key doesn't
     * map to an existing object.
     * @exception ClassCastException is thrown if the key maps to an
     * object that is not a Short.
     * @exception NumberFormatException is thrown if the value mapped
     * by the key has not a valid number format.
     */
    public short getShort(String key)
    {
        Short s = getShort(key, null);
        if (s != null)
        {
            return s.shortValue();
        }
        else
        {
            throw new NoSuchElementException(
                '\'' + key + "' doesn't map to an existing object");
        }
    }

    /**
     * Get a short associated with the given configuration key.
     *
     * @param key The configuration key.
     * @param defaultValue The default value.
     * @return The associated short.
     * @exception ClassCastException is thrown if the key maps to an
     * object that is not a Short.
     * @exception NumberFormatException is thrown if the value mapped
     * by the key has not a valid number format.
     */
    public short getShort(String key,
                          short defaultValue)
    {
        return getShort(key, new Short(defaultValue)).shortValue();
    }

    /**
     * Get a short associated with the given configuration key.
     *
     * @param key The configuration key.
     * @param defaultValue The default value.
     * @return The associated short if key is found and has valid

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品进线69影院| 亚洲成人精品一区| 91首页免费视频| 亚洲人成7777| 欧美日韩精品专区| 免费在线欧美视频| 久久久综合精品| www.一区二区| 亚洲动漫第一页| 欧美成人一区二区| 国产盗摄一区二区| 91麻豆免费看片| 三级久久三级久久久| 精品国产免费视频| 不卡一卡二卡三乱码免费网站| 亚洲精选视频免费看| 制服丝袜亚洲网站| 国产精品1024久久| 一区二区三区在线影院| 538在线一区二区精品国产| 国内精品在线播放| 亚洲人成小说网站色在线| 欧美日免费三级在线| 精品一区二区三区在线播放视频 | 日韩精品一区二区三区在线观看 | 欧美午夜一区二区| 午夜一区二区三区在线观看| 制服丝袜亚洲播放| 国产一区二区毛片| 亚洲男同性恋视频| 欧美电视剧在线观看完整版| 成人美女在线观看| 日韩激情视频在线观看| 懂色av一区二区在线播放| 亚洲色图欧美激情| 欧美大肚乱孕交hd孕妇| www.亚洲色图| 男女男精品视频网| 亚洲免费观看高清完整版在线 | 欧美日韩国产小视频| 国产一区二区不卡在线| 亚洲免费观看高清完整版在线观看 | 韩国女主播一区| 亚洲免费大片在线观看| 欧美电视剧免费观看| 94-欧美-setu| 久久精品噜噜噜成人av农村| 日韩理论片中文av| 欧美mv日韩mv国产网站app| 91啪亚洲精品| 国产一区二区免费看| 亚洲国产精品久久久男人的天堂| 国产真实乱偷精品视频免| 亚洲自拍偷拍图区| 久久蜜桃av一区精品变态类天堂| 欧美调教femdomvk| 国产不卡在线视频| 日本在线播放一区二区三区| 成人欧美一区二区三区白人| 日韩精品一区二区三区在线观看| 91麻豆蜜桃一区二区三区| 国产剧情一区二区三区| 丝袜亚洲另类欧美综合| 亚洲婷婷在线视频| 久久这里只有精品首页| 欧美日韩久久一区二区| 91网页版在线| 国产成人精品亚洲777人妖| 奇米色一区二区三区四区| 亚洲理论在线观看| 日本一区二区三区四区在线视频| 91精品婷婷国产综合久久性色| 91蜜桃婷婷狠狠久久综合9色| 国产露脸91国语对白| 蜜桃视频第一区免费观看| 亚洲国产精品麻豆| 一区二区三区精品在线观看| 欧美国产国产综合| 2014亚洲片线观看视频免费| 这里只有精品99re| 午夜伦理一区二区| 亚洲精品大片www| 中文字幕亚洲综合久久菠萝蜜| 亚洲精品一区二区三区福利| 欧美精品三级在线观看| 色噜噜狠狠色综合中国| 成人avav在线| 国产91综合网| 国产精品一线二线三线精华| 蜜臀av一区二区三区| 午夜不卡av免费| 一区二区三区国产豹纹内裤在线| 国产精品久久久久久久久晋中| 久久久久国产成人精品亚洲午夜| 日韩女优电影在线观看| 欧美一级xxx| 欧美一区二区三区影视| 欧美蜜桃一区二区三区| 欧美日韩国产123区| 欧美丝袜第三区| 欧美丝袜丝nylons| 欧美日韩国产综合视频在线观看 | 中文字幕乱码日本亚洲一区二区 | 精品少妇一区二区三区日产乱码| 欧美美女黄视频| 欧美另类久久久品| 91.com在线观看| 制服丝袜av成人在线看| 4hu四虎永久在线影院成人| 欧美肥妇bbw| 日韩一区二区精品在线观看| 日韩一区二区高清| wwww国产精品欧美| 国产亚洲欧美日韩在线一区| 国产视频亚洲色图| 国产精品理论片| 亚洲伦理在线免费看| 欧美日韩性生活| 欧美日韩高清影院| 日韩一级免费一区| ww亚洲ww在线观看国产| 国产亚洲综合在线| 国产精品不卡视频| 一区二区三区美女视频| 亚洲第一电影网| 美女一区二区在线观看| 激情五月播播久久久精品| 国产福利精品一区二区| gogo大胆日本视频一区| 在线精品观看国产| 91精品在线免费| 26uuu另类欧美| 亚洲欧洲色图综合| 亚洲国产毛片aaaaa无费看 | 制服丝袜一区二区三区| 精品国产乱码久久久久久蜜臀 | 26uuu精品一区二区三区四区在线| 国产日产欧美一区| 亚洲男人都懂的| 日本成人超碰在线观看| 国产乱码精品一区二区三区av| 成人爱爱电影网址| 欧美亚洲国产bt| 精品国精品国产| 国产精品初高中害羞小美女文| 一区二区三区在线播| 日韩在线a电影| 国产福利不卡视频| 在线视频一区二区免费| 日韩欧美在线123| 国产精品亲子伦对白| 亚洲国产三级在线| 国内成人免费视频| 91麻豆国产福利精品| 8v天堂国产在线一区二区| 久久精品亚洲国产奇米99| 亚洲精品国产无天堂网2021| 美腿丝袜亚洲一区| 99麻豆久久久国产精品免费| 欧美日韩1234| 国产欧美精品一区二区色综合| 亚洲一区在线观看网站| 狠狠色丁香久久婷婷综| 色94色欧美sute亚洲线路一ni| 欧美变态口味重另类| 亚洲四区在线观看| 久久国产麻豆精品| 色婷婷一区二区| 久久嫩草精品久久久精品一| 亚洲精品菠萝久久久久久久| 激情五月激情综合网| 欧美主播一区二区三区美女| 欧美zozo另类异族| 亚洲一区在线观看视频| 粉嫩绯色av一区二区在线观看| 欧美日韩国产影片| 国产精品素人一区二区| 日本成人在线电影网| 91蝌蚪porny| 久久久无码精品亚洲日韩按摩| 亚洲午夜在线电影| 成人小视频免费在线观看| 日韩精彩视频在线观看| 成人免费观看视频| 日韩午夜激情电影| 亚洲一区欧美一区| 成人在线综合网| 日韩欧美在线网站| 亚洲电影一区二区| 99视频精品全部免费在线| 日韩免费看的电影| 亚洲福中文字幕伊人影院| 北条麻妃一区二区三区| 久久久噜噜噜久久中文字幕色伊伊 | 欧美激情一区在线| 蜜臀av性久久久久蜜臀aⅴ| 色久综合一二码| 欧美国产亚洲另类动漫| 久久国产日韩欧美精品| 欧美精品在线视频|