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 Device
public boolean hasProperty(String key)
hasProperty
in interface Device
public String getProperty(String key, String defaultValue)
getProperty
in interface Device
public String getProperty(String key)
getProperty
in interface Device
public Map<String,String> getProperties()
getProperties
in interface Device
public void removeProperty(String key)
removeProperty
in interface Device
public void clearProperties()
clearProperties
in interface Device
Copyright © 2012–2014 Pi4J. All rights reserved.