1 18 19 package sync4j.framework.engine; 20 21 26 public class SyncProperty implements java.io.Serializable { 27 28 30 33 private String name = null; 34 public String getName(){ 35 return this.name; 36 } 37 38 public void setName(String name){ 39 this.name = name; 40 } 41 42 45 private String type = null; 46 public String getType(){ 47 return type; 48 } 49 50 public void setType(String type){ 51 this.type = type; 52 } 53 54 57 private boolean key = false; 58 public boolean isKey(){ 59 return key; 60 } 61 62 65 private Object value = null; 66 public Object getValue(){ 67 return value; 68 } 69 70 public void setValue(Object value){ 71 this.value = value; 72 } 73 74 public String toString() { 75 return String.valueOf(value); 76 } 77 78 80 public SyncProperty(String name, Object value) { 81 this(name, value, value.getClass().getName()); 82 } 83 84 public SyncProperty(String name, Object value, String type) { 85 this.name = name; 86 this.value = value; 87 this.type = type; 88 } 89 } | Popular Tags |