org.aksw.jenax.path.domain.TraversalAlias Maven / Gradle / Ivy
The newest version!
package org.aksw.jenax.path.domain;
import java.util.Map;
/**
* Interface for MultiNodes
*/
public interface TraversalAlias {
/** getOrCreate the one single alias for this multi node. Raises an exception if there are already multiple aliases */
default N one() {
return viaAlias(null);
}
/** get or create semantics for each alias */
N viaAlias(String alias);
/**
* List all previously allocated traversals with their aliases
*
* TODO Should the map be a live view?
*
* @return
*/
Map list();
}