It's also possible to iterate over all the features offered by a device or a subtree of this. To see how this is done refer to the description of the class mvIMPACT.acquire.Component.
To access e.g. the device information related features, the locator instance must be initialised in a different way:
Device pDev = getTheDevicePointerFromSomewhere();
DeviceComponentLocator locator = new DeviceComponentLocator(pDev, dltInfo, "DeviceInformation");
PropertyS deviceVersion = new PropertyS();
locator.bindComponent( deviceVersion, "DeviceVersion" );
if( deviceVersion.isValid() )
{
System.out.println( String.format( "%s: %s", deviceVersion.name(), deviceVersion.read() ) );
}
else
{
}