Package org.omegat.core.search
Class SearchResultEntry
- java.lang.Object
-
- org.omegat.core.search.SearchResultEntry
-
public class SearchResultEntry extends java.lang.Object
Storage for a search result entry.
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Constructor Detail
-
SearchResultEntry
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)
Creates a new search result entry with properties set to given values.- Parameters:
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 project
-
-
Method Detail
-
getEntryNum
public int getEntryNum()
Returns the number of the corresponding entry within a project. The returned value is > 0 if the entry belongs to one of the source files of the project; it is -1 if the entry doesn't belong to any of the source files (the entry is stored in the TM or we are searching in a given directory)
-
getPreamble
public java.lang.String getPreamble()
Returns information about where this entry comes from.
-
setPreamble
public void setPreamble(java.lang.String preamble)
-
getSrcText
public java.lang.String getSrcText()
Returns the source text of the corresponding entry within a project.
-
getTranslation
public java.lang.String getTranslation()
Returns the target text of the corresponding entry within a project.
-
getNote
public java.lang.String getNote()
Returns the note text of the corresponding entry within a project.
-
getProperties
public java.lang.String getProperties()
-
getSrcPrefix
public java.lang.String getSrcPrefix()
-
getSrcMatch
public SearchMatch[] getSrcMatch()
-
getTargetMatch
public SearchMatch[] getTargetMatch()
-
getNoteMatch
public SearchMatch[] getNoteMatch()
-
getPropertiesMatch
public SearchMatch[] getPropertiesMatch()
-
-