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