1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.student.r1.common.assembly;
17
18 import java.util.ArrayList;
19 import java.util.List;
20
21
22
23
24
25
26
27
28
29
30
31
32 public class BaseDTOAssemblyNode<E,T> {
33
34 public enum NodeOperation {
35 CREATE, UPDATE, DELETE;
36 }
37
38 protected NodeOperation operation;
39
40 protected E businessDTORef;
41
42 protected T nodeData;
43
44
45 protected BOAssembler<E, T> assembler;
46
47 protected List<BaseDTOAssemblyNode<?,?>> childNodes;
48
49 public BaseDTOAssemblyNode(BOAssembler<E, T> assembler) {
50 super();
51 this.assembler = assembler;
52 }
53
54
55
56
57 public T getNodeData() {
58 return nodeData;
59 }
60
61
62
63
64
65 public void setNodeData(T nodeData) {
66 this.nodeData = nodeData;
67 }
68
69
70
71
72 public NodeOperation getOperation() {
73 return operation;
74 }
75
76
77
78
79
80 public void setOperation(NodeOperation operation) {
81 this.operation = operation;
82 }
83
84 public List<BaseDTOAssemblyNode<?,?>> getChildNodes() {
85 if (childNodes == null) {
86 childNodes = new ArrayList<BaseDTOAssemblyNode<?,?>>();
87 }
88 return childNodes;
89 }
90
91 public void setChildNodes(List<BaseDTOAssemblyNode<?,?>> childNodes) {
92 this.childNodes = childNodes;
93 }
94
95
96
97
98 public BOAssembler<E, T> getAssembler() {
99 return assembler;
100 }
101
102
103
104
105 public void setAssembler(BOAssembler<E, T> assembler) {
106 this.assembler = assembler;
107 }
108
109
110
111
112 public E getBusinessDTORef() {
113 return businessDTORef;
114 }
115
116
117
118
119 public void setBusinessDTORef(E businessDTORef) {
120 this.businessDTORef = businessDTORef;
121 }
122
123 }