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

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

?? configurationxmldocument.java

?? java servlet著名論壇源代碼
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
package net.myvietnam.mvncore.configuration;

/* ====================================================================
 * The Apache Software License, Version 1.1
 *
 * Copyright (c) 2002-2003 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 acknowledgement:
 *       "This product includes software developed by the
 *        Apache Software Foundation (http://www.apache.org/)."
 *    Alternately, this acknowledgement may appear in the software itself,
 *    if and wherever such third-party acknowledgements normally appear.
 *
 * 4. The names "The Jakarta Project", "Commons", 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 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.  For more
 * information on the Apache Software Foundation, please see
 * <http://www.apache.org/>.
 */

import java.io.IOException;
import java.io.Writer;
import java.util.NoSuchElementException;

import org.apache.commons.digester.Digester;
import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.io.DOMWriter;
import org.dom4j.io.OutputFormat;
import org.dom4j.io.SAXReader;
import org.dom4j.io.XMLWriter;
import org.xml.sax.SAXException;

/**
 * <p>A helper class that supports XML-like processing for configuration
 * objects.</p>
 * <p>This class provides a set of methods that all have something to do with
 * treating a <code>Configuration</code> object as a XML document. So a
 * configuration can be transformed into a <code>Document</code> (either
 * dom4j or w3c), saved as an XML file or passed to Digester.</p>
 * <p><strong>Implementation note:</strong> This class is not thread safe.</p>
 *
 * @author <a href="mailto:oliver.heger@t-online.de">Oliver Heger</a>
 * @version $Id: ConfigurationXMLDocument.java,v 1.1 2003/12/09 08:25:30 huumai Exp $
 */
public class ConfigurationXMLDocument
{
    /** Constant for the class element.*/
    protected static final String ELEM_CLASS = "config/class";

    /** Constant for the property element.*/
    protected static final String ELEM_PROPERTY = "config/class/property";

    /** Constant for the name attribute.*/
    protected static final String ATTR_NAME = "name";

    /** Constant for the value attribute.*/
    protected static final String ATTR_VALUE = "value";

    /** Stores the configuration object this object operates on.*/
    private Configuration configuration;

    /**
     * Creates a new instance of <code>ConfigurationXMLDocument</code>
     * and sets the configuration object to be processed.
     * @param config the configuration object
     */
    public ConfigurationXMLDocument(Configuration config)
    {
        setConfiguration(config);
    }

    /**
     * Returns the <code>Configuration</code> object for this document.
     * @return the <code>Configuration</code> object
     */
    public Configuration getConfiguration()
    {
        return configuration;
    }

    /**
     * Sets the <code>Configuration</code> object this document operates on.
     * @param configuration the <code>Configuration</code> object
     */
    public void setConfiguration(Configuration configuration)
    {
        this.configuration = configuration;
    }

    /**
     * Returns a <code>XMLReader</code> object for the specified configuration
     * object. This reader can then be used to perform XML-like processing on
     * the configuration.
     * @param config the configuration object
     * @return a XMLReader for this configuration
     */
    public static ConfigurationXMLReader createXMLReader(Configuration config)
    {
        if (config instanceof HierarchicalConfiguration)
        {
            return new HierarchicalConfigurationXMLReader(
                (HierarchicalConfiguration) config);
        } /* if */
        else
        {
            return new BaseConfigurationXMLReader(config);
        } /* else */
    }

    /**
     * Returns a <code>XMLReader</code> object for the actual configuration
     * object.
     * @return a XMLReader for the actual configuration
     */
    public ConfigurationXMLReader createXMLReader()
    {
        return createXMLReader((String) null);
    }

    /**
     * Returns a <code>ConfigurationXMLReader</code> object for the subset
     * configuration specified by the given prefix. If no properties are found
     * under this prefix, a <code>NoSuchElementException</code>
     * exception will be thrown.
     * @param prefix the prefix of the configuration keys that belong to the
     * subset; can be <b>null</b>, then the whole configuration is affected
     * @return a XMLReader for the specified subset configuration
     */
    public ConfigurationXMLReader createXMLReader(String prefix)
    {
        return createXMLReader(configForKey(prefix));
    }

