1 /* Copyright (2005-2007) Schibsted Søk AS
2 * This file is part of Sesat Commons.
3 *
4 * Sesat Commons is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * Sesat Commons is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with Sesat Commons. If not, see <http://www.gnu.org/licenses/>.
16 * Visitable.java
17 *
18 * Created on 7 January 2006, 16:04
19 *
20 */
21
22 package no.sesat.commons.visitor;
23
24 import java.io.Serializable;
25
26 /** Interface for Classes that will implement the Visitor pattern.
27 * See complimentary Visitor interface.
28 *
29 * @version $Id: Visitable.java 1128 2009-01-21 16:25:47Z ssmiweve $
30 *
31 */
32 public interface Visitable extends Serializable {
33
34 /** Method to accept a visitor.
35 * This method usually doesn't do more than
36 * <code>visitor.visit(this);</code>
37 *
38 * @param visitor the visitor knocking on the door.
39 */
40 void accept(Visitor visitor);
41 }