1 18 package sync4j.syncclient.spdm; 19 20 21 22 30 public class DeviceImpl 31 implements Device { 32 33 35 38 public static final String CONTEXT_DEVICE = "spdm"; 39 40 43 public static final String PROP_BASE_DIR = "baseDir"; 44 45 47 private DeviceManager dm; 48 49 51 public DeviceImpl(DeviceManager dm) { 52 this.dm = dm; 53 } 54 55 57 67 public String getBaseDirectory() throws DMException { 68 return (String )dm.getManagementTree(CONTEXT_DEVICE).getValue(PROP_BASE_DIR); 69 } 70 71 78 public void setBaseDirectory(String baseDir) throws DMException { 79 dm.getManagementTree(CONTEXT_DEVICE).setValue(PROP_BASE_DIR, baseDir); 80 } 81 82 } | Popular Tags |