    /**
     * Transforms the wrapped configuration into a dom4j document.
     * @param prefix a prefix for the keys to process; can be <b>null</b>,
     * then all keys in the configuration will be added to the document
     * @param rootName the name of the root element in the document; can be
     * <b>null</b>, then a default name will be used
     * @return the document
     * @throws DocumentException if an error occurs
     */
    public Document getDocument(String prefix, String rootName)
        throws DocumentException
    {
        ConfigurationXMLReader xmlReader = createXMLReader(prefix);
        if (rootName != null)
        {
            xmlReader.setRootName(rootName);
        } /* if */

        SAXReader reader = new SAXReader(xmlReader);
        return reader.read(getClass().getName());
    }

    /**
     * Transforms the wrapped configuration into a dom4j document. The root
     * element will be given a default name.
     * @param prefix a prefix for the keys to process; can be <b>null</b>,
     * then all keys in the configuration will be added to the document
     * @return the document
     * @throws DocumentException if an error occurs
     */
    public Document getDocument(String prefix) throws DocumentException
    {
        return getDocument(prefix, null);
    }

    /**
     * Transforms the wrapped configuration into a dom4j document. The root
     * element will be given a default name.
     * @return the document
     * @throws DocumentException if an error occurs
     */
    public Document getDocument() throws DocumentException
    {
        return getDocument(null, null);
    }

    /**
     * Transforms the wrapped configuration into a w3c document.
     * @param prefix a prefix for the keys to process; can be <b>null</b>,
     * then all keys in the configuration will be added to the document
     * @param rootName the name of the root element in the document; can be
     * <b>null</b>, then a default name will be used
     * @return the document
     * @throws DocumentException if an error occurs
     */
    public org.w3c.dom.Document getW3cDocument(String prefix, String rootName)
        throws DocumentException
    {
        return toW3cDocument(getDocument(prefix, rootName));
    }

