Package ej.ecom

Interface HardwareDescriptor<D extends Device>


  • public interface HardwareDescriptor<D extends Device>
    Descriptive information of the hardware of a Device. When all devices sharing the same descriptor are unregistered, informations may be unavailable. An HardwareDescriptor is identified by a set of properties.
    • Method Detail

      • getName

        String getName()
        Returns the name of this descriptor.
        Returns:
        the name of the descriptor, Device.UNKNOWN_NAME if its name is unavailable.
      • getProperty

        String getProperty​(String propertyName)
        Returns the value of the given property.
        Parameters:
        propertyName - the property name
        Returns:
        null if the property is unknown or is unavailable.
      • getPropertyNames

        String[] getPropertyNames()
        Returns a snapshot of available properties names for this descriptor. Subsequent calls to getProperty(String) with properties returned by this method are not ensured to return a non null value.
        Returns:
        an empty array if the properties are unavailable
      • getPropertyValues

        String[] getPropertyValues()
        Returns a snapshot of available properties values for this descriptor.
        Returns:
        an empty array if the properties are unavailable