View Javadoc

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