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 @Deprecated
33 public class BaseDTOAssemblyNode<E,T> {
34
35 public enum NodeOperation {
36 CREATE, UPDATE, DELETE;
37 }
38
39 protected NodeOperation operation;
40
41 protected E businessDTORef;
42
43 protected T nodeData;
44
45
46 protected BOAssembler<E, T> assembler;
47
48 protected List<BaseDTOAssemblyNode<?,?>> childNodes;
49
50 public BaseDTOAssemblyNode(BOAssembler<E, T> assembler) {
51 super();
52 this.assembler = assembler;
53 }
54
55
56
57
58 public T getNodeData() {
59 return nodeData;
60 }
61
62
63
64
65
66 public void setNodeData(T nodeData) {
67 this.nodeData = nodeData;
68 }
69
70
71
72
73 public NodeOperation getOperation() {
74 return operation;
75 }
76
77
78
79
80
81 public void setOperation(NodeOperation operation) {
82 this.operation = operation;
83 }
84
85 public List<BaseDTOAssemblyNode<?,?>> getChildNodes() {
86 if (childNodes == null) {
87 childNodes = new ArrayList<BaseDTOAssemblyNode<?,?>>();
88 }
89 return childNodes;
90 }
91
92 public void setChildNodes(List<BaseDTOAssemblyNode<?,?>> childNodes) {
93 this.childNodes = childNodes;
94 }
95
96
97
98
99 public BOAssembler<E, T> getAssembler() {
100 return assembler;
101 }
102
103
104
105
106 public void setAssembler(BOAssembler<E, T> assembler) {
107 this.assembler = assembler;
108 }
109
110
111
112
113 public E getBusinessDTORef() {
114 return businessDTORef;
115 }
116
117
118
119
120 public void setBusinessDTORef(E businessDTORef) {
121 this.businessDTORef = businessDTORef;
122 }
123
124 }