19 package org.sleuthkit.autopsy.commonfilesearch;
21 import java.util.List;
22 import java.util.logging.Level;
23 import java.util.logging.Logger;
24 import org.openide.nodes.ChildFactory;
25 import org.openide.nodes.Children;
26 import org.openide.nodes.Node;
27 import org.openide.util.NbBundle;
41 super(Children.create(
new InstanceCountNodeFactory(metadataList),
true));
45 "CommonFilesNode.getName.text=Common Files"})
48 return Bundle.CommonFilesNode_getName_text();
53 return visitor.
visit(
this);
63 return getClass().getName();
69 static class InstanceCountNodeFactory
extends ChildFactory<Integer>{
81 this.searchResults = searchResults;
85 protected boolean createKeys(List<Integer> list) {
87 list.addAll(this.searchResults.
getMetadata().keySet());
88 }
catch (EamDbException ex) {
89 LOGGER.log(Level.SEVERE,
"Unable to create keys.", ex);
95 protected Node createNodeForKey(Integer instanceCount){
96 CommonAttributeValueList attributeValues = this.searchResults.getAttributeValuesForInstanceCount(instanceCount);
97 return new InstanceCountNode(instanceCount, attributeValues);
T visit(DataSourcesNode in)
synchronized static Logger getLogger(String name)
Map< Integer, CommonAttributeValueList > getMetadata()