public class DefaultDriverData extends java.lang.Object implements DriverData
Constructor and Description |
---|
DefaultDriverData(Driver driver,
DeviceId deviceId)
Creates new driver data.
|
Modifier and Type | Method and Description |
---|---|
MutableAnnotations |
clear(java.lang.String... keys)
Clears the specified keys or the all keys if none were specified.
|
DeviceId |
deviceId()
Returns the device identifier.
|
Driver |
driver()
Returns the parent device driver.
|
java.util.Set<java.lang.String> |
keys()
Returns the set of keys for available annotations.
|
MutableAnnotations |
set(java.lang.String key,
java.lang.String value)
Returns the value of the specified annotation.
|
java.lang.String |
toString() |
java.lang.String |
value(java.lang.String key)
Returns the value of the specified annotation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
behaviour
public Driver driver()
DriverData
driver
in interface DriverData
public DeviceId deviceId()
DriverData
deviceId
in interface DriverData
public MutableAnnotations set(java.lang.String key, java.lang.String value)
MutableAnnotations
set
in interface MutableAnnotations
key
- annotation keyvalue
- annotation valuepublic MutableAnnotations clear(java.lang.String... keys)
MutableAnnotations
clear
in interface MutableAnnotations
keys
- keys to be clearedpublic java.util.Set<java.lang.String> keys()
Annotations
keys
in interface Annotations
public java.lang.String value(java.lang.String key)
Annotations
value
in interface Annotations
key
- annotation keypublic java.lang.String toString()
toString
in class java.lang.Object