001package org.kuali.rice.krms.tree.node; 002 003import groovy.json.StringEscapeUtils; 004import org.apache.commons.lang.StringUtils; 005 006import java.io.Serializable; 007import java.util.List; 008 009/** 010 * Created with IntelliJ IDEA. 011 * User: SW 012 * Date: 2013/02/20 013 * Time: 10:10 AM 014 * To change this template use File | Settings | File Templates. 015 */ 016public class CompareTreeNode implements Serializable { 017 018 private String original; 019 private List<String> originalItems; 020 private String compared; 021 private List<String> comparedItems; 022 023 public CompareTreeNode(){ 024 } 025 026 public CompareTreeNode(String original, String compared){ 027 this.original = original; 028 this.compared = compared; 029 } 030 031 public String getOriginal() { 032 if((this.original == null) || (this.original.isEmpty())){ 033 return org.apache.commons.lang.StringEscapeUtils.escapeHtml(" "); 034 } 035 return original; 036 } 037 038 public void setOriginal(String original) { 039 this.original = original; 040 } 041 042 public List<String> getOriginalItems() { 043 return originalItems; 044 } 045 046 public void setOriginalItems(List<String> originalItems) { 047 this.originalItems = originalItems; 048 } 049 050 public String getCompared() { 051 if((this.compared == null) || (this.compared.isEmpty())){ 052 return org.apache.commons.lang.StringEscapeUtils.escapeHtml(" "); 053 } 054 return compared; 055 } 056 057 public void setCompared(String compared) { 058 this.compared = compared; 059 } 060 061 public List<String> getComparedItems() { 062 return comparedItems; 063 } 064 065 public void setComparedItems(List<String> comparedItems) { 066 this.comparedItems = comparedItems; 067 } 068}