27 lines
600 B
Java
27 lines
600 B
Java
/**
|
|
*
|
|
*/
|
|
package org.gcube.informationsystem.discovery.knowledge;
|
|
|
|
import org.gcube.informationsystem.base.reference.Element;
|
|
import org.gcube.informationsystem.discovery.DiscoveredElementAction;
|
|
import org.gcube.informationsystem.tree.Tree;
|
|
|
|
/**
|
|
* @author Luca Frosini (ISTI - CNR)
|
|
*/
|
|
public class AddElementToTreeAction implements DiscoveredElementAction<Element> {
|
|
|
|
protected Tree<Class<Element>> tree;
|
|
|
|
public AddElementToTreeAction(Tree<Class<Element>> tree) {
|
|
this.tree = tree;
|
|
}
|
|
|
|
@Override
|
|
public void analizeElement(Class<Element> e) throws Exception {
|
|
tree.addNode(e);
|
|
}
|
|
|
|
}
|