01: package murlen.util.fscript;
02:
03: import java.util.ArrayList;
04:
05: /**
06: *<p>This class implements a bare FSExtension - subclassing from this will help
07: * prevent errors caused by not throwing FSUnsupportedException from empty
08: * set/getVar and callFunction methods.</p>
09: * <p>
10: * <I>Copyright (C) 2000 murlen.</I></p>
11: * <p>
12: * This library is free software; you can redistribute it and/or
13: * modify it under the terms of the GNU Library General Public
14: * License as published by the Free Software Foundation; either
15: * version 2 of the License, or (at your option) any later version.</p>
16: * <p>
17: * This library is distributed in the hope that it will be useful,
18: * but WITHOUT ANY WARRANTY; without even the implied warranty of
19: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20: * Library General Public License for more details.</p>
21: *
22: * <p>You should have received a copy of the GNU Library General Public
23: * License along with this library; if not, write to the Free
24: * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA </p>
25: * @author murlen
26: *
27: **/
28:
29: public abstract class BasicExtension implements FSExtension {
30:
31: public BasicExtension() {
32: }
33:
34: public Object callFunction(String name, ArrayList params)
35: throws FSException {
36: throw new FSUnsupportedException(name);
37: }
38:
39: public Object getVar(String name) throws FSException {
40: throw new FSUnsupportedException(name);
41: }
42:
43: public void setVar(String name, Object value) throws FSException {
44: throw new FSUnsupportedException(name);
45: }
46:
47: public Object getVar(String name, Object index) throws FSException {
48: throw new FSUnsupportedException(name);
49: }
50:
51: public void setVar(String name, Object index, Object value)
52: throws FSException {
53: throw new FSUnsupportedException(name);
54: }
55:
56: }
|