    /**

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产凹凸在线观看一区二区| 亚洲视频免费观看| 欧美日韩一区久久| 欧美中文字幕久久| 日韩一区二区电影在线| 欧美亚洲自拍偷拍| 欧美精品一卡两卡| 制服丝袜一区二区三区| 欧美一区二区精品| 26uuuu精品一区二区| 中文字幕的久久| 1区2区3区欧美| 亚洲国产欧美日韩另类综合| 水野朝阳av一区二区三区| 蜜臀av性久久久久av蜜臀妖精 | 亚洲午夜久久久久| 性做久久久久久| 久久精品国产一区二区三区免费看| 久久精品国产网站| 成人福利视频在线看| 色狠狠色狠狠综合| 日韩午夜精品电影| 国产精品美女www爽爽爽| 亚洲免费电影在线| 久久精品国产一区二区三区免费看| 国产九色sp调教91| 91高清在线观看| 精品剧情v国产在线观看在线| 亚洲国产精品精华液2区45| 亚洲黄色av一区| 久久99国产精品久久| 91在线精品一区二区三区| 91精品国产福利| 国产精品久久毛片a| 日韩成人av影视| www.欧美色图| 26uuu欧美日本| 亚洲一区二区黄色| 丁香激情综合国产| 日韩午夜激情电影| 伊人一区二区三区| 国产高清不卡一区| 91精品在线免费观看| 国产精品色一区二区三区| 美女网站在线免费欧美精品| 91女人视频在线观看| 久久麻豆一区二区| 天天色天天操综合| 99精品视频一区二区| 欧美成人激情免费网| 亚洲国产精品久久久男人的天堂| 国产成人综合亚洲91猫咪| 欧美一区二区精品久久911| 亚洲精品成人少妇| 99久久99久久精品国产片果冻 | 不卡一二三区首页| 精品国产乱码久久久久久浪潮| 亚洲另类一区二区| 99精品视频在线观看| 国产欧美一区二区精品性色| 日韩不卡一二三区| 欧美日韩日日夜夜| 亚洲一区二区综合| 色综合久久中文字幕综合网 | 亚洲国产精品综合小说图片区| 高潮精品一区videoshd| 精品福利视频一区二区三区| 日韩激情一区二区| 在线播放欧美女士性生活| 亚洲一卡二卡三卡四卡| 一本大道久久精品懂色aⅴ| 久久九九影视网| 国产裸体歌舞团一区二区| 日韩精品一区二区三区视频在线观看| 亚洲午夜成aⅴ人片| 欧美色网一区二区| 婷婷激情综合网| 日韩一区二区三区免费观看 | 久久亚洲二区三区| 国产精品主播直播| 欧美激情一区二区三区蜜桃视频| 精品综合久久久久久8888| 精品国产乱码久久久久久1区2区 | 国产精品1区2区3区| 久久美女艺术照精彩视频福利播放| 久久精品av麻豆的观看方式| 日韩精品一区国产麻豆| 国产在线视频一区二区| 久久久久国产精品免费免费搜索| 国产伦精品一区二区三区免费 | 色先锋资源久久综合| 亚洲国产精品麻豆| 欧美一区二区三区成人| 国产精品资源在线看| 中文字幕五月欧美| 欧美日韩一区二区在线视频| 麻豆91精品91久久久的内涵| 久久免费的精品国产v∧| 成人免费视频一区| 亚洲国产精品自拍| 久久久精品国产99久久精品芒果| 国产成人精品1024| 一个色综合av| 欧美成人国产一区二区| 不卡高清视频专区| 奇米精品一区二区三区在线观看 | 久久97超碰国产精品超碰| 欧美国产日本视频| 精品视频一区 二区 三区| 九色综合国产一区二区三区| 中文字幕一区二区在线播放| 欧美一区二区久久久| 成人短视频下载| 五月综合激情婷婷六月色窝| 日本一区二区免费在线| 欧美性色综合网| 国产99精品视频| 日本中文字幕一区| 亚洲三级小视频| 久久久美女艺术照精彩视频福利播放| 91老师片黄在线观看| 国产一区在线观看麻豆| 亚洲精品视频在线看| 久久精品这里都是精品| 欧美日高清视频| 色综合婷婷久久| 成人一区二区三区视频| 久久精品国内一区二区三区 | 日韩欧美不卡一区| 在线欧美一区二区| 国产.欧美.日韩| 麻豆精品视频在线观看视频| 亚洲乱码国产乱码精品精的特点| 久久女同互慰一区二区三区| 欧美一三区三区四区免费在线看| 91无套直看片红桃| eeuss鲁一区二区三区| 国产一区在线观看视频| 伦理电影国产精品| 日韩精品电影在线| 亚洲成人午夜影院| 一区二区三区国产豹纹内裤在线| 中文字幕一区免费在线观看| 欧美国产日本韩| 欧美激情综合在线| 中文字幕乱码久久午夜不卡 | 欧美群妇大交群中文字幕| 在线精品亚洲一区二区不卡| 99久久亚洲一区二区三区青草| 国内精品自线一区二区三区视频| 青青国产91久久久久久| 日韩激情中文字幕| 麻豆成人久久精品二区三区小说| 日韩精品视频网站| 久色婷婷小香蕉久久| 韩国一区二区三区| 高清不卡一二三区| eeuss鲁片一区二区三区| 成人精品免费网站| 色诱视频网站一区| 欧美色中文字幕| 欧美一区二区三区视频在线观看| 日韩三级在线观看| 久久久不卡影院| 亚洲欧洲精品一区二区三区 | 欧美午夜在线观看| 欧美丝袜自拍制服另类| 717成人午夜免费福利电影| 欧美日本不卡视频| 精品免费99久久| 国产蜜臀av在线一区二区三区| 国产精品久久久久久久久晋中| 亚洲色图.com| 欧美aaa在线| 成人永久aaa| 欧美日韩国产影片| 欧美精品一区二区三区久久久| 久久久精品天堂| 亚洲黄色尤物视频| 免费视频最近日韩| 不卡视频免费播放| 欧美日韩精品高清| 久久久天堂av| 亚洲综合视频在线观看| 美女一区二区三区在线观看| 国产成人av电影在线观看| 欧美在线免费视屏| 久久精品综合网| 亚洲超碰精品一区二区| 国产盗摄精品一区二区三区在线| 91丨九色丨黑人外教| 欧美成人aa大片| 日韩精品91亚洲二区在线观看| 激情成人午夜视频| 色婷婷av一区二区三区gif| 欧美成人猛片aaaaaaa| 亚洲男人电影天堂| 国产成人一区二区精品非洲| 色香色香欲天天天影视综合网| 久久综合久久鬼色中文字|