1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package net.sf.jameleon;
20
21 import org.apache.commons.jelly.MissingAttributeException;
22 import org.apache.commons.jelly.JellyTagException;
23 import org.apache.commons.jelly.XMLOutput;
24
25 /***
26 * Gives the parameter a value.
27 * For example:
28 * <pre>
29 * <param>
30 * <param-name>someName</param-name>
31 * <param-value>foo</param-value>
32 * </param>
33 * </pre>
34 * @jameleon.function name="param-value"
35 */
36 public class ParamValueTag extends AbstractParamElementTag {
37
38 /***
39 * An implementation of the <code>doTag</code> method provided by the <code>TagSupport</code> class.
40 * Maps the value in the <code>fromVariable</code> over to the original variable name, <code>toVariable</code>.
41 */
42 public void doTag(XMLOutput out) throws MissingAttributeException, JellyTagException{
43 super.doTag(out);
44 parentTag.addParamValue(text);
45 parentTag.setFromVariable(fromVariable);
46 }
47
48 }