01: /*
02: * Created on Jun 17, 2004
03: */
04: package net.sourceforge.orbroker;
05:
06: import java.lang.reflect.Member;
07:
08: /**
09: * @author Nils Kilden-Pedersen
10: */
11: abstract class ResultObjectMember {
12:
13: private final Member member;
14:
15: protected ResultObjectMember(Member member) {
16: this .member = member;
17: }
18:
19: /**
20: * @return Returns member.
21: */
22: protected final Member getMember() {
23: return this .member;
24: }
25:
26: protected final Class getType() {
27: return this .member.getDeclaringClass();
28: }
29:
30: /**
31: * @inheritDoc
32: * @see java.lang.Object#toString()
33: */
34: public String toString() {
35: return this.member.toString();
36: }
37: }
|