01: /*
02: * Created on 13-Jan-2006
03: */
04: package uk.org.ponder.rsf.components;
05:
06: import uk.org.ponder.beanutil.BeanUtil;
07: import uk.org.ponder.conversion.LeafObjectParser;
08:
09: public class ELReferenceParser implements LeafObjectParser {
10:
11: public Object parse(String toparse) {
12: ELReference togo = new ELReference();
13: togo.value = BeanUtil.stripELNoisy(toparse);
14: return togo;
15: }
16:
17: public String render(Object torendero) {
18: ELReference torender = (ELReference) torendero;
19: return "#{" + torender.value + "}";
20: }
21:
22: public Object copy(Object tocopyo) {
23: ELReference tocopy = (ELReference) tocopyo;
24: ELReference togo = new ELReference();
25: togo.value = tocopy.value;
26: return togo;
27: }
28:
29: }
|