Package eu.clarin.weblicht.wlfxb.tc.xb
Class TopologicalFieldsLayerStored
- java.lang.Object
-
- eu.clarin.weblicht.wlfxb.tc.xb.TextCorpusLayerStoredAbstract
-
- eu.clarin.weblicht.wlfxb.tc.xb.TopologicalFieldsLayerStored
-
- All Implemented Interfaces:
TextCorpusLayer
,TopologicalFieldsLayer
public class TopologicalFieldsLayerStored extends TextCorpusLayerStoredAbstract implements TopologicalFieldsLayer
- Author:
- Neele Witte
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
TopologicalFieldsLayerStored()
protected
TopologicalFieldsLayerStored(TextCorpusLayersConnector connector)
protected
TopologicalFieldsLayerStored(String tagset)
-
Method Summary
Modifier and Type Method Description TopologicalField
addTag(String tagString, Token tagToken)
TopologicalField
addTag(String tagString, List<Token> tagTokens)
TopologicalField
getTag(int index)
TopologicalField
getTag(Token token)
String
getTagset()
Token[]
getTokens(TopologicalField tag)
boolean
isEmpty()
protected void
setLayersConnector(TextCorpusLayersConnector connector)
Should not be used directly by users.int
size()
String
toString()
-
-
-
Field Detail
-
XML_NAME
public static final String XML_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TopologicalFieldsLayerStored
protected TopologicalFieldsLayerStored()
-
TopologicalFieldsLayerStored
protected TopologicalFieldsLayerStored(String tagset)
-
TopologicalFieldsLayerStored
protected TopologicalFieldsLayerStored(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 classTextCorpusLayerStoredAbstract
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceTextCorpusLayer
-
size
public int size()
- Specified by:
size
in interfaceTextCorpusLayer
-
getTagset
public String getTagset()
- Specified by:
getTagset
in interfaceTopologicalFieldsLayer
-
getTag
public TopologicalField getTag(int index)
- Specified by:
getTag
in interfaceTopologicalFieldsLayer
-
getTag
public TopologicalField getTag(Token token)
- Specified by:
getTag
in interfaceTopologicalFieldsLayer
-
getTokens
public Token[] getTokens(TopologicalField tag)
- Specified by:
getTokens
in interfaceTopologicalFieldsLayer
-
addTag
public TopologicalField addTag(String tagString, Token tagToken)
- Specified by:
addTag
in interfaceTopologicalFieldsLayer
-
addTag
public TopologicalField addTag(String tagString, List<Token> tagTokens)
- Specified by:
addTag
in interfaceTopologicalFieldsLayer
-
-