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: VisitorSupport.java,v 1.1 2001/01/19 05:58:39 jstrachan Exp $
008 */
009
010package org.dom4j;
011
012/** <p><code>VisitorSupport</code> is an abstract base class
013  * which is useful for implementation inheritence or when using anonymous 
014  * inner classes to create simple <code>Visitor</code>
015  * implementations.</p>
016  *
017  * @author <a href="mailto:james.strachan@metastuff.com">James Strachan</a>
018  * @version $Revision: 1.1 $
019  */
020public abstract class VisitorSupport implements Visitor {
021    
022    public VisitorSupport() {
023    }
024
025    public void visit(Document document) {
026    }
027
028    public void visit(DocumentType documentType) {
029    }
030    
031    public void visit(Element node) {
032    }
033
034    public void visit(Attribute node) {
035    }
036
037    public void visit(CDATA node) {
038    }
039
040    public void visit(Comment node) {
041    }
042
043    public void visit(Entity node) {
044    }
045
046    public void visit(Namespace namespace) {
047    }
048
049    public void visit(ProcessingInstruction node) {
050    }
051
052    public void visit(Text node) {
053    }
054
055}
056
057
058
059
060/*
061 * Redistribution and use of this software and associated documentation
062 * ("Software"), with or without modification, are permitted provided
063 * that the following conditions are met:
064 *
065 * 1. Redistributions of source code must retain copyright
066 *    statements and notices.  Redistributions must also contain a
067 *    copy of this document.
068 *
069 * 2. Redistributions in binary form must reproduce the
070 *    above copyright notice, this list of conditions and the
071 *    following disclaimer in the documentation and/or other
072 *    materials provided with the distribution.
073 *
074 * 3. The name "DOM4J" must not be used to endorse or promote
075 *    products derived from this Software without prior written
076 *    permission of MetaStuff, Ltd.  For written permission,
077 *    please contact dom4j-info@metastuff.com.
078 *
079 * 4. Products derived from this Software may not be called "DOM4J"
080 *    nor may "DOM4J" appear in their names without prior written
081 *    permission of MetaStuff, Ltd. DOM4J is a registered
082 *    trademark of MetaStuff, Ltd.
083 *
084 * 5. Due credit should be given to the DOM4J Project
085 *    (http://dom4j.org/).
086 *
087 * THIS SOFTWARE IS PROVIDED BY METASTUFF, LTD. AND CONTRIBUTORS
088 * ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT
089 * NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
090 * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL
091 * METASTUFF, LTD. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
092 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
093 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
094 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
095 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
096 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
097 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
098 * OF THE POSSIBILITY OF SUCH DAMAGE.
099 *
100 * Copyright 2001 (C) MetaStuff, Ltd. All Rights Reserved.
101 *
102 * $Id: VisitorSupport.java,v 1.1 2001/01/19 05:58:39 jstrachan Exp $
103 */