ch.uzh.ifi.attempto.acewiki.core
Interface WordIndex

All Known Implementing Classes:
DefaultWordIndex

public interface WordIndex

This interface represents an index for the word forms of ontology elements.

Author:
Tobias Kuhn

Method Summary
 void elementAdded(OntologyElement element)
          This method is called by the ontology object when a new ontology element is added.
 void elementAfterChange(OntologyElement element)
          This method is called just after the word forms of an ontology element have been changed.
 void elementBeforeChange(OntologyElement element)
          This method is called just before the word forms of an ontology element are changed.
 void elementRemoved(OntologyElement element)
          This method is called by the ontology object when an ontology element is removed.
 OntologyElement getElement(java.lang.String word)
          This method should return the ontology element with the given word form, or null if there is no such element.
 java.util.List<OntologyElement> searchForElements(java.lang.String searchText)
          This method should return a list of ontology elements that match the given search text.
 

Method Detail

elementAdded

void elementAdded(OntologyElement element)
This method is called by the ontology object when a new ontology element is added.

Parameters:
element - A new ontology element.

elementRemoved

void elementRemoved(OntologyElement element)
This method is called by the ontology object when an ontology element is removed.

Parameters:
element - The ontology element to be removed.

elementBeforeChange

void elementBeforeChange(OntologyElement element)
This method is called just before the word forms of an ontology element are changed.

Parameters:
element - The ontology element to be changed.

elementAfterChange

void elementAfterChange(OntologyElement element)
This method is called just after the word forms of an ontology element have been changed.

Parameters:
element - The changed ontology element.

getElement

OntologyElement getElement(java.lang.String word)
This method should return the ontology element with the given word form, or null if there is no such element.

Parameters:
word - The word form.
Returns:
The ontology element or null.

searchForElements

java.util.List<OntologyElement> searchForElements(java.lang.String searchText)
This method should return a list of ontology elements that match the given search text.

Parameters:
searchText - The text to search for.
Returns:
The list of ontology elements.


Copyright 2008-2012, AceWiki developers