1 17 package org.alfresco.filesys.server.core; 18 19 25 public class DeviceContext 26 { 27 28 30 private String m_devName; 31 32 36 private boolean m_available = true; 37 38 41 public DeviceContext() 42 { 43 super(); 44 } 45 46 49 public DeviceContext(String devName) 50 { 51 m_devName = devName; 52 } 53 54 59 public final String getDeviceName() 60 { 61 return m_devName; 62 } 63 64 69 public final boolean isAvailable() 70 { 71 return m_available; 72 } 73 74 79 public final void setAvailable(boolean avail) 80 { 81 m_available = avail; 82 } 83 84 89 public final void setDeviceName(String name) 90 { 91 m_devName = name; 92 } 93 94 97 public void CloseContext() 98 { 99 } 100 101 106 public String toString() 107 { 108 StringBuffer str = new StringBuffer (); 109 110 str.append("["); 111 str.append(getDeviceName()); 112 str.append("]"); 113 114 return str.toString(); 115 } 116 } | Popular Tags |