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

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

?? configurationxmldocument.java

?? 解觖java技術中后臺無法上傳數給的情況
?? 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一区二区三区免费野_久草精品视频
久久久久久99久久久精品网站| 久久精品国产在热久久| 亚洲欧美日韩中文播放 | 亚洲欧美在线高清| 日产国产欧美视频一区精品| 久久综合色一综合色88| 欧美午夜理伦三级在线观看| 精品日产卡一卡二卡麻豆| 男男视频亚洲欧美| 日韩一级片在线观看| 成人午夜免费视频| 偷拍自拍另类欧美| 亚洲国产高清在线观看视频| 床上的激情91.| 日韩国产欧美三级| 亚洲18色成人| 中文字幕一区视频| 久久亚洲精精品中文字幕早川悠里 | 一区二区三区精密机械公司| 日韩女优电影在线观看| 色悠悠久久综合| 国产成人精品综合在线观看 | 91性感美女视频| 精品一区二区三区免费| 一区二区三区国产| 日韩美女视频一区二区| 欧美国产日韩精品免费观看| 欧美性猛交xxxx乱大交退制版 | 91麻豆精品91久久久久久清纯| 亚洲精品在线观看网站| 欧美亚洲综合在线| 视频一区免费在线观看| 成人动漫在线一区| 免费成人在线观看视频| 91免费看片在线观看| 国内不卡的二区三区中文字幕 | 色欧美88888久久久久久影院| 精品一区二区免费看| 日韩高清一级片| 精品午夜久久福利影院| 欧美私模裸体表演在线观看| 精品视频999| 欧美成人午夜电影| 欧美中文一区二区三区| 欧美日韩视频专区在线播放| 欧美一级片在线| 国产欧美日韩亚州综合| 亚洲自拍欧美精品| 欧美一区二区精品| 欧美欧美欧美欧美首页| 日韩欧美一区二区在线视频| 国产午夜精品一区二区 | 久久久久久久综合色一本| 国产精品毛片无遮挡高清| 亚洲国产另类av| 日本在线不卡一区| 91麻豆123| 欧美成人免费网站| 中文字幕在线播放不卡一区| 亚洲成年人影院| 成人高清免费观看| 欧美v日韩v国产v| 日韩精品亚洲专区| 91污在线观看| 欧美成人一区二区三区片免费 | 成人av第一页| 午夜影视日本亚洲欧洲精品| 国产一区福利在线| 成人app网站| 国产999精品久久| 欧美精品在线一区二区| 亚洲1区2区3区4区| 精品日韩av一区二区| 99久久er热在这里只有精品66| 精品国产亚洲在线| 毛片av一区二区| 久久精品视频在线看| 久久新电视剧免费观看| 麻豆国产一区二区| 精品盗摄一区二区三区| 琪琪久久久久日韩精品| 久久久久免费观看| 国产福利一区在线观看| 国产精品的网站| 欧美日韩一区二区三区免费看| 亚洲制服丝袜一区| 久久激情综合网| 国产精品久久久久aaaa樱花 | 成人性生交大片免费看中文| 欧美久久久久免费| 视频在线观看一区二区三区| 欧美精品第一页| 图片区日韩欧美亚洲| 亚洲精品国产精华液| 欧美一区二区视频观看视频| 久久精品国产免费看久久精品| 久久久亚洲精品一区二区三区| a在线欧美一区| 91精品国产综合久久久蜜臀粉嫩| 另类成人小视频在线| 国产精品久久久99| 日本va欧美va欧美va精品| 国产女同互慰高潮91漫画| 8x8x8国产精品| 色婷婷激情久久| 欧美在线影院一区二区| 国产欧美日韩不卡| 91日韩一区二区三区| 99精品视频一区| 欧美色图免费看| 欧美日韩国产在线播放网站| 91精品中文字幕一区二区三区| 国产大陆a不卡| 国产乱人伦偷精品视频免下载| 黑人巨大精品欧美一区| 久久成人免费电影| 久久99蜜桃精品| 成人精品国产免费网站| 91一区二区在线| 欧美日韩国产高清一区二区三区| 亚洲女同一区二区| 亚洲午夜私人影院| 婷婷丁香久久五月婷婷| 一区二区三区中文字幕精品精品| 麻豆精品久久精品色综合| 欧美日韩免费观看一区三区| 欧美草草影院在线视频| 久久久www成人免费毛片麻豆| 亚洲精品国产成人久久av盗摄| 蜜桃视频一区二区三区| 亚洲综合一区二区| 国产一区二区看久久| 欧美三级蜜桃2在线观看| 中文字幕乱码日本亚洲一区二区| 亚洲成人你懂的| 91在线国产福利| 精品日韩av一区二区| 亚洲最快最全在线视频| 国产精品一区二区三区网站| 欧美日本一区二区| 亚洲少妇30p| 97精品超碰一区二区三区| 激情偷乱视频一区二区三区| 色综合久久久网| 中文字幕一区在线观看| 成人爽a毛片一区二区免费| 久久精品视频网| 久久国产乱子精品免费女| 欧美日韩大陆一区二区| 国产欧美一区二区精品性| 久久国产精品一区二区| 欧美精品1区2区| 国产一区二区视频在线播放| 成人av网站大全| 国产精品视频麻豆| 亚洲伊人色欲综合网| 久久se精品一区精品二区| 欧美在线视频全部完| 午夜天堂影视香蕉久久| 日韩一级精品视频在线观看| 蜜臀99久久精品久久久久久软件| 久久久久久久综合色一本| 国产福利一区在线| 亚洲视频 欧洲视频| 在线中文字幕一区二区| 日本成人中文字幕在线视频 | 精品久久久网站| 国产福利一区二区三区视频| 亚洲视频狠狠干| 欧美在线影院一区二区| 国产一区二区三区免费在线观看| 中国av一区二区三区| 欧美三级电影网站| 国产酒店精品激情| 亚洲在线免费播放| 亚洲精品免费在线观看| 成人亚洲一区二区一| 石原莉奈在线亚洲三区| 国产精品国产三级国产三级人妇| 欧美日韩一级视频| 成人听书哪个软件好| 免费av成人在线| 亚洲第一综合色| 国产欧美精品日韩区二区麻豆天美| 91免费视频观看| eeuss鲁片一区二区三区| 亚洲123区在线观看| 国产精品三级在线观看| 成人性视频免费网站| 成人午夜av电影| 国产精品―色哟哟| 久久婷婷国产综合精品青草| 日韩欧美国产午夜精品| 欧美男男青年gay1069videost | 美日韩一区二区| 狠狠色丁香婷综合久久| 麻豆高清免费国产一区| 久草精品在线观看| 国产成人午夜视频| 丁香一区二区三区|