public class DocumentHelper extends Object
Document
instances.| Constructor and Description |
|---|
DocumentHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
replaceText(org.aksw.gerbil.transfer.nif.Document document,
int start,
int length,
String replacement)
This method replaces the part with the given start position and the given
length inside the text of the given document with the given replacement.
|
static org.aksw.gerbil.transfer.nif.MeaningSpan |
searchFirstOccurrence(String uri,
org.aksw.gerbil.transfer.nif.Document document)
Searches the
MeaningSpan that a) occurs first inside the document
and b) has the given URI as meaning. |
public static org.aksw.gerbil.transfer.nif.MeaningSpan searchFirstOccurrence(String uri, org.aksw.gerbil.transfer.nif.Document document)
MeaningSpan that a) occurs first inside the document
and b) has the given URI as meaning.uri - the meaning the searched marking should havedocument - the document in which the marking should be searchedpublic static void replaceText(org.aksw.gerbil.transfer.nif.Document document,
int start,
int length,
String replacement)
document - the document that should be updatedstart - the start position of the part that should be replacedlength - the length of the part that should be replacedreplacement - the replacement that should be inserted at the position of the
deleted partCopyright © 2020. All rights reserved.