|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.monnetproject.lemon.URIValue
eu.monnetproject.lemon.URIElement
eu.monnetproject.lemon.impl.LemonElementImpl
eu.monnetproject.lemon.impl.LexiconImpl
public class LexiconImpl
Instantiated via LemonModelImpl
| Field Summary | |
|---|---|
static URI |
LANGUAGE
|
| Fields inherited from class eu.monnetproject.lemon.impl.LemonElementImpl |
|---|
checkRemote, model, RDF_TYPE, referencers |
| Constructor Summary | |
|---|---|
LexiconImpl(String id,
LemonModelImpl model)
|
|
LexiconImpl(URI uri,
LemonModelImpl model)
|
|
| Method Summary | |
|---|---|
ReaderAccepter |
accept(URI pred,
String value,
LinguisticOntology lingOnto,
AccepterFactory factory)
|
void |
accept(URI pred,
String value,
String lang,
LinguisticOntology lingOnto,
AccepterFactory factory)
|
ReaderAccepter |
accept(URI pred,
URI value,
LinguisticOntology lingOnto,
AccepterFactory factory)
|
boolean |
addEntry(LexicalEntry entry)
Add an entry to the lexicon |
boolean |
addPattern(MorphPattern mp)
Add a pattern to this lexicon |
boolean |
addTopic(LexicalTopic topic)
Add a topic to the lexicon |
int |
countEntrys()
Get the number of entries. |
Map<URI,Collection<Object>> |
getElements()
|
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. |
void |
merge(ReaderAccepter accepter,
LinguisticOntology lingOnto,
AccepterFactory factory)
|
boolean |
removeEntry(LexicalEntry entry)
Remove an entry from the lexicon |
boolean |
removePattern(MorphPattern mp)
Remove a pattern from this lexicon |
boolean |
removeTopic(LexicalTopic topic)
Remove a topic from the lexicon |
protected void |
resolveRemote()
|
void |
setLanguage(String language)
Set the language of the lexicon |
| Methods inherited from class eu.monnetproject.lemon.impl.LemonElementImpl |
|---|
accept, acceptProperties, addAnnotation, addPredElem, addPredElemDirect, addProperty, addReference, addStrElem, addStrElemDirect, addType, addTypeDirect, clearAll, defaultAccept, defaultAccept, defaultAccept, defaultMerge, doAccept, follow, follow, getAnnotations, getAnnotations, getModelName, getPredElem, getPredElems, getProperty, getPropertys, getStrElem, getStrElems, getStrText, getTypes, isMultiReferenced, merge, merge, mergeIn, printAsBlankNode, printAsBlankNode, printURI, refers, removeAnnotation, removePredElem, removeProperty, removeReference, removeStrElem, removeType, setStrElem, setStrElemDirect, setStrText, setStrTextDirect, updateAddPredElem, updateReference, visit, write |
| Methods inherited from class eu.monnetproject.lemon.URIElement |
|---|
equals, getID, hashCode, toString |
| Methods inherited from class eu.monnetproject.lemon.URIValue |
|---|
getInfHash, getURI |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| 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 |
| Field Detail |
|---|
public static final URI LANGUAGE
| Constructor Detail |
|---|
public LexiconImpl(URI uri,
LemonModelImpl model)
public LexiconImpl(String id,
LemonModelImpl model)
| Method Detail |
|---|
public String getLanguage()
Lexicon
getLanguage in interface Lexiconpublic void setLanguage(String language)
Lexicon
setLanguage in interface Lexiconpublic boolean hasEntry(LexicalEntry entry)
Lexicon
hasEntry in interface Lexiconpublic int countEntrys()
Lexicon
countEntrys in interface Lexiconpublic Collection<LexicalEntry> getEntrys()
Lexicon
getEntrys in interface Lexiconpublic boolean addEntry(LexicalEntry entry)
Lexicon
addEntry in interface Lexiconpublic boolean removeEntry(LexicalEntry entry)
Lexicon
removeEntry in interface Lexiconpublic Collection<LexicalTopic> getTopics()
Lexicon
getTopics in interface Lexiconpublic boolean addTopic(LexicalTopic topic)
Lexicon
addTopic in interface Lexiconpublic boolean removeTopic(LexicalTopic topic)
Lexicon
removeTopic in interface Lexiconpublic LemonModel getModel()
Lexicon
getModel in interface Lexicon
public ReaderAccepter accept(URI pred,
URI value,
LinguisticOntology lingOnto,
AccepterFactory factory)
accept in interface ReaderAccepter
public ReaderAccepter accept(URI pred,
String value,
LinguisticOntology lingOnto,
AccepterFactory factory)
accept in interface ReaderAccepter
public void accept(URI pred,
String value,
String lang,
LinguisticOntology lingOnto,
AccepterFactory factory)
accept in interface ReaderAccepterpublic Collection<MorphPattern> getPatterns()
Lexicon
getPatterns in interface Lexiconpublic boolean addPattern(MorphPattern mp)
Lexicon
addPattern in interface Lexiconpublic boolean removePattern(MorphPattern mp)
Lexicon
removePattern in interface Lexiconpublic Map<URI,Collection<Object>> getElements()
getElements in interface IntrospectableElementgetElements in class LemonElementImpl
public void merge(ReaderAccepter accepter,
LinguisticOntology lingOnto,
AccepterFactory factory)
merge in interface ReaderAccepterprotected void resolveRemote()
resolveRemote in class LemonElementImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||