01: /*
02: * Created on 13-Jan-2006
03: */
04: package uk.org.ponder.rsf.components;
05:
06: import uk.org.ponder.beanutil.BeanUtil;
07:
08: /** A special class to hold EL references so they may be detected in the
09: * component tree. When held in this member, it is devoid of the packaging #{..}
10: * characters - they are removed and replaced by the parser in transit from
11: * XML form.
12: * @author Antranig Basman (amb26@ponder.org.uk)
13: *
14: */
15: // TODO: in RSF 0.8 this class will be deprecated in favour of the version
16: // in PUC.
17: public class ELReference {
18: public ELReference() {
19: }
20:
21: public ELReference(String value) {
22: String stripped = BeanUtil.stripEL(value);
23: this .value = stripped == null ? value : stripped;
24: }
25:
26: public String value;
27:
28: public static ELReference make(String value) {
29: return value == null ? null : new ELReference(value);
30: }
31: }
|