1 18 package sync4j.framework.core; 19 20 import java.util.*; 21 22 31 public final class MetInf 32 implements java.io.Serializable { 33 34 private String format ; 36 private String type ; 37 private String mark ; 38 private Anchor anchor ; 39 private String version ; 40 private NextNonce nextNonce ; 41 private Long maxMsgSize; 42 private Long maxObjSize; 43 private Long size ; 44 private ArrayList emi = new ArrayList(); 45 private Mem mem ; 46 48 51 public MetInf() { 52 set( 53 null, 54 null, 55 null, 56 null, 57 null, 58 null, 59 null, 60 null, 61 null, 62 null, 63 null 64 ); 65 } 66 67 83 public MetInf(final String format , 84 final String type , 85 final String mark , 86 final Long size , 87 final Anchor anchor , 88 final String version , 89 final NextNonce nonce , 90 final Long maxMsgSize, 91 final Long maxObjSize, 92 final EMI[] emi , 93 final Mem mem ) { 94 95 set( 96 format, 97 type , 98 mark , 99 size , 100 anchor , 101 version , 102 nonce , 103 maxMsgSize , 104 maxObjSize , 105 emi , 106 mem 107 ); 108 } 109 110 112 117 public Long getSize() { 118 return size; 119 } 120 121 126 public void setSize(Long size) { 127 this.size = size; 128 } 129 130 135 public String getFormat() { 136 return format; 137 } 138 139 144 public void setFormat(String format) { 145 this.format = format; 146 } 147 148 153 public String getType() { 154 return type; 155 } 156 157 162 public void setType(String type) { 163 this.type = type; 164 } 165 166 171 public String getMark() { 172 return mark; 173 } 174 175 180 public void setMark(String mark) { 181 this.mark = mark; 182 } 183 184 189 public Anchor getAnchor() { 190 return anchor; 191 } 192 193 198 public void setAnchor(Anchor anchor) { 199 this.anchor = anchor; 200 } 201 202 207 public String getVersion() { 208 return version; 209 } 210 211 216 public void setVersion(String version) { 217 this.version = version; 218 } 219 220 225 public NextNonce getNextNonce() { 226 return nextNonce; 227 } 228 229 234 public void setNextNonce(NextNonce nextNonce) { 235 this.nextNonce = nextNonce; 236 } 237 238 243 public Long getMaxMsgSize() { 244 return maxMsgSize; 245 } 246 247 252 public void setMaxMsgSize(Long maxMsgSize) { 253 this.maxMsgSize = maxMsgSize; 254 } 255 256 261 public Long getMaxObjSize() { 262 return maxObjSize; 263 } 264 265 270 public void setMaxObjSize(Long maxObjSize) { 271 this.maxObjSize = maxObjSize; 272 } 273 274 279 public ArrayList getEMI() { 280 return emi; 281 } 282 283 288 public void setEMI(EMI[] emi) { 289 if (emi != null) { 290 this.emi.clear(); 291 this.emi.addAll(Arrays.asList(emi)); 292 } else { 293 this.emi = new ArrayList(); 294 } 295 } 296 297 302 public Mem getMem() { 303 return mem; 304 } 305 306 311 public void setMem(Mem mem) { 312 this.mem = mem; 313 } 314 315 317 332 private void set(final String format , 333 final String type , 334 final String mark , 335 final Long size , 336 final Anchor anchor , 337 final String version , 338 final NextNonce nonce , 339 final Long maxMsgSize, 340 final Long maxObjSize, 341 final EMI[] emi , 342 final Mem mem ) { 343 this.format = format; 344 this.type = type; 345 this.mark = mark; 346 this.anchor = anchor; 347 this.size = size; 348 this.version = version; 349 this.nextNonce = nonce; 350 this.maxMsgSize = maxMsgSize; 351 this.maxObjSize = maxObjSize; 352 this.mem = mem; 353 this.setEMI(emi); 354 } 355 } 356 | Popular Tags |