1 package org.kuali.rice.krms.tree.node;
2
3 import groovy.json.StringEscapeUtils;
4 import org.apache.commons.lang.StringUtils;
5
6 import java.io.Serializable;
7 import java.util.List;
8
9
10
11
12
13
14
15
16 public class CompareTreeNode implements Serializable {
17
18 private String original;
19 private List<String> originalItems;
20 private String compared;
21 private List<String> comparedItems;
22
23 public CompareTreeNode(){
24 }
25
26 public CompareTreeNode(String original, String compared){
27 this.original = original;
28 this.compared = compared;
29 }
30
31 public String getOriginal() {
32 if((this.original == null) || (this.original.isEmpty())){
33 return org.apache.commons.lang.StringEscapeUtils.escapeHtml(" ");
34 }
35 return original;
36 }
37
38 public void setOriginal(String original) {
39 this.original = original;
40 }
41
42 public List<String> getOriginalItems() {
43 return originalItems;
44 }
45
46 public void setOriginalItems(List<String> originalItems) {
47 this.originalItems = originalItems;
48 }
49
50 public String getCompared() {
51 if((this.compared == null) || (this.compared.isEmpty())){
52 return org.apache.commons.lang.StringEscapeUtils.escapeHtml(" ");
53 }
54 return compared;
55 }
56
57 public void setCompared(String compared) {
58 this.compared = compared;
59 }
60
61 public List<String> getComparedItems() {
62 return comparedItems;
63 }
64
65 public void setComparedItems(List<String> comparedItems) {
66 this.comparedItems = comparedItems;
67 }
68 }