01: /*
02: * ObjectProperty.java
03: *
04: * Copyright (c) 2007 Sun Microsystems, Inc. All Rights Reserved.
05: *
06: * See the file "LICENSE.txt" for information on usage and redistribution
07: * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
08: */
09: package org.pnuts.tinybeans;
10:
11: import java.lang.reflect.*;
12:
13: class ObjectProperty {
14: private String name;
15: private boolean hasCanonicalName;
16: Method r;
17: Method w;
18: Class type;
19:
20: ObjectProperty(String name, Class type, Method r, Method w,
21: boolean hasCanonicalName) {
22: this .name = name;
23: this .r = r;
24: this .w = w;
25: this .type = type;
26: this .hasCanonicalName = hasCanonicalName;
27: }
28:
29: public String getName() {
30: return name;
31: }
32:
33: public Class getType() {
34: return type;
35: }
36:
37: public Method getReadMethod() {
38: return r;
39: }
40:
41: public Method getWriteMethod() {
42: return w;
43: }
44:
45: boolean hasCanonicalName() {
46: return hasCanonicalName;
47: }
48: }
|