
it.unitn.disi.smatch.data.trees.Context Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of s-match Show documentation
Show all versions of s-match Show documentation
A version of S-Match semantic matching framework for Open Data
The newest version!
package it.unitn.disi.smatch.data.trees;
/**
* A Context that contains tree data structure.
*
* @author Aliaksandr Autayeu
*/
public class Context extends BaseContext implements IContext, ITreeStructureChangedListener {
public Context() {
super();
}
@Override
public INode createNode() {
return new Node();
}
@Override
public INode createNode(String name) {
return new Node(name);
}
@Override
public INode createRoot(String name) {
INode result = createRoot();
result.getNodeData().setName(name);
return result;
}
@Override
public INode createRoot() {
root = new Node();
root.addTreeStructureChangedListener(this);
return root;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy