Class SearchResultEntry


  • public class SearchResultEntry
    extends java.lang.Object
    Storage for a search result entry.
    • 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 project
        preamble - Information about where this entry comes from
        src - Source text of the corresponding entry within a project
        target - Target text of the corresponding entry within a project
        note - 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()
      • getTargetMatch

        public SearchMatch[] getTargetMatch()
      • getPropertiesMatch

        public SearchMatch[] getPropertiesMatch()