public class DefaultDriverData extends Object implements DriverData
| Constructor and Description |
|---|
DefaultDriverData(Driver driver)
Creates new driver data.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends Behaviour> |
behaviour(Class<T> behaviourClass)
Returns the specified facet of behaviour to access the device data.
|
MutableAnnotations |
clear(String... keys)
Clears the specified keys or the all keys if none were specified.
|
Driver |
driver()
Returns the parent device driver.
|
Set<String> |
keys()
Returns the set of keys for available annotations.
|
MutableAnnotations |
set(String key,
String value)
Returns the value of the specified annotation.
|
String |
toString() |
String |
value(String key)
Returns the value of the specified annotation.
|
public DefaultDriverData(Driver driver)
driver - parent driver typepublic Driver driver()
DriverDatadriver in interface DriverDatapublic <T extends Behaviour> T behaviour(Class<T> behaviourClass)
DriverDatabehaviour in interface DriverDataT - type of behaviourbehaviourClass - behaviour classpublic MutableAnnotations set(String key, String value)
MutableAnnotationsset in interface MutableAnnotationskey - annotation keyvalue - annotation valuepublic MutableAnnotations clear(String... keys)
MutableAnnotationsclear in interface MutableAnnotationskeys - keys to be clearedpublic Set<String> keys()
Annotationskeys in interface Annotationspublic String value(String key)
Annotationsvalue in interface Annotationskey - annotation keyCopyright © 2015. All rights reserved.