1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.seasar.cubby.tags;
17
18 import java.util.HashMap;
19 import java.util.Map;
20
21 import javax.servlet.jsp.JspException;
22 import javax.servlet.jsp.tagext.DynamicAttributes;
23 import javax.servlet.jsp.tagext.SimpleTagSupport;
24
25
26
27
28
29
30 abstract class DynamicAttributesSimpleTagSupport extends SimpleTagSupport
31 implements DynamicAttributes {
32
33
34 private final Map<String, Object> dynamicAttributes = new HashMap<String, Object>();
35
36
37
38
39 public void setDynamicAttribute(final String uri, final String localName,
40 final Object value) throws JspException {
41 this.dynamicAttributes.put(localName, value);
42 }
43
44
45
46
47
48
49 protected Map<String, Object> getDynamicAttributes() {
50 return this.dynamicAttributes;
51 }
52
53 }