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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? hierarchicaldom4jconfiguration.java

?? java servlet著名論壇源代碼
?? 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 */
    }
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产亲近乱来精品视频| 欧美亚洲综合色| 欧美精品一区二区高清在线观看| 91免费精品国自产拍在线不卡| 国产日韩欧美精品电影三级在线| 国产精品456| 亚洲三级久久久| 在线免费观看视频一区| 午夜精品久久久久久久| 91精品国产入口| 国产成人av在线影院| 综合色天天鬼久久鬼色| 欧美日韩国产电影| 久国产精品韩国三级视频| 国产亚洲欧美色| 91丝袜呻吟高潮美腿白嫩在线观看| 一区二区三区四区在线免费观看| 欧美群妇大交群中文字幕| 久久精品国产澳门| 中文字幕一区二区5566日韩| 欧美色区777第一页| 精品一区二区免费在线观看| 中文字幕一区二区三区在线观看 | 久久久久国产精品麻豆| 成人精品视频一区二区三区尤物| 亚洲精品中文字幕在线观看| 欧美一区永久视频免费观看| 成人h动漫精品| 亚洲丰满少妇videoshd| 国产人伦精品一区二区| 欧美日韩日日夜夜| 国产999精品久久久久久绿帽| 亚洲一区中文在线| 国产欧美一区二区精品婷婷 | 欧美在线观看禁18| 韩国欧美国产一区| 亚洲国产色一区| 26uuu亚洲| 在线视频亚洲一区| 国产精品一线二线三线精华| 亚洲成精国产精品女| 久久久www免费人成精品| 欧美亚洲国产一区在线观看网站| 国内精品久久久久影院色| 亚洲伦理在线精品| 国产调教视频一区| 日韩三级在线观看| 欧美日韩和欧美的一区二区| 成人h精品动漫一区二区三区| 久久99国产精品免费网站| 亚洲中国最大av网站| 中文字幕欧美三区| 精品福利二区三区| 91精品国产综合久久精品图片| 99久精品国产| 成人精品一区二区三区四区| 国产麻豆精品视频| 日韩高清中文字幕一区| 夜夜嗨av一区二区三区四季av| 国产精品网友自拍| 国产日产欧产精品推荐色| 欧美videossexotv100| 91精品婷婷国产综合久久性色| 在线观看一区日韩| 91在线播放网址| yourporn久久国产精品| 国产成人精品一区二区三区四区 | 成人av在线电影| 激情久久五月天| 久久精品国产免费看久久精品| 午夜精品一区在线观看| 亚洲一二三区在线观看| 亚洲伦在线观看| 亚洲日本欧美天堂| 亚洲日本免费电影| 一区二区三区四区亚洲| 一区二区三区鲁丝不卡| 一区二区三区在线视频观看| 亚洲天堂av一区| 亚洲欧美国产77777| 亚洲欧洲综合另类在线| 亚洲欧美日韩久久精品| 亚洲精品欧美二区三区中文字幕| 日韩一区中文字幕| 亚洲欧美激情小说另类| 一个色在线综合| 午夜不卡在线视频| 日韩电影在线免费观看| 精品一区精品二区高清| 狠狠色综合色综合网络| 床上的激情91.| 91网站最新网址| 欧美午夜精品一区| 欧美一区永久视频免费观看| 精品精品国产高清一毛片一天堂| 国产亚洲欧洲一区高清在线观看| 欧美激情一区三区| 亚洲三级电影网站| 日韩精品每日更新| 精品一区二区成人精品| 成人动漫一区二区三区| 欧美偷拍一区二区| 日韩亚洲欧美一区二区三区| 国产欧美日韩视频在线观看| 亚洲精品一二三四区| 秋霞午夜av一区二区三区| 国产精品中文欧美| 欧美亚洲综合网| 欧美精品一区在线观看| 中文字幕亚洲电影| 日本午夜一本久久久综合| 国产成人8x视频一区二区| 欧美私人免费视频| 久久久久久一二三区| 亚洲免费资源在线播放| 日本少妇一区二区| 99在线视频精品| 51精品久久久久久久蜜臀| 国产日韩综合av| 石原莉奈在线亚洲三区| 成人免费不卡视频| 欧美日韩国产bt| 国产精品国产三级国产专播品爱网 | 亚洲福利视频导航| 成人性生交大合| 91麻豆精品国产91| 亚洲天堂精品视频| 国产中文一区二区三区| 欧美日韩亚洲综合在线 欧美亚洲特黄一级 | 亚洲小少妇裸体bbw| 国产成人免费网站| 欧美一区日本一区韩国一区| 中文字幕日韩一区二区| 久久99日本精品| 欧美视频第二页| 日本一区二区在线不卡| 美国十次综合导航| 欧美性一级生活| 中文字幕在线一区二区三区| 精品一区二区三区日韩| 欧美午夜免费电影| 中文字幕中文字幕一区| 国产美女在线精品| 日韩一区和二区| 亚州成人在线电影| 一本一道综合狠狠老| 国产精品区一区二区三区| 精品夜夜嗨av一区二区三区| 欧美三级中文字幕在线观看| 亚洲美女免费在线| 99免费精品视频| 中文字幕欧美国产| 国产一区二区三区四| 欧美一区二区三级| 奇米一区二区三区| 欧美精品丝袜久久久中文字幕| 亚洲精品高清视频在线观看| 99精品视频中文字幕| 中文字幕亚洲一区二区va在线| 国产精品18久久久久久久久| 精品国产露脸精彩对白| 激情综合色播激情啊| 精品国产乱码久久久久久影片| 日本怡春院一区二区| 欧美一级欧美一级在线播放| 日韩av中文字幕一区二区三区 | 久久er精品视频| 欧美一级日韩不卡播放免费| 日本美女视频一区二区| 日韩一级二级三级精品视频| 全部av―极品视觉盛宴亚洲| 日韩免费视频一区二区| 久久精品国产精品青草| 欧美成人三级电影在线| 国模无码大尺度一区二区三区| 日韩免费观看高清完整版| 美国毛片一区二区| www国产精品av| 成人性生交大片免费看视频在线 | 99久久精品国产毛片| 亚洲欧美视频一区| 色88888久久久久久影院野外 | 日日摸夜夜添夜夜添精品视频| 欧美日韩国产在线观看| 午夜久久久久久久久| 精品日韩在线观看| 国产1区2区3区精品美女| 亚洲欧美日韩国产一区二区三区 | 久久99国产精品麻豆| 国产精品素人视频| 日本高清不卡在线观看| 日韩成人伦理电影在线观看| 欧美sm美女调教| 成人激情黄色小说| 一区二区三区在线看| 欧美一级理论片| 成人av电影免费观看| 亚洲18影院在线观看| 欧美岛国在线观看| 99精品久久久久久|