eu.clarin.weblicht.wlfxb.tc.xb
Class MatchesLayerStored

java.lang.Object
  extended by eu.clarin.weblicht.wlfxb.tc.xb.TextCorpusLayerStoredAbstract
      extended by eu.clarin.weblicht.wlfxb.tc.xb.MatchesLayerStored
All Implemented Interfaces:
MatchesLayer, TextCorpusLayer

public class MatchesLayerStored
extends TextCorpusLayerStoredAbstract
implements MatchesLayer

Author:
Yana Panchenko

Field Summary
static String XML_NAME
           
 
Constructor Summary
protected MatchesLayerStored()
           
protected MatchesLayerStored(String queryLanguage, String queryString)
           
protected MatchesLayerStored(TextCorpusLayersConnector connector)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

XML_NAME

public static final String XML_NAME
See Also:
Constant Field Values
Constructor Detail

MatchesLayerStored

protected MatchesLayerStored()

MatchesLayerStored

protected MatchesLayerStored(String queryLanguage,
                             String queryString)

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 class TextCorpusLayerStoredAbstract

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface TextCorpusLayer

size

public int size()
Specified by:
size in interface TextCorpusLayer

getQueryType

public String getQueryType()
Specified by:
getQueryType in interface MatchesLayer

getQueryString

public String getQueryString()
Specified by:
getQueryString in interface MatchesLayer

getCorpus

public MatchedCorpus getCorpus(int index)
Specified by:
getCorpus in interface MatchesLayer

getMatchedItem

public MatchedItem getMatchedItem(Token token)
Specified by:
getMatchedItem in interface MatchesLayer

addCorpus

public MatchedCorpus addCorpus(String corpusName,
                               String corpusPID)
Specified by:
addCorpus in interface MatchesLayer

addItem

public MatchedItem addItem(MatchedCorpus corpusToAddItem,
                           List<Token> itemTokens,
                           List<String> itemOriginCorpusTokenIds)
Specified by:
addItem in interface MatchesLayer

addItem

public MatchedItem addItem(MatchedCorpus corpusToAddItem,
                           List<Token> itemTokens)
Specified by:
addItem in interface MatchesLayer

addItem

public MatchedItem addItem(MatchedCorpus corpusToAddItem,
                           List<Token> itemTokens,
                           Map<String,String> itemTargets,
                           Map<String,String> itemCategories)
Specified by:
addItem in interface MatchesLayer

addItem

public MatchedItem addItem(MatchedCorpus corpusToAddItem,
                           List<Token> itemTokens,
                           List<String> itemOriginCorpusTokenIds,
                           Map<String,String> itemTargets,
                           Map<String,String> itemCategories)
Specified by:
addItem in interface MatchesLayer

getTokens

public Token[] getTokens(MatchedItem item)
Specified by:
getTokens in interface MatchesLayer

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013-2014 Department of Linguistics, Tübingen University. All Rights Reserved.