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

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

?? hierarchicaldom4jconfiguration.java

?? 解觖java技術中后臺無法上傳數給的情況
?? JAVA
字號:
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.net.URL;
import java.util.Iterator;

import org.dom4j.Attribute;
import org.dom4j.Document;
import org.dom4j.Element;
import org.dom4j.io.SAXReader;

/**
 * <p>A specialized hierarchical configuration class that is able to parse
 * XML documents using DOM4J.</p>
 * <p>The parsed document will be stored keeping its structure. The
 * contained properties can be accessed using all methods supported by
 * the base class <code>HierarchicalProperties</code>.
 *
 * @author <a href="mailto:oliver.heger@t-online.de">Oliver Heger</a>
 * @version $Id: HierarchicalDOM4JConfiguration.java,v 1.1 2003/12/09 08:25:30 huumai Exp $
 */
public class HierarchicalDOM4JConfiguration
    extends HierarchicalConfiguration
    implements BasePathLoader
{
    /** Stores the file name of the document to be parsed.*/
    private String file;

    /** Stores the base path of this configuration.*/
    private String basePath;

    /**
     * Creates a new instance of <code>HierarchicalDOM4JConfiguration</code>.
     */
    public HierarchicalDOM4JConfiguration()
    {
        super();
    }

    /**
     * Creates a new instance of <code>HierarchicalDOM4JConfiguration</code>
     * and sets the default properties.
     * @param defaults the default properties
     */
    public HierarchicalDOM4JConfiguration(Configuration defaults)
    {
        super(defaults);
    }

    /**
     * Returns the name of the file to be parsed by this object.
     * @return the file to be parsed
     */
    public String getFileName()
    {
        return file;
    }

    /**
     * Sets the name of the file to be parsed by this object.
     * @param file the file to be parsed
     */
    public void setFileName(String file)
    {
        this.file = file;
    }

    /**
     * Returns the base path.
     * @return the base path
     */
    public String getBasePath()
    {
        return basePath;
    }

    /**
     * Allows to set a base path. Relative file names are resolved based on
     * this path.
     * @param path the base path; this can be a URL or a file path
     */
    public void setBasePath(String path)
    {
        basePath = path;
    }

    /**
     * Loads and parses an XML document. The file to be loaded must have
     * been specified before.
     * @throws Exception if an error occurs
     */
    public void load() throws Exception
    {
        load(ConfigurationUtils.getURL(getBasePath(), getFileName()));
    }

    /**
     * Loads and parses the specified XML document.
     * @param url the URL to the XML document
     * @throws Exception if an error occurs
     */
    public void load(URL url) throws Exception
    {
        initProperties(new SAXReader().read(url));
    }

    /**
     * Initializes this configuration from an XML document.
     * @param document the document to be parsed
     */
    public void initProperties(Document document)
    {
        constructHierarchy(getRoot(), document.getRootElement());
    }

    /**
     * Helper method for building the internal storage hierarchy. The XML
     * elements are transformed into node objects.
     * @param node the actual node
     * @param element the actual XML element
     */
    private void constructHierarchy(Node node, Element element)
    {
        if (element.getTextTrim().length() > 0)
        {
            node.setValue(element.getTextTrim());
        } /* if */
        processAttributes(node, element);

        for (Iterator it = element.elementIterator(); it.hasNext();)
        {
            Element child = (Element) it.next();
            Node childNode = new Node(child.getName());
            constructHierarchy(childNode, child);
            node.addChild(childNode);
        } /* for */
    }

    /**
     * Helper method for constructing node objects for the attributes of the
     * given XML element.
     * @param node the actual node
     * @param element the actual XML element
     */
    private void processAttributes(Node node, Element element)
    {
        for (Iterator it = element.attributeIterator(); it.hasNext();)
        {
            Attribute attr = (Attribute) it.next();
            Node child =
                new Node(
                    ConfigurationKey.constructAttributeKey(attr.getName()));
            child.setValue(attr.getValue());
            node.addChild(child);
        } /* for */
    }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
北条麻妃一区二区三区| 成人黄页在线观看| 国产精品二三区| 欧美日韩久久一区二区| 久久99国产乱子伦精品免费| 国产精品网站一区| 91精品国产综合久久久久久漫画| 日韩专区一卡二卡| 欧美日韩卡一卡二| av亚洲精华国产精华精| 7777精品伊人久久久大香线蕉最新版 | 欧美精品一区二区高清在线观看 | 日本韩国精品在线| 国产在线看一区| 午夜精品福利久久久| 国产精品欧美一级免费| 欧美r级电影在线观看| 欧美日韩一区在线观看| 欧美激情中文字幕一区二区| 国产精品欧美一级免费| 欧美mv日韩mv| 欧美日韩另类一区| 色香蕉久久蜜桃| 成人av资源站| 国产河南妇女毛片精品久久久| 亚洲一区中文在线| 亚洲视频免费看| 国产欧美日韩麻豆91| 久久天堂av综合合色蜜桃网| 日韩一区二区电影在线| 欧美精品在线观看播放| 欧美综合在线视频| 色综合一区二区三区| 国产成人av电影在线播放| 毛片av中文字幕一区二区| 日韩成人午夜电影| 日av在线不卡| 日本视频一区二区三区| 亚洲一区二区在线视频| 亚洲女同一区二区| 亚洲激情av在线| 亚洲老司机在线| 亚洲免费看黄网站| 亚洲视频 欧洲视频| 国产精品三级电影| 国产精品乱码一区二区三区软件| 久久精品亚洲乱码伦伦中文| 精品国产三级电影在线观看| 日韩一区国产二区欧美三区| 欧美一区二区福利视频| 日韩精品一区二区三区四区视频| 91麻豆精品91久久久久久清纯| 欧美日韩国产欧美日美国产精品| 99精品视频一区二区| 91麻豆精品一区二区三区| 色欧美片视频在线观看在线视频| 欧美在线你懂得| 欧美精品一卡二卡| 日韩欧美精品三级| 国产欧美一区二区精品秋霞影院| 国产精品久久网站| 亚洲另类在线制服丝袜| 亚洲一区二区三区视频在线播放| 一二三四区精品视频| 视频一区视频二区中文| 激情五月婷婷综合| 成人永久免费视频| 欧美中文字幕一区二区三区亚洲| 欧美日韩国产成人在线91| 日韩欧美国产一区二区在线播放| 久久先锋资源网| 亚洲人成网站在线| 日韩二区在线观看| 国产成人一区在线| 色婷婷av一区二区| 麻豆精品在线视频| 亚洲福利视频三区| 精品制服美女丁香| bt7086福利一区国产| 欧美日韩在线不卡| 久久综合九色欧美综合狠狠| 亚洲视频一二三| 理论电影国产精品| 97久久超碰国产精品电影| 欧美美女一区二区在线观看| 在线观看av一区二区| 欧美人xxxx| 欧美国产精品专区| 日韩国产欧美三级| 福利一区福利二区| 欧美体内she精视频| 久久天堂av综合合色蜜桃网| 中文字幕中文在线不卡住| 成人欧美一区二区三区白人| 香蕉影视欧美成人| 国产福利91精品一区| 欧美最新大片在线看| 国产午夜精品久久久久久免费视| 一区二区久久久久久| 国产一区啦啦啦在线观看| 欧美在线你懂得| 国产精品毛片a∨一区二区三区 | 老司机精品视频在线| 91免费版pro下载短视频| 欧美videofree性高清杂交| 亚洲精品一二三| 国产suv精品一区二区三区| 欧美美女bb生活片| 日韩毛片高清在线播放| 国产自产高清不卡| 欧美日韩在线三级| 亚洲精品久久嫩草网站秘色| 国产乱码精品1区2区3区| 欧美精品在线一区二区| 日韩一区中文字幕| 国产成人免费视频精品含羞草妖精| 欧美精选一区二区| 亚洲五码中文字幕| eeuss国产一区二区三区| 精品国产伦一区二区三区免费| 亚洲国产成人av网| 91在线播放网址| 精品sm捆绑视频| 日本成人中文字幕在线视频| 欧美亚洲动漫精品| 亚洲欧美视频一区| 成人免费高清视频在线观看| 久久久无码精品亚洲日韩按摩| 日韩av午夜在线观看| 一本一道波多野结衣一区二区| 国产欧美va欧美不卡在线| 另类小说图片综合网| 欧美片网站yy| 亚洲高清在线视频| 欧美日韩精品福利| 亚洲成人黄色影院| 欧美军同video69gay| 石原莉奈在线亚洲二区| 精品1区2区3区| 午夜激情久久久| 欧美日韩国产美女| 天天射综合影视| 欧美一区二区免费观在线| 婷婷综合五月天| 欧美一区二区三区在线看| 日日骚欧美日韩| 日韩一区二区三区电影在线观看| 日韩精品亚洲一区| 91 com成人网| 经典三级视频一区| 亚洲精品一区二区三区精华液| 精品一区二区三区免费视频| 日韩精品一区二| 国产在线日韩欧美| 久久精品人人爽人人爽| 亚洲在线观看免费视频| 国产精品自产自拍| 国产清纯在线一区二区www| 成人精品在线视频观看| 中文字幕在线免费不卡| 欧洲精品视频在线观看| 奇米777欧美一区二区| 久久影院午夜片一区| 成人免费毛片片v| 一区二区三区日韩| 日韩一区国产二区欧美三区| 精品一区二区三区在线播放视频| 久久精品视频在线看| 色综合久久久久综合| 日韩高清不卡一区二区三区| 久久蜜桃av一区精品变态类天堂 | 欧美日韩成人综合天天影院| 日韩国产在线观看| 国产日产亚洲精品系列| 色综合久久六月婷婷中文字幕| 日韩不卡一区二区| 国产喷白浆一区二区三区| 色欧美片视频在线观看| 另类小说一区二区三区| 国产精品久久久久影院| 欧美色国产精品| 国模大尺度一区二区三区| 中文字幕欧美一区| 欧美日韩精品一区二区| 国产成人8x视频一区二区| 亚洲成人在线免费| 久久久www成人免费无遮挡大片 | 日韩一区二区视频| www.成人网.com| 日韩av网站在线观看| 亚洲色图欧美偷拍| 欧美变态凌虐bdsm| 在线观看日韩毛片| 国产成人综合在线观看| 婷婷开心激情综合| 日韩理论片网站| 久久综合久久鬼色| 欧美做爰猛烈大尺度电影无法无天| 国产高清无密码一区二区三区| 亚洲国产精品一区二区久久恐怖片|