01: package murlen.util.fscript;
02:
03: /**
04: * FSVarExtension - simple variable extension to plug into FSFastExtension
05: * <p>
06: * <I>Copyright (C) 2002 </I></p>
07: * <p>
08: * This library is free software; you can redistribute it and/or
09: * modify it under the terms of the GNU Library General Public
10: * License as published by the Free Software Foundation; either
11: * version 2 of the License, or (at your option) any later version.</p>
12: * <p>
13: * This library is distributed in the hope that it will be useful,
14: * but WITHOUT ANY WARRANTY; without even the implied warranty of
15: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16: * Library General Public License for more details.</p>
17: *
18: * <p>You should have received a copy of the GNU Library General Public
19: * License along with this library; if not, write to the Free
20: * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA </p>
21: *
22: * @author Joachim Van der Auwera
23: *
24: * modifications by Joachim Van der Auwera
25: * 02.08.2002 started
26: */
27:
28: public interface FSVarExtension {
29:
30: /**
31: * <p>getVar is called whenever a variable is read in FScript that has
32: * not been defined within the script iteslf</p>
33: * @param name the variable name
34: * @return the value of the variable (as one of FScript's supported object
35: * types)
36: **/
37: public Object getVar(String name) throws FSException;
38:
39: /**
40: * <p>setVar is called whenever a variable is written to in FScript that has not
41: * been defined within the script itself</p>
42: * @param name the variable name
43: * @param value the value to assign to the variable
44: **/
45: public void setVar(String name, Object value) throws FSException;
46:
47: }
|