Package eu.clarin.weblicht.wlfxb.tc.xb
Class OrthographyLayerStored
- java.lang.Object
-
- eu.clarin.weblicht.wlfxb.tc.xb.TextCorpusLayerStoredAbstract
-
- eu.clarin.weblicht.wlfxb.tc.xb.OrthographyLayerStored
-
- All Implemented Interfaces:
OrthographyLayer,TextCorpusLayer
public class OrthographyLayerStored extends TextCorpusLayerStoredAbstract implements OrthographyLayer
- Author:
- Yana Panchenko
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedOrthographyLayerStored()protectedOrthographyLayerStored(TextCorpusLayersConnector connector)
-
Method Summary
Modifier and Type Method Description OrthCorrectionaddCorrection(String correctionString, Token correctedToken, CorrectionOperation operation)OrthCorrectionaddCorrection(String correctionString, List<Token> correctedTokens, CorrectionOperation operation)OrthCorrectiongetCorrection(int index)OrthCorrectiongetCorrection(Token token)Token[]getTokens(OrthCorrection correction)booleanisEmpty()protected voidsetLayersConnector(TextCorpusLayersConnector 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
-
OrthographyLayerStored
protected OrthographyLayerStored()
-
OrthographyLayerStored
protected OrthographyLayerStored(TextCorpusLayersConnector connector)
-
-
Method Detail
-
setLayersConnector
protected void setLayersConnector(TextCorpusLayersConnector connector)
Description copied from class:TextCorpusLayerStoredAbstractShould 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 classTextCorpusLayerStoredAbstract
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceTextCorpusLayer
-
size
public int size()
- Specified by:
sizein interfaceTextCorpusLayer
-
getCorrection
public OrthCorrection getCorrection(int index)
- Specified by:
getCorrectionin interfaceOrthographyLayer
-
getCorrection
public OrthCorrection getCorrection(Token token)
- Specified by:
getCorrectionin interfaceOrthographyLayer
-
getTokens
public Token[] getTokens(OrthCorrection correction)
- Specified by:
getTokensin interfaceOrthographyLayer
-
addCorrection
public OrthCorrection addCorrection(String correctionString, Token correctedToken, CorrectionOperation operation)
- Specified by:
addCorrectionin interfaceOrthographyLayer
-
addCorrection
public OrthCorrection addCorrection(String correctionString, List<Token> correctedTokens, CorrectionOperation operation)
- Specified by:
addCorrectionin interfaceOrthographyLayer
-
-