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

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

public class TextStructureLayerStored
extends TextCorpusLayerStoredAbstract
implements TextStructureLayer

Author:
Yana Panchenko

Field Summary
static String XML_NAME
           
 
Constructor Summary
protected TextStructureLayerStored()
           
protected TextStructureLayerStored(TextCorpusLayersConnector connector)
           
 
Method Summary
 TextSpan addSpan(TextSpan parentSpan, Token spanStart, Token spanEnd, String type)
           
 TextSpan addSpan(TextSpan parentSpan, Token spanStart, Token spanEnd, String type, String value)
           
 TextSpan addSpan(Token spanStart, Token spanEnd, String type)
           
 TextSpan addSpan(Token spanStart, Token spanEnd, String type, String value)
           
 TextSpan getSpan(int index)
           
 TextSpan getSpan(Token token, String type)
           
 List<TextSpan> getSpans(String type)
           
 List<TextSpan> getSpans(Token token)
           
 Token[] getTokens(TextSpan span)
           
 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

TextStructureLayerStored

protected TextStructureLayerStored()

TextStructureLayerStored

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

getSpan

public TextSpan getSpan(int index)
Specified by:
getSpan in interface TextStructureLayer

getSpans

public List<TextSpan> getSpans(Token token)
Specified by:
getSpans in interface TextStructureLayer

getSpan

public TextSpan getSpan(Token token,
                        String type)
Specified by:
getSpan in interface TextStructureLayer

getSpans

public List<TextSpan> getSpans(String type)
Specified by:
getSpans in interface TextStructureLayer

getTokens

public Token[] getTokens(TextSpan span)
Specified by:
getTokens in interface TextStructureLayer

addSpan

public TextSpan addSpan(Token spanStart,
                        Token spanEnd,
                        String type)
Specified by:
addSpan in interface TextStructureLayer

addSpan

public TextSpan addSpan(Token spanStart,
                        Token spanEnd,
                        String type,
                        String value)
Specified by:
addSpan in interface TextStructureLayer

addSpan

public TextSpan addSpan(TextSpan parentSpan,
                        Token spanStart,
                        Token spanEnd,
                        String type)
                 throws WLFormatException
Specified by:
addSpan in interface TextStructureLayer
Throws:
WLFormatException

addSpan

public TextSpan addSpan(TextSpan parentSpan,
                        Token spanStart,
                        Token spanEnd,
                        String type,
                        String value)
                 throws WLFormatException
Specified by:
addSpan in interface TextStructureLayer
Throws:
WLFormatException

toString

public String toString()
Overrides:
toString in class Object


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