1 18 19 20 package sync4j.framework.core; 21 22 30 public final class ComplexData 31 extends Data 32 implements java.io.Serializable { 33 34 private Anchor anchor; 36 private DevInf devInf; 37 38 40 public ComplexData() {} 41 42 48 public ComplexData(String data) { 49 super(data); 50 } 51 52 54 59 public Anchor getAnchor() { 60 return anchor; 61 } 62 63 68 public void setAnchor(Anchor anchor) { 69 if (null == anchor) { 70 throw new IllegalArgumentException ("anchor cannot be null"); 71 } 72 this.anchor = anchor; 73 } 74 75 80 public DevInf getDevInf() { 81 return devInf; 82 } 83 84 90 public void setDevInf(DevInf devInf) { 91 if (null == devInf) { 92 throw new IllegalArgumentException ("devInf cannot be null"); 93 } 94 this.devInf = devInf; 95 } 96 } 97 | Popular Tags |