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

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

public class SentencesLayerStored
extends TextCorpusLayerStoredAbstract
implements SentencesLayer

Author:
Yana Panchenko

Field Summary
protected  Boolean charOffsets
           
protected  List<SentenceStored> sentences
           
static String XML_NAME
           
 
Constructor Summary
protected SentencesLayerStored()
           
protected SentencesLayerStored(Boolean hasCharOffsets)
           
protected SentencesLayerStored(TextCorpusLayersConnector connector)
           
 
Method Summary
 Sentence addSentence(List<Token> sentenceTokens)
           
 Sentence addSentence(List<Token> sentenceTokens, Integer start, Integer end)
           
 Sentence addSentence(List<Token> sentenceTokens, int start, int end)
           
protected  boolean beforeMarshal(Marshaller m)
           
 Sentence getSentence(int index)
           
 Sentence getSentence(Token token)
           
 Token[] getTokens(Sentence sentence)
           
 boolean hasCharOffsets()
           
 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

sentences

protected List<SentenceStored> sentences

charOffsets

protected Boolean charOffsets
Constructor Detail

SentencesLayerStored

protected SentencesLayerStored()

SentencesLayerStored

protected SentencesLayerStored(Boolean hasCharOffsets)

SentencesLayerStored

protected SentencesLayerStored(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

hasCharOffsets

public boolean hasCharOffsets()
Specified by:
hasCharOffsets in interface SentencesLayer

getSentence

public Sentence getSentence(int index)
Specified by:
getSentence in interface SentencesLayer

getSentence

public Sentence getSentence(Token token)
Specified by:
getSentence in interface SentencesLayer

getTokens

public Token[] getTokens(Sentence sentence)
Specified by:
getTokens in interface SentencesLayer

addSentence

public Sentence addSentence(List<Token> sentenceTokens)
Specified by:
addSentence in interface SentencesLayer

addSentence

public Sentence addSentence(List<Token> sentenceTokens,
                            int start,
                            int end)
Specified by:
addSentence in interface SentencesLayer

addSentence

public Sentence addSentence(List<Token> sentenceTokens,
                            Integer start,
                            Integer end)

beforeMarshal

protected boolean beforeMarshal(Marshaller m)

toString

public String toString()
Overrides:
toString in class Object


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