public class RawTextWrapper extends Object implements Serializable
| Constructor and Description |
|---|
RawTextWrapper(org.corpus_tools.salt.common.SDocumentGraph docGraph) |
| Modifier and Type | Method and Description |
|---|---|
String |
getFirstText()
Extracts first text or an empty string, when texts are empty.
|
List<String> |
getTexts()
Returns a list of all texts.
|
boolean |
hasMultipleTexts()
Checks, if multiple texts are stored for one document.
|
boolean |
hasTexts()
Checks, whether at least one text exists
|
void |
setTexts(List<String> texts)
Sets the texts of a document.
|
public RawTextWrapper(org.corpus_tools.salt.common.SDocumentGraph docGraph)
public String getFirstText()
public List<String> getTexts()
public boolean hasMultipleTexts()
public boolean hasTexts()
Copyright © 2021 Corpuslinguistic working group Humboldt University Berlin. All rights reserved.