2009/05/20 - Apache Shale has been retired.
For more information, please explore the Attic.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.apache.shale.tiger.managed.config;
19
20 /***
21 * <p>Representation of the runtime relevant contents of a JavaServer Faces
22 * <code><map-entry></code> configuration element.</p>
23 */
24 public class MapEntryConfig implements NullValueHolder {
25
26 /*** Creates a new instance of MapEntryConfig. */
27 public MapEntryConfig() {
28 }
29
30 /***
31 * <p>Return <code>true</code> if the specified <code>value</code>
32 * is a value binding expression, rather than a literal value.</p>
33 */
34 public boolean isExpression() {
35 return (value != null) && value.startsWith("#{")
36 && value.endsWith("}");
37 }
38
39 /***
40 * Holds value of property key.
41 */
42 private String key;
43
44 /***
45 * Getter for property key.
46 * @return Value of property key.
47 */
48 public String getKey() {
49
50 return this.key;
51 }
52
53 /***
54 * Setter for property key.
55 * @param key New value of property key.
56 */
57 public void setKey(String key) {
58
59 this.key = key;
60 }
61
62 /***
63 * Holds value of property value.
64 */
65 private String value;
66
67 /***
68 * Getter for property value.
69 * @return Value of property value.
70 */
71 public String getValue() {
72
73 return this.value;
74 }
75
76 /***
77 * Setter for property value.
78 * @param value New value of property value.
79 */
80 public void setValue(String value) {
81
82 this.value = value;
83 }
84
85 /***
86 * Holds value of property nullValue.
87 */
88 private boolean nullValue;
89
90 /***
91 * Getter for property nullValue.
92 * @return Value of property nullValue.
93 */
94 public boolean isNullValue() {
95
96 return this.nullValue;
97 }
98
99 /***
100 * Setter for property nullValue.
101 * @param nullValue New value of property nullValue.
102 */
103 public void setNullValue(boolean nullValue) {
104
105 this.nullValue = nullValue;
106 }
107
108 }