Package eu.clarin.weblicht.wlfxb.tc.xb
Class MatchesLayerStored
- java.lang.Object
-
- eu.clarin.weblicht.wlfxb.tc.xb.TextCorpusLayerStoredAbstract
-
- eu.clarin.weblicht.wlfxb.tc.xb.MatchesLayerStored
-
- All Implemented Interfaces:
MatchesLayer,TextCorpusLayer
public class MatchesLayerStored extends TextCorpusLayerStoredAbstract implements MatchesLayer
- Author:
- Yana Panchenko
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMatchesLayerStored()protectedMatchesLayerStored(TextCorpusLayersConnector connector)protectedMatchesLayerStored(String queryLanguage, String queryString)
-
Method Summary
Modifier and Type Method Description MatchedCorpusaddCorpus(String corpusName, String corpusPID)MatchedItemaddItem(MatchedCorpus corpusToAddItem, List<Token> itemTokens)MatchedItemaddItem(MatchedCorpus corpusToAddItem, List<Token> itemTokens, List<String> itemOriginCorpusTokenIds)MatchedItemaddItem(MatchedCorpus corpusToAddItem, List<Token> itemTokens, List<String> itemOriginCorpusTokenIds, Map<String,String> itemTargets, Map<String,String> itemCategories)MatchedItemaddItem(MatchedCorpus corpusToAddItem, List<Token> itemTokens, Map<String,String> itemTargets, Map<String,String> itemCategories)MatchedCorpusgetCorpus(int index)MatchedItemgetMatchedItem(Token token)StringgetQueryString()StringgetQueryType()Token[]getTokens(MatchedItem item)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
-
MatchesLayerStored
protected MatchesLayerStored()
-
MatchesLayerStored
protected MatchesLayerStored(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
-
getQueryType
public String getQueryType()
- Specified by:
getQueryTypein interfaceMatchesLayer
-
getQueryString
public String getQueryString()
- Specified by:
getQueryStringin interfaceMatchesLayer
-
getCorpus
public MatchedCorpus getCorpus(int index)
- Specified by:
getCorpusin interfaceMatchesLayer
-
getMatchedItem
public MatchedItem getMatchedItem(Token token)
- Specified by:
getMatchedItemin interfaceMatchesLayer
-
addCorpus
public MatchedCorpus addCorpus(String corpusName, String corpusPID)
- Specified by:
addCorpusin interfaceMatchesLayer
-
addItem
public MatchedItem addItem(MatchedCorpus corpusToAddItem, List<Token> itemTokens, List<String> itemOriginCorpusTokenIds)
- Specified by:
addItemin interfaceMatchesLayer
-
addItem
public MatchedItem addItem(MatchedCorpus corpusToAddItem, List<Token> itemTokens)
- Specified by:
addItemin interfaceMatchesLayer
-
addItem
public MatchedItem addItem(MatchedCorpus corpusToAddItem, List<Token> itemTokens, Map<String,String> itemTargets, Map<String,String> itemCategories)
- Specified by:
addItemin interfaceMatchesLayer
-
addItem
public MatchedItem addItem(MatchedCorpus corpusToAddItem, List<Token> itemTokens, List<String> itemOriginCorpusTokenIds, Map<String,String> itemTargets, Map<String,String> itemCategories)
- Specified by:
addItemin interfaceMatchesLayer
-
getTokens
public Token[] getTokens(MatchedItem item)
- Specified by:
getTokensin interfaceMatchesLayer
-
-