View Javadoc

1   /* ===================================================================
2    * Copyright 2002-06 SRI International.
3    * Released under the MOZILLA PUBLIC LICENSE Version 1.1
4    * which can be obtained at http://www.mozilla.org/MPL/MPL-1.1.html
5    * This software is distributed on an "AS IS"
6    * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
7    * See the License for the specific language governing rights and
8    * limitations under the License.
9    * =================================================================== */
10  
11  package com.sri.emo.commandline;
12  
13  import com.jcorporate.expresso.core.db.DBException;
14  import com.jcorporate.expresso.core.dbobj.DBObject;
15  
16  /***
17   * Tracks which nodes have been duplicated. 
18   * @author Michael Rimov
19   *
20   */
21  public interface NodeTracker {
22  	
23  	/***
24  	 * Checks to see if a given node has been visited.
25  	 * @return   true if object was visited
26  	 */
27  	boolean isObjectVisited(DBObject dbobj)throws DBException ;
28  	
29  	
30  	/***
31  	 * Adds the dbobject class and id into internal storage that
32  	 * prevents duplication.
33  	 */
34  	void markObjectAsVisited(DBObject dbobj)throws DBException ;
35  
36  }