Class SourceTextEntry

java.lang.Object
org.omegat.core.data.SourceTextEntry

public class SourceTextEntry extends Object
Source text entry represents an individual segment for translation pulled directly from the input files. There can be many SourceTextEntries having identical source language strings
  • Constructor Details

    • SourceTextEntry

      public SourceTextEntry(EntryKey key, int entryNum, String[] props, String sourceTranslation, List<ProtectedPart> protectedParts, boolean paragraphStart)
      Creates a new source text entry.
      Parameters:
      key - entry key
      entryNum - the number of this entry in a project
      props - optional entry metadata
      sourceTranslation - translation from source file
    • SourceTextEntry

      public SourceTextEntry(EntryKey key, int entryNum, @Nullable @Nullable String[] props, @Nullable @Nullable String sourceTranslation, List<ProtectedPart> protectedParts)
  • Method Details

    • getKey

      public EntryKey getKey()
    • getSrcText

      public String getSrcText()
      Returns the source text (shortcut for getStrEntry().getSrcText()).
    • getComment

      public String getComment()
      Returns comment of entry if exist in source document.
    • getRawProperties

      public String[] getRawProperties()
    • entryNum

      public int entryNum()
      Returns the number of this entry in a project.
    • getDuplicate

      public SourceTextEntry.DUPLICATE getDuplicate()
      If entry with the same source already exist in project.
    • getNumberOfDuplicates

      public int getNumberOfDuplicates()
    • getDuplicates

      public List<SourceTextEntry> getDuplicates()
    • getSourceTranslation

      public String getSourceTranslation()
    • isSourceTranslationFuzzy

      public boolean isSourceTranslationFuzzy()
    • setSourceTranslationFuzzy

      public void setSourceTranslationFuzzy(boolean sourceTranslationFuzzy)
    • getProtectedParts

      public ProtectedPart[] getProtectedParts()
    • isParagraphStart

      public boolean isParagraphStart()