ch.uzh.ifi.attempto.acewiki.aceowl
Class NounChanger

java.lang.Object
  extended by ch.uzh.ifi.attempto.acewiki.aceowl.NounChanger
All Implemented Interfaces:
LexiconChanger

public class NounChanger
extends java.lang.Object
implements LexiconChanger

This class is used to modify or create nouns.

Author:
Tobias Kuhn

Constructor Summary
NounChanger()
           
 
Method Summary
 java.lang.String getDescription()
          Returns the description of the given word type to be shown to the user.
 java.util.List<LexiconDetail> getDetails(OntologyElement el)
          Returns a list of lexical details for the given ontology element.
 void save(OntologyElement el, int wordNumber, java.util.List<java.lang.Object> newValues, Ontology ontology)
          Tries to save a modification on an ontology element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NounChanger

public NounChanger()
Method Detail

getDescription

public java.lang.String getDescription()
Description copied from interface: LexiconChanger
Returns the description of the given word type to be shown to the user.

Specified by:
getDescription in interface LexiconChanger
Returns:
The description.

getDetails

public java.util.List<LexiconDetail> getDetails(OntologyElement el)
Description copied from interface: LexiconChanger
Returns a list of lexical details for the given ontology element.

Specified by:
getDetails in interface LexiconChanger
Parameters:
el - The ontology element.
Returns:
A list of lexical details.

save

public void save(OntologyElement el,
                 int wordNumber,
                 java.util.List<java.lang.Object> newValues,
                 Ontology ontology)
          throws InvalidWordException
Description copied from interface: LexiconChanger
Tries to save a modification on an ontology element. An exception is thrown if the modification is not possible, e.g. because of name conflicts.

Specified by:
save in interface LexiconChanger
Parameters:
el - The ontology element to be modified.
wordNumber - The word number to be used right after a successful modification.
newValues - The new values corresponding to the list of lexical details.
ontology - The ontology.
Throws:
InvalidWordException - If the modification is not possible.


Copyright 2008-2012, AceWiki developers