1 18 19 20 package sync4j.framework.core; 21 22 30 public class Item 31 implements java.io.Serializable { 32 33 private Target target; 35 private Source source; 36 private Meta meta; 37 private ComplexData data; 38 private Boolean moreData; 39 40 42 protected Item() {} 43 44 53 public Item(final Target target, 54 final Source source, 55 final Meta meta , 56 final ComplexData data, 57 final boolean moreData) { 58 this.target = target; 59 this.source = source; 60 this.meta = meta ; 61 this.data = data ; 62 this.moreData = (moreData) ? new Boolean (moreData) : null; 63 } 64 65 67 72 public Target getTarget() { 73 return target; 74 } 75 76 82 public void setTarget(Target target) { 83 this.target = target; 84 } 85 86 91 public Source getSource() { 92 return source; 93 } 94 95 101 public void setSource(Source source) { 102 this.source = source; 103 } 104 105 110 public Meta getMeta() { 111 return meta; 112 } 113 114 120 public void setMeta(Meta meta) { 121 this.meta = meta; 122 } 123 124 130 public ComplexData getData() { 131 return data; 132 } 133 134 140 public void setData(ComplexData data) { 141 this.data = data; 142 } 143 144 150 public boolean isMoreData() { 151 return (moreData != null); 152 } 153 154 160 public Boolean getMoreData() { 161 if (!moreData.booleanValue()) { 162 return null; 163 } 164 return moreData; 165 } 166 167 172 public void setMoreData(Boolean moreData) { 173 this.moreData = (moreData.booleanValue()) ? moreData : null; 174 } 175 } | Popular Tags |