1 18 19 package sync4j.framework.engine; 20 21 import java.util.Map ; 22 23 import sync4j.framework.engine.source.SyncSource; 24 import sync4j.framework.engine.SyncItemKey; 25 26 53 public interface SyncItem { 54 55 57 public static final String PROPERTY_BINARY_CONTENT = "BINARY_CONTENT"; 58 public static final String PROPERTY_TIMESTAMP = "TIMESTAMP" ; 59 public static final String PROPERTY_SIZE = "SIZE" ; 60 public static final String PROPERTY_TYPE = "TYPE" ; 61 public static final String PROPERTY_FORMAT = "FORMAT" ; 62 63 65 68 public SyncItemKey getKey(); 69 public SyncItemKey getMappedKey(); 70 71 public char getState(); 72 73 public void setState(char state); 74 75 81 public Map getProperties(); 82 83 89 public void setProperties(Map properties); 90 91 95 public void setProperty(SyncProperty property); 96 97 103 public SyncProperty getProperty(String propertyName); 104 105 106 111 public void setPropertyValue(String propertyName, Object propertyValue); 112 113 120 public Object getPropertyValue(String propertyName); 121 122 126 public SyncSource getSyncSource(); 127 128 134 public boolean isMapped(); 135 136 137 } | Popular Tags |