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 protected
MatchesLayerStored()
protected
MatchesLayerStored(TextCorpusLayersConnector connector)
protected
MatchesLayerStored(String queryLanguage, String queryString)
-
Method Summary
Modifier and Type Method Description MatchedCorpus
addCorpus(String corpusName, String corpusPID)
MatchedItem
addItem(MatchedCorpus corpusToAddItem, List<Token> itemTokens)
MatchedItem
addItem(MatchedCorpus corpusToAddItem, List<Token> itemTokens, List<String> itemOriginCorpusTokenIds)
MatchedItem
addItem(MatchedCorpus corpusToAddItem, List<Token> itemTokens, List<String> itemOriginCorpusTokenIds, Map<String,String> itemTargets, Map<String,String> itemCategories)
MatchedItem
addItem(MatchedCorpus corpusToAddItem, List<Token> itemTokens, Map<String,String> itemTargets, Map<String,String> itemCategories)
MatchedCorpus
getCorpus(int index)
MatchedItem
getMatchedItem(Token token)
String
getQueryString()
String
getQueryType()
Token[]
getTokens(MatchedItem item)
boolean
isEmpty()
protected void
setLayersConnector(TextCorpusLayersConnector connector)
Should not be used directly by users.int
size()
String
toString()
-
-
-
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:TextCorpusLayerStoredAbstract
Should 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:
setLayersConnector
in classTextCorpusLayerStoredAbstract
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceTextCorpusLayer
-
size
public int size()
- Specified by:
size
in interfaceTextCorpusLayer
-
getQueryType
public String getQueryType()
- Specified by:
getQueryType
in interfaceMatchesLayer
-
getQueryString
public String getQueryString()
- Specified by:
getQueryString
in interfaceMatchesLayer
-
getCorpus
public MatchedCorpus getCorpus(int index)
- Specified by:
getCorpus
in interfaceMatchesLayer
-
getMatchedItem
public MatchedItem getMatchedItem(Token token)
- Specified by:
getMatchedItem
in interfaceMatchesLayer
-
addCorpus
public MatchedCorpus addCorpus(String corpusName, String corpusPID)
- Specified by:
addCorpus
in interfaceMatchesLayer
-
addItem
public MatchedItem addItem(MatchedCorpus corpusToAddItem, List<Token> itemTokens, List<String> itemOriginCorpusTokenIds)
- Specified by:
addItem
in interfaceMatchesLayer
-
addItem
public MatchedItem addItem(MatchedCorpus corpusToAddItem, List<Token> itemTokens)
- Specified by:
addItem
in interfaceMatchesLayer
-
addItem
public MatchedItem addItem(MatchedCorpus corpusToAddItem, List<Token> itemTokens, Map<String,String> itemTargets, Map<String,String> itemCategories)
- Specified by:
addItem
in interfaceMatchesLayer
-
addItem
public MatchedItem addItem(MatchedCorpus corpusToAddItem, List<Token> itemTokens, List<String> itemOriginCorpusTokenIds, Map<String,String> itemTargets, Map<String,String> itemCategories)
- Specified by:
addItem
in interfaceMatchesLayer
-
getTokens
public Token[] getTokens(MatchedItem item)
- Specified by:
getTokens
in interfaceMatchesLayer
-
-