simplenodefilter.java

来自「用Java写的面相对象的数据库管理系统」· Java 代码 · 共 43 行

JAVA
43
字号
// You can redistribute this software and/or modify it under the terms of// the Ozone Library License version 1 published by ozone-db.org.//// The original code and portions created by SMB are// Copyright (C) 1997-2000 by SMB GmbH. All rights reserved.//// $Id: SimpleNodeFilter.java,v 1.4 2000/10/28 16:55:25 daniela Exp $package org.ozoneDB.xml.xpath;import org.w3c.dom.Element;import org.w3c.dom.Node;import org.w3c.dom.traversal.NodeFilter;/** * This class implements the DOM Level 2 NodeFilter interface. The method * <CODE>acceptNode()</CODE>, called by a TreeWalker of NodeIterator while traversing * the DOM tree, accepts all Nodes by default. *  *  * @version $Revision: 1.4 $ $Date: 2000/10/28 16:55:25 $ * @author <a href="http://www.softwarebuero.de">SMB</a> */public class SimpleNodeFilter implements NodeFilter {            /**     * Zero-argument constructor.     */    public SimpleNodeFilter() {    }            /**     * Accepts every kind of node by default.     * @return NodeFilter.FILTER_ACCEPT by default.     */    public short acceptNode( Node node ) {        return NodeFilter.FILTER_ACCEPT;    }     }

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?