org.networkupstools.jnut
Class Scanner.DiscoveredDevice

java.lang.Object
  extended by org.networkupstools.jnut.Scanner.DiscoveredDevice
Enclosing class:
Scanner

public static class Scanner.DiscoveredDevice
extends java.lang.Object

Result of a scan.

See Also:
Used to retrieve informations about devices found by a scan and their properties

Method Summary
 java.lang.String getDriver()
          Retrieve the name of driver used by device.
 java.util.Map getProperties()
          Retrieve the map of device properties.
 java.lang.String getProperty(java.lang.String name)
          Retrieve a device property if exists.
 boolean hasProperty(java.lang.String name)
          Test if the device has a property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDriver

public java.lang.String getDriver()
Retrieve the name of driver used by device.

Returns:
Driver name

getProperties

public java.util.Map getProperties()
Retrieve the map of device properties.

Returns:
Device property map

getProperty

public java.lang.String getProperty(java.lang.String name)
Retrieve a device property if exists.

Parameters:
name - Name of the property to retrieve.
Returns:
Property value or null if not set.

hasProperty

public boolean hasProperty(java.lang.String name)
Test if the device has a property.

Parameters:
name - Name of the property.
Returns:
True if the property is set.


Copyright © 2011. All Rights Reserved.