
it.unitn.disi.smatch.data.trees.IBaseContext 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;
import java.util.Iterator;
import java.util.List;
/**
* Base context interface.
*
* @author Aliaksandr Autayeu
*/
public interface IBaseContext {
/**
* Sets a new root for the context.
*
* @param root a new root
*/
void setRoot(E root);
/**
* Returns the root of the context.
*
* @return the root of the context
*/
E getRoot();
/**
* Returns true if the context has a root node.
*
* @return true if the context has a root node
*/
boolean hasRoot();
/**
* Creates a node.
*
* @return a node.
*/
E createNode();
/**
* Creates a node with a name.
*
* @param name a name for a node
* @return a node.
*/
E createNode(String name);
/**
* Creates a root node.
*
* @return a root node.
*/
E createRoot();
/**
* Creates a root node with a name.
*
* @param name a name for the root
* @return the root node
*/
E createRoot(String name);
/**
* Returns iterator over all context nodes.
*
* @return iterator over all context nodes
*/
Iterator getNodes();
/**
* Returns unmodifiable list of all context nodes.
*
* @return unmodifiable list of all context nodes
*/
List getNodesList();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy