|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.uzh.ifi.attempto.acewiki.core.DefaultWordIndex
public class DefaultWordIndex
This class is the default implementation of a word index.
Constructor Summary | |
---|---|
DefaultWordIndex()
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultWordIndex()
Method Detail |
---|
public void elementAdded(OntologyElement element)
WordIndex
elementAdded
in interface WordIndex
element
- A new ontology element.public void elementRemoved(OntologyElement element)
WordIndex
elementRemoved
in interface WordIndex
element
- The ontology element to be removed.public void elementBeforeChange(OntologyElement element)
WordIndex
elementBeforeChange
in interface WordIndex
element
- The ontology element to be changed.public void elementAfterChange(OntologyElement element)
WordIndex
elementAfterChange
in interface WordIndex
element
- The changed ontology element.public OntologyElement getElement(java.lang.String word)
WordIndex
getElement
in interface WordIndex
word
- The word form.
public java.util.List<OntologyElement> searchForElements(java.lang.String searchText)
WordIndex
searchForElements
in interface WordIndex
searchText
- The text to search for.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |