1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34 package info.magnolia.jcr.node2bean;
35
36 import java.lang.reflect.Method;
37
38
39
40
41 public class PropertyTypeDescriptor {
42 private String name;
43 private TypeDescriptor type;
44 private TypeDescriptor collectionEntryType;
45 private TypeDescriptor collectionKeyType;
46 private Method writeMethod;
47 private Method addMethod;
48
49 public TypeDescriptor getCollectionEntryType() {
50 return this.collectionEntryType;
51 }
52
53 public void setCollectionEntryType(TypeDescriptor collectionEntryType) {
54 this.collectionEntryType = collectionEntryType;
55 }
56
57 public TypeDescriptor getCollectionKeyType() {
58 return this.collectionKeyType;
59 }
60
61 public void setCollectionKeyType(TypeDescriptor collectionKeyType) {
62 this.collectionKeyType = collectionKeyType;
63 }
64
65 public boolean isCollection() {
66 return getType().isCollection();
67 }
68
69 public boolean isMap() {
70 return getType().isMap();
71 }
72
73 public boolean isArray() {
74 return getType().isArray();
75 }
76
77 public TypeDescriptor getType() {
78 return this.type;
79 }
80
81 public void setType(TypeDescriptor type) {
82 this.type = type;
83 }
84
85 public String getName() {
86 return this.name;
87 }
88
89 public void setName(String name) {
90 this.name = name;
91 }
92
93 public Method getWriteMethod() {
94 return writeMethod;
95 }
96
97 public void setWriteMethod(Method writeMethod) {
98 this.writeMethod = writeMethod;
99 }
100
101
102
103
104 public Method getAddMethod() {
105 return addMethod;
106 }
107
108
109
110
111 public void setAddMethod(Method addMethod) {
112 this.addMethod = addMethod;
113 }
114 }