public abstract class DeviceBase extends Object implements Device
| Constructor and Description |
|---|
DeviceBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearProperties() |
String |
getName() |
Map<String,String> |
getProperties() |
String |
getProperty(String key) |
String |
getProperty(String key,
String defaultValue) |
Object |
getTag() |
boolean |
hasProperty(String key) |
void |
removeProperty(String key) |
void |
setName(String name) |
void |
setProperty(String key,
String value) |
void |
setTag(Object tag) |
public void setProperty(String key, String value)
setProperty in interface Devicepublic boolean hasProperty(String key)
hasProperty in interface Devicepublic String getProperty(String key, String defaultValue)
getProperty in interface Devicepublic String getProperty(String key)
getProperty in interface Devicepublic Map<String,String> getProperties()
getProperties in interface Devicepublic void removeProperty(String key)
removeProperty in interface Devicepublic void clearProperties()
clearProperties in interface DeviceCopyright © 2012-2013 Pi4J. All Rights Reserved.