KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > core > internal > watson > IDeltaVisitor


1 /*******************************************************************************
2  * Copyright (c) 2000, 2004 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Common Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.core.internal.watson;
12
13 import org.eclipse.core.runtime.IPath;
14
15 /**
16  * Interface for visiting the nodes of an element tree delta.
17  * @see DeltaIterator
18  */

19 public interface IDeltaVisitor {
20     /**
21      * Visits an element in an element tree delta. Returns true if the element's
22      * children should be visited, and false otherwise. The return value only
23      * has signifance for a pre-order traversal.
24      *
25      * @param tree The Element tree delta being visited
26      * @param path The path of the current element
27      * @param oldData The element's data in the old tree
28      * @param newData The element's data in the new tree
29      * @param comparison The comparison value between the old and new tree
30      */

31     public boolean visitElement(ElementTreeDelta tree, IPath path, Object JavaDoc oldData, Object JavaDoc newData, int comparison);
32 }
Popular Tags