1 /*
2 * Copyright 2008 FatWire Corporation. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16 package com.fatwire.gst.foundation.facade.runtag.render;
17
18 import java.util.Date;
19
20 /**
21 * @author Dolf Dijkstra
22 * @since 2.3
23 */
24 public abstract class TagRunnerWithRenderArguments extends TagRunnerWithArguments {
25
26 public static final String ARGS = "ARGS_";
27
28 public TagRunnerWithRenderArguments(String tagName) {
29 super(tagName);
30 }
31
32 /**
33 * Arguments are prefixed with ARGS_ in order to be available in the called
34 * Tag.
35 *
36 * @param name parameter name
37 * @param value parameter value
38 */
39 public final void setArgument(final String name, final String value) {
40 super.set(ARGS + name, value);
41 }
42
43 /**
44 * Arguments are prefixed with ARGS_ in order to be available in the called
45 * Tag.
46 *
47 * @param name parameter name
48 * @param value parameter value
49 */
50 public final void setArgument(final String name, final long value) {
51 super.set(ARGS + name, value);
52 }
53
54 /**
55 * Arguments are prefixed with ARGS_ in order to be available in the called
56 * Tag.
57 *
58 * @param name parameter name
59 * @param value parameter value
60 */
61 public final void setArgument(final String name, final Date value) {
62 super.set(ARGS + name, value);
63 }
64
65 /**
66 * Arguments are prefixed with ARGS_ in order to be available in the called
67 * Tag.
68 *
69 * @param name parameter name
70 * @param value parameter value
71 */
72 public final void setArgument(final String name, final int value) {
73 super.set(ARGS + name, value);
74 }
75
76 /**
77 * Arguments are prefixed with ARGS_ in order to be available in the called
78 * Tag.
79 *
80 * @param name parameter name
81 * @param value parameter value
82 */
83 public final void setArgument(final String name, final boolean value) {
84 super.set(ARGS + name, value);
85 }
86
87 }