Class SourceTextEntry


  • public class SourceTextEntry
    extends java.lang.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 Detail

      • SourceTextEntry

        public SourceTextEntry​(EntryKey key,
                               int entryNum,
                               java.lang.String[] props,
                               java.lang.String sourceTranslation,
                               java.util.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,
                               java.lang.String[] props,
                               java.lang.String sourceTranslation,
                               java.util.List<ProtectedPart> protectedParts)
    • Method Detail

      • getSrcText

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

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

        public java.lang.String[] getRawProperties()
      • entryNum

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

        public int getNumberOfDuplicates()
      • getSourceTranslation

        public java.lang.String getSourceTranslation()
      • isSourceTranslationFuzzy

        public boolean isSourceTranslationFuzzy()
      • setSourceTranslationFuzzy

        public void setSourceTranslationFuzzy​(boolean sourceTranslationFuzzy)
      • isParagraphStart

        public boolean isParagraphStart()