1 /*
2 * Copyright (C) 2007 Tim Pizey.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License, version 2, as
6 * published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License (http://www.gnu.org/copyleft/gpl.txt)
12 * for more details.
13 */
14
15 package com.quiotix.html.parser;
16
17 /**
18 * An Object which can be visited by an HtmlVisitor as per the Visitor Pattern.
19 *
20 * This interface is redundant as the requirement to support an
21 * <tt>accept</tt> method is already enforced by {@link HtmlElement}; however
22 * {@link HtmlDocument} is visitable but is not an {@link HtmlDocument}.
23 *
24 * @author timp
25 * @since 15 Nov 2007
26 *
27 */
28 public interface Visitable {
29
30 /**
31 * Allow the Visitor to visit.
32 *
33 * @param v the visitor which has come to call
34 */
35 void accept(HtmlVisitor v);
36 }