String selectedDevices [];
if (options.isDeviceNameSearch()) {
selectedDevices = DeviceRepositoryAccessorManager.
selectHierarchyDevices(fileName,
transformerFactory, new ODOMFactory(), re);
for (int i = 0; i < selectedDevices.length; i++) {
DeviceSearchMatch match =
new DeviceSearchMatch(repositoryFile,
selectedDevices[i]);
searchResult.addMatch(match);
}
}
if (options.isDevicePatternSearch()) {
selectedDevices =
DeviceRepositoryAccessorManager.
selectIdentityDevices(fileName,
transformerFactory, new ODOMFactory(), re);
for (int i = 0; i < selectedDevices.length; i++) {
DeviceSearchMatch match =
new DeviceSearchMatch(repositoryFile,
selectedDevices[i]);
searchResult.addMatch(match);