01: /*
02: * @(#)ParameterAction.java 1.2 04/12/06
03: *
04: * Copyright (c) 2003 Sun Microsystems, Inc. All Rights Reserved.
05: *
06: * See the file "LICENSE.txt" for information on usage and redistribution
07: * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
08: */
09: package pnuts.xml.action;
10:
11: import pnuts.xml.DigestAction;
12:
13: /**
14: * This action pushes the content of an element onto the stack, which will be poped from the stack
15: * by a <a href="CallAction.html">CallAction</a>.
16: */
17: public class ParameterAction extends DigestAction {
18:
19: public void end(String path, String key, String text, Object top)
20: throws Exception {
21: push(getStackTopPath(), new Parameter(key, text));
22: }
23: }
24:
25: class Parameter {
26: String name;
27: Object value;
28:
29: Parameter(String name, Object value) {
30: this.name = name;
31: this.value = value;
32: }
33: }
|