Package eu.clarin.weblicht.wlfxb.lx.xb
Class SynonymsLayerStored
- java.lang.Object
-
- eu.clarin.weblicht.wlfxb.lx.xb.LexiconLayerStoredAbstract
-
- eu.clarin.weblicht.wlfxb.lx.xb.TermsContainerStored
-
- eu.clarin.weblicht.wlfxb.lx.xb.SynonymsLayerStored
-
- All Implemented Interfaces:
LexiconLayer,SynonymsLayer,TermsContainer
public class SynonymsLayerStored extends TermsContainerStored implements SynonymsLayer
- Author:
- Yana Panchenko
-
-
Field Summary
-
Fields inherited from class eu.clarin.weblicht.wlfxb.lx.xb.TermsContainerStored
connector
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSynonymsLayerStored()protectedSynonymsLayerStored(LexiconLayersConnector connector)
-
Method Summary
Modifier and Type Method Description SynonymaddSynonym(Sig sig, List<Term> terms)SynonymaddSynonym(List<Term> terms)Entry[]getEntries(Synonym synonym)SynonymgetSynonym(int index)Synonym[]getSynonyms(Entry entry)String[]getTermsAsStrings(Synonym synonym, boolean includeAnnotatedTerm)booleanisEmpty()protected voidsetLayersConnector(LexiconLayersConnector connector)Should not be used directly by users.intsize()StringtoString()-
Methods inherited from class eu.clarin.weblicht.wlfxb.lx.xb.TermsContainerStored
createSig, createTerm, createTerm, getTermsAsStrings
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface eu.clarin.weblicht.wlfxb.lx.api.TermsContainer
createSig, createTerm, createTerm, getTermsAsStrings
-
-
-
-
Field Detail
-
XML_NAME
public static final String XML_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SynonymsLayerStored
protected SynonymsLayerStored()
-
SynonymsLayerStored
protected SynonymsLayerStored(LexiconLayersConnector connector)
-
-
Method Detail
-
setLayersConnector
protected void setLayersConnector(LexiconLayersConnector connector)
Description copied from class:LexiconLayerStoredAbstractShould not be used directly by users. Should be extended by all implementations of TextCorpusLayers, as they might depend on other layers and therefore be able to get referenced/referencing information.- Overrides:
setLayersConnectorin classTermsContainerStored
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceLexiconLayer
-
size
public int size()
- Specified by:
sizein interfaceLexiconLayer
-
getSynonym
public Synonym getSynonym(int index)
- Specified by:
getSynonymin interfaceSynonymsLayer
-
getSynonyms
public Synonym[] getSynonyms(Entry entry)
- Specified by:
getSynonymsin interfaceSynonymsLayer
-
getEntries
public Entry[] getEntries(Synonym synonym)
- Specified by:
getEntriesin interfaceSynonymsLayer
-
getTermsAsStrings
public String[] getTermsAsStrings(Synonym synonym, boolean includeAnnotatedTerm)
- Specified by:
getTermsAsStringsin interfaceSynonymsLayer
-
addSynonym
public Synonym addSynonym(List<Term> terms)
- Specified by:
addSynonymin interfaceSynonymsLayer
-
addSynonym
public Synonym addSynonym(Sig sig, List<Term> terms)
- Specified by:
addSynonymin interfaceSynonymsLayer
-
-