View Javadoc

    1   package org.codehaus.xfire.service;
    2
    3   /***
    4    * Indicates that a class may be visited by a {@link Visitor}.
    5    * <p/>
    6    * Used to recurse into {@link ServiceInfo}, {@link OperationInfo}, {@link MessageInfo}, etc.
    7    *
    8    * @author <a href="mailto:poutsma@mac.com">Arjen Poutsma</a>
    9    * @see Visitor
    10   */
    11  public interface Visitable
    12  {
    13      /***
    14       * Acceps the given visitor. Subclasses are required to call the <code>begin*</code> method on the given visitor,
    15       * iterate over their members, call {@link #accept} for each of them, and call <code>end*</code>.
    16       *
    17       * @param visitor the visitor.
    18       */
    19      void accept(Visitor visitor);
    20  }