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