org.jscience.linguistics
Class Lexicon

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap
          extended by org.jscience.linguistics.Lexicon
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map

public class Lexicon
extends java.util.HashMap

The Lexicon class provides a dictionnary of lexemes and corresponding definition.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
Lexicon()
          Creates a new Lexicon object.
 
Method Summary
 Language getLanguage()
          DOCUMENT ME!
 java.lang.Object put(Lexeme lexeme, java.lang.String definition)
          DOCUMENT ME!
 java.lang.Object put(java.lang.Object key, java.lang.Object value)
          DOCUMENT ME!
 void putAll(java.util.Map map)
          DOCUMENT ME!
 java.lang.Object remove(Lexeme lexeme)
          DOCUMENT ME!
 java.lang.Object remove(java.lang.Object key)
          DOCUMENT ME!
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

Lexicon

public Lexicon()
Creates a new Lexicon object.

Method Detail

put

public java.lang.Object put(java.lang.Object key,
                            java.lang.Object value)
DOCUMENT ME!

Specified by:
put in interface java.util.Map
Overrides:
put in class java.util.HashMap
Parameters:
key - DOCUMENT ME!
value - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

put

public java.lang.Object put(Lexeme lexeme,
                            java.lang.String definition)
DOCUMENT ME!

Parameters:
lexeme - DOCUMENT ME!
definition - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

putAll

public void putAll(java.util.Map map)
DOCUMENT ME!

Specified by:
putAll in interface java.util.Map
Overrides:
putAll in class java.util.HashMap
Parameters:
map - DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

remove

public java.lang.Object remove(java.lang.Object key)
DOCUMENT ME!

Specified by:
remove in interface java.util.Map
Overrides:
remove in class java.util.HashMap
Parameters:
key - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

remove

public java.lang.Object remove(Lexeme lexeme)
DOCUMENT ME!

Parameters:
lexeme - DOCUMENT ME!
Returns:
DOCUMENT ME!

getLanguage

public Language getLanguage()
DOCUMENT ME!

Returns:
DOCUMENT ME!