01: /*
02: * Copyright (c) 2002-2006 by OpenSymphony
03: * All rights reserved.
04: */
05:
06: package com.opensymphony.xwork.util;
07:
08: /**
09: * An Object to use within OGNL to proxy other Objects
10: * usually Collections that you set in a different place
11: * on the ValueStack but want to retain the context information
12: * about where they previously were.
13: *
14: * @author Gabe
15: */
16: public class ObjectProxy {
17: private Object value;
18: private Class lastClassAccessed;
19: private String lastPropertyAccessed;
20:
21: public Class getLastClassAccessed() {
22: return lastClassAccessed;
23: }
24:
25: public void setLastClassAccessed(Class lastClassAccessed) {
26: this .lastClassAccessed = lastClassAccessed;
27: }
28:
29: public String getLastPropertyAccessed() {
30: return lastPropertyAccessed;
31: }
32:
33: public void setLastPropertyAccessed(String lastPropertyAccessed) {
34: this .lastPropertyAccessed = lastPropertyAccessed;
35: }
36:
37: public Object getValue() {
38: return value;
39: }
40:
41: public void setValue(Object value) {
42: this.value = value;
43: }
44: }
|