1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
|
18 | |
|
19 | |
package org.apache.myfaces.config.impl.digester.elements; |
20 | |
|
21 | |
import java.util.ArrayList; |
22 | |
import java.util.List; |
23 | |
import java.util.Iterator; |
24 | |
|
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | 0 | public class MapEntries implements org.apache.myfaces.config.element.MapEntries |
30 | |
{ |
31 | |
|
32 | |
private String keyClass; |
33 | |
private String valueClass; |
34 | 0 | private List<Entry> entries = new ArrayList<Entry>(); |
35 | |
|
36 | |
|
37 | |
public String getKeyClass() |
38 | |
{ |
39 | 0 | return keyClass; |
40 | |
} |
41 | |
|
42 | |
|
43 | |
public void setKeyClass(String keyClass) |
44 | |
{ |
45 | 0 | this.keyClass = keyClass; |
46 | 0 | } |
47 | |
|
48 | |
|
49 | |
public String getValueClass() |
50 | |
{ |
51 | 0 | return valueClass; |
52 | |
} |
53 | |
|
54 | |
|
55 | |
public void setValueClass(String valueClass) |
56 | |
{ |
57 | 0 | this.valueClass = valueClass; |
58 | 0 | } |
59 | |
|
60 | |
public void addEntry(Entry entry) { |
61 | 0 | entries.add(entry); |
62 | 0 | } |
63 | |
|
64 | |
|
65 | |
public Iterator<Entry> getMapEntries() |
66 | |
{ |
67 | 0 | return entries.iterator(); |
68 | |
} |
69 | |
|
70 | |
|
71 | 0 | public static class Entry implements org.apache.myfaces.config.element.MapEntry { |
72 | |
String key; |
73 | 0 | boolean nullValue = false; |
74 | |
String value; |
75 | |
|
76 | |
|
77 | |
public String getKey() |
78 | |
{ |
79 | 0 | return key; |
80 | |
} |
81 | |
|
82 | |
|
83 | |
public void setKey(String key) |
84 | |
{ |
85 | 0 | this.key = key; |
86 | 0 | } |
87 | |
|
88 | |
|
89 | |
public boolean isNullValue() |
90 | |
{ |
91 | 0 | return nullValue; |
92 | |
} |
93 | |
|
94 | |
|
95 | |
public void setNullValue() |
96 | |
{ |
97 | 0 | this.nullValue = true; |
98 | 0 | } |
99 | |
|
100 | |
|
101 | |
public String getValue() |
102 | |
{ |
103 | 0 | return value; |
104 | |
} |
105 | |
|
106 | |
|
107 | |
public void setValue(String value) |
108 | |
{ |
109 | 0 | this.value = value; |
110 | 0 | } |
111 | |
} |
112 | |
} |