01: /*
02: * This file or a portion of this file is licensed under the terms of
03: * the Globus Toolkit Public License, found in file GTPL, or at
04: * http://www.globus.org/toolkit/download/license.html. This notice must
05: * appear in redistributions of this file, with or without modification.
06: *
07: * Redistributions of this Software, with or without modification, must
08: * reproduce the GTPL in: (1) the Software, or (2) the Documentation or
09: * some other similar material which is provided with the Software (if
10: * any).
11: *
12: * Copyright 1999-2004 University of Chicago and The University of
13: * Southern California. All rights reserved.
14: */
15: package org.griphyn.vdl.parser;
16:
17: import org.griphyn.vdl.classes.*;
18:
19: /**
20: * This interface introduces a callback to be employed whenever
21: * a Definition is fully read into memory, and ready to be processed.
22: * Any overwrite or dontcare mode is not part of this interface's
23: * contract.
24: *
25: * @author Jens-S. Vöckler
26: * @author Yong Zhao
27: * @version $Revision: 50 $
28: *
29: * @see Definition
30: * @see Transformation
31: * @see Derivation
32: */
33: public interface FinalizerHandler {
34: /**
35: * This method adds the given top-level VDL element to whatever storage is
36: * implemented underneath. Please note that the Defintions class will not
37: * be maintained by the parser for memory efficiency reasons!
38: *
39: * @param d is the VDL that is ready to be stored.
40: * @return true, if new version was stored and database modified,
41: * false, if the definition was rejected for any reason.
42: */
43: public boolean store(VDL d);
44: }
|