Class DefaultDriverData

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DefaultDriverData

        public DefaultDriverData​(Driver driver,
                                 DeviceId deviceId)
        Creates new driver data.
        Parameters:
        driver - parent driver type
        deviceId - device identifier
    • Method Detail

      • driver

        public Driver driver()
        Description copied from interface: DriverData
        Returns the parent device driver.
        Specified by:
        driver in interface DriverData
        Returns:
        device driver
      • deviceId

        public DeviceId deviceId()
        Description copied from interface: DriverData
        Returns the device identifier.
        Specified by:
        deviceId in interface DriverData
        Returns:
        device identifier
      • set

        public MutableAnnotations set​(java.lang.String key,
                                      java.lang.String value)
        Description copied from interface: MutableAnnotations
        Returns the value of the specified annotation.
        Specified by:
        set in interface MutableAnnotations
        Parameters:
        key - annotation key
        value - annotation value
        Returns:
        self
      • clear

        public MutableAnnotations clear​(java.lang.String... keys)
        Description copied from interface: MutableAnnotations
        Clears the specified keys or the all keys if none were specified.
        Specified by:
        clear in interface MutableAnnotations
        Parameters:
        keys - keys to be cleared
        Returns:
        self
      • keys

        public java.util.Set<java.lang.String> keys()
        Description copied from interface: Annotations
        Returns the set of keys for available annotations.
        Specified by:
        keys in interface Annotations
        Returns:
        annotation keys
      • value

        public java.lang.String value​(java.lang.String key)
        Description copied from interface: Annotations
        Returns the value of the specified annotation.
        Specified by:
        value in interface Annotations
        Parameters:
        key - annotation key
        Returns:
        annotation value
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object