Package eu.clarin.weblicht.wlfxb.lx.xb
Class FrequenciesLayerStored
- java.lang.Object
-
- eu.clarin.weblicht.wlfxb.lx.xb.LexiconLayerStoredAbstract
-
- eu.clarin.weblicht.wlfxb.lx.xb.FrequenciesLayerStored
-
- All Implemented Interfaces:
FrequenciesLayer,LexiconLayer
public class FrequenciesLayerStored extends LexiconLayerStoredAbstract implements FrequenciesLayer
- Author:
- Yana Panchenko
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedFrequenciesLayerStored()protectedFrequenciesLayerStored(FrequencyType freqType)protectedFrequenciesLayerStored(LexiconLayersConnector connector)
-
Method Summary
Modifier and Type Method Description FrequencyaddFrequency(Entry entry, double frequency)EntrygetEntry(Frequency freq)FrequencygetFrequency(int index)FrequencygetFrequency(Entry entry)FrequencyTypegetType()booleanisEmpty()protected voidsetLayersConnector(LexiconLayersConnector connector)Should not be used directly by users.intsize()StringtoString()
-
-
-
Field Detail
-
XML_NAME
public static final String XML_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FrequenciesLayerStored
protected FrequenciesLayerStored()
-
FrequenciesLayerStored
protected FrequenciesLayerStored(FrequencyType freqType)
-
FrequenciesLayerStored
protected FrequenciesLayerStored(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.- Specified by:
setLayersConnectorin classLexiconLayerStoredAbstract
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceLexiconLayer
-
size
public int size()
- Specified by:
sizein interfaceLexiconLayer
-
getType
public FrequencyType getType()
- Specified by:
getTypein interfaceFrequenciesLayer
-
getFrequency
public Frequency getFrequency(int index)
- Specified by:
getFrequencyin interfaceFrequenciesLayer
-
getFrequency
public Frequency getFrequency(Entry entry)
- Specified by:
getFrequencyin interfaceFrequenciesLayer
-
getEntry
public Entry getEntry(Frequency freq)
- Specified by:
getEntryin interfaceFrequenciesLayer
-
addFrequency
public Frequency addFrequency(Entry entry, double frequency)
- Specified by:
addFrequencyin interfaceFrequenciesLayer
-
-