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

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

?? hierarchicalconfigurationxmlreader.java

?? java servlet著名論壇源代碼
?? JAVA
字號:
package net.myvietnam.mvncore.configuration;

/* ====================================================================
 * The Apache Software License, Version 1.1
 *
 * Copyright (c) 1999-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 net.myvietnam.mvncore.configuration.HierarchicalConfiguration.*;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.AttributesImpl;

/**
 * <p>A specialized SAX2 XML parser that "parses" hierarchical
 * configuration objects.</p>
 * <p>This class mimics to be a SAX conform XML parser. Instead of parsing
 * XML documents it processes a <code>Configuration</code> object and
 * generates SAX events for the single properties defined there. This enables
 * the whole world of XML processing for configuration objects.</p>
 * <p>The <code>HierarchicalConfiguration</code> object to be parsed can be
 * specified using a constructor or the <code>setConfiguration()</code> method.
 * This object will be processed by the <code>parse()</code> methods. Note
 * that these methods ignore their argument.</p>
 *
 * @author <a href="mailto:oliver.heger@t-online.de">Oliver Heger</a>
 * @version $Id: HierarchicalConfigurationXMLReader.java,v 1.1 2003/12/09 08:25:30 huumai Exp $
 */
public class HierarchicalConfigurationXMLReader
extends ConfigurationXMLReader
{
    /** Stores the configuration object to be parsed.*/
    private HierarchicalConfiguration configuration;

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

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

    /**
     * Returns the configuration object to be parsed.
     * @return the configuration object to be parsed
     */
    public HierarchicalConfiguration getConfiguration()
    {
        return configuration;
    }

    /**
     * Sets the configuration object to be parsed.
     * @param config the configuration object to be parsed
     */
    public void setConfiguration(HierarchicalConfiguration config)
    {
        configuration = config;
    }

    /**
     * Returns the configuration object to be processed.
     * @return the actual configuration object
     */
    public Configuration getParsedConfiguration()
    {
        return getConfiguration();
    }

    /**
     * Processes the actual configuration object to generate SAX parsing
     * events.
     * @throws IOException if no configuration has been specified
     * @throws SAXException if an error occurs during parsing
     */
    protected void processKeys() throws IOException, SAXException
    {
        getConfiguration().getRoot().visit(new SAXVisitor(), null);
    }

    /**
     * A specialized visitor class for generating SAX events for a
     * hierarchical node structure.
     *
     * @author <a href="mailto:oliver.heger@t-online.de">Oliver Heger</a>
     */
    class SAXVisitor extends HierarchicalConfiguration.NodeVisitor
    {
        /** Constant for the attribute type.*/
        private static final String ATTR_TYPE = "CDATA";

        /**
         * Visits the specified node after its children have been processed.
         * @param node the actual node
         * @param key the key of this node
         */
        public void visitAfterChildren(Node node, ConfigurationKey key)
        {
            if(!isAttributeNode(node))
            {
                fireElementEnd(nodeName(node));
            }  /* if */
        }

        /**
         * Visits the specified node.
         * @param node the actual node
         * @param key the key of this node
         */
        public void visitBeforeChildren(Node node, ConfigurationKey key)
        {
            if(!isAttributeNode(node))
            {
                fireElementStart(nodeName(node), fetchAttributes(node));

                if(node.getValue() != null)
                {
                    fireCharacters(node.getValue().toString());
                }  /* if */
            }  /* if */
        }

        /**
         * Checks if iteration should be terminated. This implementation stops
         * iteration after an exception has occurred.
         * @return a flag if iteration should be stopped
         */
        public boolean terminate()
        {
            return getException() != null;
        }

        /**
         * Returns an object with all attributes for the specified node.
         * @param node the actual node
         * @return an object with all attributes of this node
         */
        protected Attributes fetchAttributes(Node node)
        {
            AttributesImpl attrs = new AttributesImpl();
            AbstractConfiguration.Container children = node.getChildren();

            for(int i = 0; i < children.size(); i++)
            {
                Node child = (Node) children.get(i);
                if(isAttributeNode(child) && child.getValue() != null)
                {
                    String attr = ConfigurationKey.attributeName(
                    child.getName());
                    attrs.addAttribute(NS_URI, attr, attr, ATTR_TYPE,
                    child.getValue().toString());
                }  /* if */
            }  /* for */

            return attrs;
        }

        /**
         * Helper method for determining the name of a node. If a node has no
         * name (which is true for the root node), the specified default name
         * will be used.
         * @param node the node to be checked
         * @return the name for this node
         */
        private String nodeName(Node node)
        {
            return (node.getName() == null) ? getRootName() : node.getName();
        }

        /**
         * Checks if the specified node is an attribute node. In the node
         * hierarchy attributes are stored as normal child nodes, but with
         * special names.
         * @param node the node to be checked
         * @return a flag if this is an attribute node
         */
        private boolean isAttributeNode(Node node)
        {
            return ConfigurationKey.isAttributeKey(node.getName());
        }
    }
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩免费一区二区三区 | 久久色中文字幕| 日韩欧美在线影院| 国产亚洲欧美中文| 亚洲免费在线观看视频| 亚洲国产精品久久艾草纯爱| 欧美a一区二区| 国产精品18久久久久| 麻豆精品在线看| 波多野结衣中文字幕一区二区三区| 91丝袜美女网| 久久蜜桃av一区二区天堂| 亚洲摸摸操操av| 欧美亚洲综合另类| 国产午夜精品久久| 91毛片在线观看| 日韩高清在线电影| 欧美日韩精品一区二区三区 | 国内精品久久久久影院色| 成人app网站| 亚洲国产日韩a在线播放性色| 欧美精品一卡两卡| 日韩欧美一级特黄在线播放| 成人黄色网址在线观看| 亚洲视频你懂的| 国产精品久久久久久久久快鸭 | 欧美四级电影网| 午夜精品福利视频网站| 亚洲一区二区欧美激情| 亚洲影院在线观看| 欧美一区二区人人喊爽| 国产免费成人在线视频| 国产精品日韩精品欧美在线| 伊人婷婷欧美激情| 欧美一区二区成人6969| 蜜臀av性久久久久蜜臀aⅴ| 2020国产精品自拍| 91小视频免费观看| 日本美女视频一区二区| 久久久不卡网国产精品二区| 色偷偷成人一区二区三区91| 亚洲乱码国产乱码精品精的特点 | 精品毛片乱码1区2区3区| 国产亚洲精品精华液| caoporn国产一区二区| 亚洲bdsm女犯bdsm网站| 国产精品综合久久| 亚洲午夜久久久久久久久久久 | 7777精品伊人久久久大香线蕉 | 91在线免费视频观看| 日韩av电影天堂| 国产人伦精品一区二区| 欧美日韩一区二区三区在线看 | 麻豆91在线看| 成人免费在线视频| 欧美变态tickle挠乳网站| 成人免费看片app下载| 亚洲动漫第一页| 国产精品萝li| 久久综合资源网| 在线播放91灌醉迷j高跟美女 | 国产欧美va欧美不卡在线| 欧美性受xxxx| 成人黄色国产精品网站大全在线免费观看 | 国产毛片精品一区| 亚洲电影视频在线| 国产精品传媒视频| 日韩一区二区免费视频| 一本大道久久a久久综合| 精品一区二区在线播放| 一区二区三区视频在线观看| 欧美国产日韩a欧美在线观看 | 欧美一区二区三区视频免费播放| 成人午夜视频在线观看| 精油按摩中文字幕久久| 亚洲va欧美va国产va天堂影院| 中文字幕国产一区二区| 91精品国产综合久久久久久久 | 国产精品入口麻豆原神| 欧美成人三级电影在线| 欧美日韩国产高清一区| 色悠悠久久综合| 不卡的电影网站| 国产激情一区二区三区| 精品一区二区三区在线视频| 日韩精品成人一区二区在线| 亚洲国产日韩精品| 一区二区三区不卡视频在线观看| 综合久久久久综合| 日韩伦理电影网| 日韩伦理av电影| 国产精品私人自拍| 亚洲欧美综合色| 成人免费一区二区三区在线观看 | 国产精品欧美一区喷水| 久久免费精品国产久精品久久久久| 日韩欧美的一区二区| 91精品国产福利| 3d动漫精品啪啪一区二区竹菊 | 欧美一区二区三区免费观看视频 | 亚洲欧美色图小说| 中文字幕一区二区三区蜜月| ww亚洲ww在线观看国产| 2023国产精品自拍| 国产日韩欧美一区二区三区乱码| 久久蜜桃一区二区| 国产亚洲欧美色| 国产精品久久综合| 一区二区视频免费在线观看| 亚洲精品国产视频| 亚洲妇女屁股眼交7| 日本中文字幕一区二区有限公司| 日韩1区2区日韩1区2区| 国内成人免费视频| 波多野结衣在线一区| 91亚洲国产成人精品一区二区三| 欧美亚洲综合久久| 精品少妇一区二区三区日产乱码| 久久精品人人做人人综合| 国产精品看片你懂得| 一区二区三区免费在线观看| 亚洲国产一区二区三区青草影视| 亚洲va韩国va欧美va精品| 国内国产精品久久| 91网站黄www| 欧美高清视频不卡网| 日韩女优电影在线观看| 国产精品―色哟哟| 亚洲最大成人综合| 麻豆freexxxx性91精品| 粉嫩一区二区三区性色av| 色偷偷久久人人79超碰人人澡| 欧美二区乱c少妇| 国产午夜精品福利| 亚洲黄一区二区三区| 奇米色一区二区| av影院午夜一区| 在线精品视频小说1| 日韩一区二区电影| 五月天中文字幕一区二区| eeuss国产一区二区三区| 日韩亚洲欧美一区| 亚洲蜜臀av乱码久久精品| 国产美女精品人人做人人爽| 欧美日韩色一区| 国产精品素人视频| 久久电影国产免费久久电影| 一本久道中文字幕精品亚洲嫩| 精品久久久久久无| 亚洲高清不卡在线观看| 成人国产精品免费观看动漫| 在线播放91灌醉迷j高跟美女| wwwwxxxxx欧美| 亚洲成人综合在线| 成人激情文学综合网| 欧美一级国产精品| 亚洲精品中文字幕乱码三区| 国产一区二区三区电影在线观看 | 欧美日韩一区二区在线视频| 日本一二三四高清不卡| 美洲天堂一区二卡三卡四卡视频| 欧洲精品一区二区| 中文字幕一区二区三区色视频| 精品一区二区在线免费观看| 欧美日韩精品免费| 亚洲女同女同女同女同女同69| 国产精品一区二区视频| 日韩色视频在线观看| 天堂在线亚洲视频| 欧美色窝79yyyycom| 国产精品九色蝌蚪自拍| 国产成人精品午夜视频免费| 67194成人在线观看| 亚洲伦理在线精品| 欧美色综合网站| 亚洲一区av在线| 欧美性猛片aaaaaaa做受| 亚洲精品中文在线影院| 色综合激情五月| 亚洲伦在线观看| 国产成人激情av| 欧美国产一区在线| 盗摄精品av一区二区三区| 久久精品日产第一区二区三区高清版 | 一区二区三区丝袜| 一本久久精品一区二区| 一区二区三区在线免费播放| 福利视频网站一区二区三区| 国产三级一区二区| 狠狠色狠狠色综合日日91app| 国产精品女人毛片| 91网站在线观看视频| 伊人开心综合网| 欧美日韩高清一区二区不卡| 免费亚洲电影在线| 精品国产凹凸成av人网站| 偷拍与自拍一区| 日韩一区二区麻豆国产| 国产一区二区主播在线| 中文av一区特黄|