modnlp.tec.client
public class ConcordanceObject extends java.lang.Object
ContextClient
Modifier and Type | Field and Description |
---|---|
long |
bytepos |
java.lang.String |
concordance |
java.lang.String |
filename |
int |
filepos |
int |
index |
static ConcordanceObject |
RENDERER_PROTOTYPE |
static char[] |
SEPTKARR |
static java.lang.String |
SEPTOKEN |
java.lang.String |
sfilename |
static java.util.regex.Pattern |
WORD_PATTERN |
static java.util.regex.Pattern |
WORDPUNCT_PATTERN |
Constructor and Description |
---|
ConcordanceObject(java.lang.String concLine,
ConcordanceVector cv) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
adjustOffSet(int maxs,
int size) |
java.lang.String |
csvConcLine() |
int |
getFilenameLength() |
java.lang.String |
getKeyword() |
java.lang.String |
getKeywordAndRightContext() |
java.lang.String |
getLeftContext() |
java.lang.String[] |
getLeftSortArray(boolean punctuation) |
static ConcordanceObject |
getRendererPrototype() |
java.lang.String[] |
getRightSortArray(boolean punctuation) |
int |
getSortContextHorizon() |
java.lang.String |
htmlConcLine(int lfn_size) |
HighlightString |
indexOfKeyword() |
HighlightString |
indexOfSortContext() |
HighlightString |
indexOfSortContextLeft(int srtctx)
Return the index of context horizon ctx
to the left of the keyword on the concordance line.
|
HighlightString |
indexOfSortContextRight(int srtctx)
Return the index of context horizon ctx
to the right of the keyword on the concordance line.
|
boolean |
isSeparatorChar(char c) |
javax.swing.JLabel |
labelConcLine(int lfn_size) |
void |
setIndex(int i) |
void |
setLanguage(int l) |
java.lang.String |
textConcLine() |
java.lang.String |
textConcordance() |
java.lang.String |
textFilename(int lfn_size) |
public static char[] SEPTKARR
public static final java.lang.String SEPTOKEN
public static final java.util.regex.Pattern WORD_PATTERN
public static final java.util.regex.Pattern WORDPUNCT_PATTERN
public static final ConcordanceObject RENDERER_PROTOTYPE
public java.lang.String concordance
public java.lang.String filename
public java.lang.String sfilename
public int filepos
public int index
public long bytepos
public ConcordanceObject(java.lang.String concLine, ConcordanceVector cv)
public static ConcordanceObject getRendererPrototype()
public javax.swing.JLabel labelConcLine(int lfn_size)
public void setLanguage(int l)
public void setIndex(int i)
public java.lang.String textConcLine()
public java.lang.String htmlConcLine(int lfn_size)
public java.lang.String csvConcLine()
public int getFilenameLength()
public java.lang.String textFilename(int lfn_size)
public java.lang.String textConcordance()
public java.lang.String getLeftContext()
public final java.lang.String getKeywordAndRightContext()
public final java.lang.String getKeyword()
public final int getSortContextHorizon()
public final HighlightString indexOfSortContext()
public HighlightString indexOfSortContextLeft(int srtctx)
public HighlightString indexOfSortContextRight(int srtctx)
public HighlightString indexOfKeyword()
public java.lang.String[] getLeftSortArray(boolean punctuation)
public java.lang.String[] getRightSortArray(boolean punctuation)
public boolean isSeparatorChar(char c)
public static java.lang.String adjustOffSet(int maxs, int size)