/**
* Aggregate all properties of all registered inspectors.
*/
public SourceProperty[] getSourceProperties(Source source) throws SourceException {
final Set result = new HashSet();
SourceInspector inspector;
SourceProperty[] properties;
final Iterator inspectors = m_inspectors.iterator();
while (inspectors.hasNext()) {
inspector = (SourceInspector) inspectors.next();
properties = inspector.getSourceProperties(source);
if (properties != null) {
result.addAll(Arrays.asList(properties));
}
}
return (SourceProperty[]) result.toArray(new SourceProperty[result.size()]);