1 /* 2 * Copyright 2001-2004 (C) MetaStuff, Ltd. All Rights Reserved. 3 * 4 * This software is open source. 5 * See the bottom of this file for the licence. 6 * 7 * $Id: NullAction.java,v 1.5 2004/06/25 08:03:39 maartenc Exp $ 8 */ 9 10 package org.dom4j.rule; 11 12 import org.dom4j.Node; 13 14 15 /*** <p><code>NullAction</code> represents an empty action that does nothing.</p> 16 * 17 * @author <a href="mailto:james.strachan@metastuff.com">James Strachan</a> 18 * @version $Revision: 1.5 $ 19 */ 20 public class NullAction implements Action { 21 22 /*** Singleton instance */ 23 public static final NullAction SINGLETON = new NullAction(); 24 25 public void run(Node node) throws Exception { 26 } 27 } 28 29 30 31 32 /* 33 * Redistribution and use of this software and associated documentation 34 * ("Software"), with or without modification, are permitted provided 35 * that the following conditions are met: 36 * 37 * 1. Redistributions of source code must retain copyright 38 * statements and notices. Redistributions must also contain a 39 * copy of this document. 40 * 41 * 2. Redistributions in binary form must reproduce the 42 * above copyright notice, this list of conditions and the 43 * following disclaimer in the documentation and/or other 44 * materials provided with the distribution. 45 * 46 * 3. The name "DOM4J" must not be used to endorse or promote 47 * products derived from this Software without prior written 48 * permission of MetaStuff, Ltd. For written permission, 49 * please contact dom4j-info@metastuff.com. 50 * 51 * 4. Products derived from this Software may not be called "DOM4J" 52 * nor may "DOM4J" appear in their names without prior written 53 * permission of MetaStuff, Ltd. DOM4J is a registered 54 * trademark of MetaStuff, Ltd. 55 * 56 * 5. Due credit should be given to the DOM4J Project - 57 * http://www.dom4j.org 58 * 59 * THIS SOFTWARE IS PROVIDED BY METASTUFF, LTD. AND CONTRIBUTORS 60 * ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT 61 * NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND 62 * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL 63 * METASTUFF, LTD. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 64 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 65 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 66 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 67 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 68 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 69 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 70 * OF THE POSSIBILITY OF SUCH DAMAGE. 71 * 72 * Copyright 2001-2004 (C) MetaStuff, Ltd. All Rights Reserved. 73 * 74 * $Id: NullAction.java,v 1.5 2004/06/25 08:03:39 maartenc Exp $ 75 */