亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
欧美精品18+| 蜜桃久久久久久久| 日本91福利区| 99热99精品| 久久久久国产一区二区三区四区| 亚洲伊人伊色伊影伊综合网| 国产成人激情av| 欧美成人在线直播| 午夜视频在线观看一区| 99免费精品在线观看| 久久精品亚洲精品国产欧美kt∨| 亚洲午夜电影在线| 色综合色综合色综合| 欧美激情一区二区在线| 久久精品国产精品亚洲红杏| 欧美揉bbbbb揉bbbbb| 亚洲免费在线视频一区 二区| 国产一区999| 精品久久久久久无| 美国十次综合导航| 日韩欧美成人午夜| 亚洲国产va精品久久久不卡综合| 色综合天天综合给合国产| 国产精品欧美一级免费| 狠狠色丁香婷婷综合久久片| 欧美三级在线看| 亚洲高清中文字幕| 欧美性猛片xxxx免费看久爱| 亚洲裸体xxx| 99视频热这里只有精品免费| 欧美国产视频在线| 丁香天五香天堂综合| 2023国产一二三区日本精品2022| 久久99这里只有精品| 日韩欧美一级片| 狠狠色狠狠色综合| 久久精品一区二区三区不卡| 成人免费视频播放| 中文字幕一区在线观看| 91啦中文在线观看| 亚洲无人区一区| 日韩欧美一区中文| 国产一区二区免费视频| 国产欧美日韩激情| 色视频成人在线观看免| 一区二区三区在线免费| 欧美精品日日鲁夜夜添| 激情综合一区二区三区| 精品成人一区二区| 丁香婷婷综合五月| 亚洲另类中文字| 欧美日韩精品欧美日韩精品一| 香港成人在线视频| 欧美电视剧免费观看| 国产精品一区久久久久| 国产精品久久久久久久久免费桃花| 色综合久久久网| 久久国产精品色婷婷| 欧美高清在线精品一区| 在线观看91精品国产入口| 蜜臀国产一区二区三区在线播放| 久久综合九色综合97婷婷| 色综合一区二区| 黑人巨大精品欧美一区| 国产精品久久久久7777按摩| 欧美午夜在线一二页| 激情久久久久久久久久久久久久久久| 日本一区二区高清| 欧美日韩一区二区三区不卡| 韩国女主播成人在线| 亚洲黄色尤物视频| 精品国产凹凸成av人导航| 91香蕉视频黄| 国产一区二区三区在线观看免费视频| 亚洲丝袜制服诱惑| 欧美刺激脚交jootjob| 一本色道a无线码一区v| 国内精品免费**视频| 一区二区三区视频在线看| 久久影院视频免费| 欧美日韩大陆在线| 91理论电影在线观看| 国产一区二区毛片| 日韩电影免费一区| 一区二区三区在线观看欧美| 国产亚洲女人久久久久毛片| 91精品国产高清一区二区三区蜜臀 | 一二三四区精品视频| 亚洲精品一区二区精华| 欧美裸体一区二区三区| 91网上在线视频| 国产高清精品久久久久| 免费精品视频最新在线| 亚洲综合偷拍欧美一区色| 国产精品久久久久久久久晋中 | 在线影院国内精品| 成人精品免费网站| 国产精品一线二线三线| 麻豆精品蜜桃视频网站| 日韩影院免费视频| 亚洲动漫第一页| 一区二区三区蜜桃| 国产精品乱码人人做人人爱| 久久久噜噜噜久噜久久综合| 日韩免费福利电影在线观看| 欧美丰满一区二区免费视频| 精品视频一区二区三区免费| 色婷婷久久一区二区三区麻豆| 国产成人精品www牛牛影视| 国产精品1024| 粉嫩av一区二区三区粉嫩 | 中文无字幕一区二区三区| wwwwww.欧美系列| 久久精品视频一区二区| 久久亚洲精品小早川怜子| 2欧美一区二区三区在线观看视频 337p粉嫩大胆噜噜噜噜噜91av | 高清不卡一区二区| 国内外成人在线| 国产成人免费高清| 成人午夜伦理影院| 不卡高清视频专区| 日本韩国欧美一区二区三区| 91视视频在线直接观看在线看网页在线看 | 91丝袜国产在线播放| 99re成人精品视频| 91黄色免费看| 欧美日韩大陆一区二区| 日韩一区和二区| 精品区一区二区| 国产精品美女久久久久久| 亚洲视频在线一区二区| 亚洲主播在线播放| 美女一区二区三区| 国产成人自拍网| 91麻豆免费观看| 欧美久久久影院| 久久久国际精品| 亚洲精品成a人| 三级不卡在线观看| 国产精品亚洲专一区二区三区 | 日韩一区在线播放| 亚洲一区二区精品3399| 麻豆精品视频在线观看视频| 国产91精品一区二区麻豆亚洲| 99r精品视频| 日韩免费在线观看| 国产精品久久久久久一区二区三区| 亚洲综合色视频| 国内精品第一页| 在线精品亚洲一区二区不卡| 日韩一级黄色大片| 国产精品久久午夜夜伦鲁鲁| 亚洲伊人色欲综合网| 国产伦精品一区二区三区免费| 波多野结衣91| 欧美成人精精品一区二区频| 亚洲欧洲精品天堂一级| 日韩电影在线观看电影| 97久久超碰国产精品| 精品国产凹凸成av人网站| 一区二区日韩av| 国产99久久久精品| 91精品国产综合久久精品图片| 国产精品视频在线看| 日韩av中文字幕一区二区| 91香蕉视频在线| 国产人成亚洲第一网站在线播放| 亚洲福利视频一区| www.性欧美| 久久久久久久久久看片| 亚洲国产精品久久人人爱| 99久久免费视频.com| 久久先锋资源网| 久热成人在线视频| 欧美日韩精品系列| 亚洲一区二区三区视频在线播放 | 国产精品911| 日韩视频免费直播| 夜色激情一区二区| 成人性生交大片免费看在线播放| 日韩你懂的在线播放| 午夜精品久久久久久久蜜桃app| www.欧美色图| 国产精品色一区二区三区| 国产成人日日夜夜| 久久婷婷国产综合精品青草| 蜜桃视频第一区免费观看| 在线播放欧美女士性生活| 亚洲一区二区3| 色哟哟一区二区三区| 亚洲天堂久久久久久久| 99久久久无码国产精品| 国产精品国产三级国产普通话蜜臀| 国产一区在线视频| 日韩精品中文字幕在线一区| 热久久一区二区| 欧美精品一区二区三区很污很色的 | 日韩欧美久久久| 麻豆国产一区二区| 日韩精品影音先锋|