eu.monnetproject.lemon.model
Interface Lexicon

All Superinterfaces:
LemonElement, LemonElementOrPredicate
All Known Implementing Classes:
LexiconImpl

public interface Lexicon
extends LemonElement

A mono-lingual lexicon object composed of a set of lexical entries

Author:
John McCrae

Method Summary
 boolean addEntry(LexicalEntry entry)
          Add an entry to the lexicon
 boolean addPattern(MorphPattern pattern)
          Add a pattern to this lexicon
 boolean addTopic(LexicalTopic topic)
          Add a topic to the lexicon
 int countEntrys()
          Get the number of entries.
 Collection<LexicalEntry> getEntrys()
          Get the entries that compose this lexicon
 String getLanguage()
          Get the language of the lexicon
 LemonModel getModel()
          Get the model this lexicon is contained in
 Collection<MorphPattern> getPatterns()
          Get all patterns used by this lexicon
 Collection<LexicalTopic> getTopics()
          Get the topics of the lexicon
 boolean hasEntry(LexicalEntry entry)
          Check if the lexicon contains an entry.
 boolean removeEntry(LexicalEntry entry)
          Remove an entry from the lexicon
 boolean removePattern(MorphPattern pattern)
          Remove a pattern from this lexicon
 boolean removeTopic(LexicalTopic topic)
          Remove a topic from the lexicon
 void setLanguage(String language)
          Set the language of the lexicon
 
Methods inherited from interface eu.monnetproject.lemon.model.LemonElement
addAnnotation, addProperty, addType, getAnnotations, getAnnotations, getID, getProperty, getPropertys, getTypes, removeAnnotation, removeProperty, removeType
 
Methods inherited from interface eu.monnetproject.lemon.model.LemonElementOrPredicate
getURI
 

Method Detail

getLanguage

String getLanguage()
Get the language of the lexicon


setLanguage

void setLanguage(String language)
Set the language of the lexicon


getEntrys

Collection<LexicalEntry> getEntrys()
Get the entries that compose this lexicon


addEntry

boolean addEntry(LexicalEntry entry)
Add an entry to the lexicon


removeEntry

boolean removeEntry(LexicalEntry entry)
Remove an entry from the lexicon


hasEntry

boolean hasEntry(LexicalEntry entry)
Check if the lexicon contains an entry. Significantly faster than call getEntrys().contains(entry)


countEntrys

int countEntrys()
Get the number of entries. Also significantly faster


getTopics

Collection<LexicalTopic> getTopics()
Get the topics of the lexicon


addTopic

boolean addTopic(LexicalTopic topic)
Add a topic to the lexicon


removeTopic

boolean removeTopic(LexicalTopic topic)
Remove a topic from the lexicon


getModel

LemonModel getModel()
Get the model this lexicon is contained in


getPatterns

Collection<MorphPattern> getPatterns()
Get all patterns used by this lexicon


addPattern

boolean addPattern(MorphPattern pattern)
Add a pattern to this lexicon


removePattern

boolean removePattern(MorphPattern pattern)
Remove a pattern from this lexicon



Copyright © 2012. All Rights Reserved.