public class SearchResultEntry
extends java.lang.Object
Constructor and Description |
---|
SearchResultEntry(int num,
java.lang.String preamble,
java.lang.String srcPrefix,
java.lang.String src,
java.lang.String target,
java.lang.String note,
java.lang.String properties,
SearchMatch[] srcMatch,
SearchMatch[] targetMatch,
SearchMatch[] noteMatch,
SearchMatch[] propertiesMatch)
Creates a new search result entry with properties set to given values.
|
Modifier and Type | Method and Description |
---|---|
int |
getEntryNum()
Returns the number of the corresponding entry within a project.
|
java.lang.String |
getNote()
Returns the note text of the corresponding entry within a project.
|
SearchMatch[] |
getNoteMatch() |
java.lang.String |
getPreamble()
Returns information about where this entry comes from.
|
java.lang.String |
getProperties() |
SearchMatch[] |
getPropertiesMatch() |
SearchMatch[] |
getSrcMatch() |
java.lang.String |
getSrcPrefix() |
java.lang.String |
getSrcText()
Returns the source text of the corresponding entry within a project.
|
SearchMatch[] |
getTargetMatch() |
java.lang.String |
getTranslation()
Returns the target text of the corresponding entry within a project.
|
void |
setPreamble(java.lang.String preamble) |
public SearchResultEntry(int num, java.lang.String preamble, java.lang.String srcPrefix, java.lang.String src, java.lang.String target, java.lang.String note, java.lang.String properties, SearchMatch[] srcMatch, SearchMatch[] targetMatch, SearchMatch[] noteMatch, SearchMatch[] propertiesMatch)
num
- Number of the corresponding entry within a projectpreamble
- Information about where this entry comes fromsrc
- Source text of the corresponding entry within a projecttarget
- Target text of the corresponding entry within a projectnote
- Note text of the corresponding entry within a projectpublic int getEntryNum()
public java.lang.String getPreamble()
public void setPreamble(java.lang.String preamble)
public java.lang.String getSrcText()
public java.lang.String getTranslation()
public java.lang.String getNote()
public java.lang.String getProperties()
public java.lang.String getSrcPrefix()
public SearchMatch[] getSrcMatch()
public SearchMatch[] getTargetMatch()
public SearchMatch[] getNoteMatch()
public SearchMatch[] getPropertiesMatch()