eu.clarin.weblicht.wlfxb.tc.xb
Class TextStructureLayerStored
java.lang.Object
eu.clarin.weblicht.wlfxb.tc.xb.TextCorpusLayerStoredAbstract
eu.clarin.weblicht.wlfxb.tc.xb.TextStructureLayerStored
- All Implemented Interfaces:
- TextCorpusLayer, TextStructureLayer
public class TextStructureLayerStored
- extends TextCorpusLayerStoredAbstract
- implements TextStructureLayer
- Author:
- Yana Panchenko
|
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()
|
XML_NAME
public static final String XML_NAME
- See Also:
- Constant Field Values
TextStructureLayerStored
protected TextStructureLayerStored()
TextStructureLayerStored
protected TextStructureLayerStored(TextCorpusLayersConnector connector)
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 Department of Linguistics, Tübingen University. All Rights Reserved.