001/* 002 * Copyright 2001 (C) MetaStuff, Ltd. All Rights Reserved. 003 * 004 * This software is open source. 005 * See the bottom of this file for the licence. 006 * 007 * $Id: NullAction.java,v 1.2 2001/02/15 12:06:49 jstrachan Exp $ 008 */ 009 010package org.dom4j.rule; 011 012import org.dom4j.Node; 013 014 015/** <p><code>NullAction</code> represents an empty action that does nothing.</p> 016 * 017 * @author <a href="mailto:james.strachan@metastuff.com">James Strachan</a> 018 * @version $Revision: 1.2 $ 019 */ 020public class NullAction implements Action { 021 022 /** Singleton instance */ 023 public static final NullAction SINGLETON = new NullAction(); 024 025 public void run(Node node) throws Exception { 026 } 027} 028 029 030 031 032/* 033 * Redistribution and use of this software and associated documentation 034 * ("Software"), with or without modification, are permitted provided 035 * that the following conditions are met: 036 * 037 * 1. Redistributions of source code must retain copyright 038 * statements and notices. Redistributions must also contain a 039 * copy of this document. 040 * 041 * 2. Redistributions in binary form must reproduce the 042 * above copyright notice, this list of conditions and the 043 * following disclaimer in the documentation and/or other 044 * materials provided with the distribution. 045 * 046 * 3. The name "DOM4J" must not be used to endorse or promote 047 * products derived from this Software without prior written 048 * permission of MetaStuff, Ltd. For written permission, 049 * please contact dom4j-info@metastuff.com. 050 * 051 * 4. Products derived from this Software may not be called "DOM4J" 052 * nor may "DOM4J" appear in their names without prior written 053 * permission of MetaStuff, Ltd. DOM4J is a registered 054 * trademark of MetaStuff, Ltd. 055 * 056 * 5. Due credit should be given to the DOM4J Project 057 * (http://dom4j.org/). 058 * 059 * THIS SOFTWARE IS PROVIDED BY METASTUFF, LTD. AND CONTRIBUTORS 060 * ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT 061 * NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND 062 * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL 063 * METASTUFF, LTD. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 064 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 065 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 066 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 067 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 068 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 069 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 070 * OF THE POSSIBILITY OF SUCH DAMAGE. 071 * 072 * Copyright 2001 (C) MetaStuff, Ltd. All Rights Reserved. 073 * 074 * $Id: NullAction.java,v 1.2 2001/02/15 12:06:49 jstrachan Exp $ 075 */