-
public interface HardwareDescriptor<D extends Device>Descriptive information of the hardware of aDevice. When all devices sharing the same descriptor are unregistered, informations may be unavailable. AnHardwareDescriptoris identified by a set of properties.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetName()Returns the name of this descriptor.StringgetProperty(String propertyName)Returns the value of the given property.String[]getPropertyNames()Returns a snapshot of available properties names for this descriptor.String[]getPropertyValues()Returns a snapshot of available properties values for this descriptor.
-
-
-
Method Detail
-
getName
String getName()
Returns the name of this descriptor.- Returns:
- the name of the descriptor,
Device.UNKNOWN_NAMEif 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 togetProperty(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
-
-