eu.clarin.weblicht.wlfxb.lx.xb
Class RelationsLayerStored

java.lang.Object
  extended by eu.clarin.weblicht.wlfxb.lx.xb.LexiconLayerStoredAbstract
      extended by eu.clarin.weblicht.wlfxb.lx.xb.RelationsLayerStored
All Implemented Interfaces:
LexiconLayer, RelationsLayer

public class RelationsLayerStored
extends LexiconLayerStoredAbstract
implements RelationsLayer

Author:
Yana Panchenko

Field Summary
static String XML_NAME
           
 
Constructor Summary
protected RelationsLayerStored()
           
protected RelationsLayerStored(LexiconLayersConnector connector)
           
 
Method Summary
 Relation addRelation(String type, String function, Integer frequency, List<Term> terms)
           
 Relation addRelation(String type, String function, Integer frequency, Sig sig, List<Term> terms)
           
 Sig createSig(String measure, double value)
           
 Term createTerm(Lemma lemma)
           
 Term createTerm(String word)
           
 Lemma[] getLemmas(Relation rel)
           
 Relation getRelation(int index)
           
 Relation[] getRelations(Lemma lemma)
           
 String[] getWords(Relation rel)
           
 boolean isEmpty()
           
protected  void setLayersConnector(LexiconLayersConnector 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

RelationsLayerStored

protected RelationsLayerStored()

RelationsLayerStored

protected RelationsLayerStored(LexiconLayersConnector connector)
Method Detail

setLayersConnector

protected void setLayersConnector(LexiconLayersConnector connector)
Description copied from class: LexiconLayerStoredAbstract
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 LexiconLayerStoredAbstract

isEmpty

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

size

public int size()
Specified by:
size in interface LexiconLayer
Specified by:
size in interface RelationsLayer

getRelation

public Relation getRelation(int index)
Specified by:
getRelation in interface RelationsLayer

getRelations

public Relation[] getRelations(Lemma lemma)
Specified by:
getRelations in interface RelationsLayer

getLemmas

public Lemma[] getLemmas(Relation rel)
Specified by:
getLemmas in interface RelationsLayer

getWords

public String[] getWords(Relation rel)
Specified by:
getWords in interface RelationsLayer

addRelation

public Relation addRelation(String type,
                            String function,
                            Integer frequency,
                            List<Term> terms)
Specified by:
addRelation in interface RelationsLayer

addRelation

public Relation addRelation(String type,
                            String function,
                            Integer frequency,
                            Sig sig,
                            List<Term> terms)
Specified by:
addRelation in interface RelationsLayer

createTerm

public Term createTerm(Lemma lemma)
Specified by:
createTerm in interface RelationsLayer

createTerm

public Term createTerm(String word)
Specified by:
createTerm in interface RelationsLayer

createSig

public Sig createSig(String measure,
                     double value)
Specified by:
createSig in interface RelationsLayer

toString

public String toString()
Overrides:
toString in class Object


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