Package org.omegat.core.data
Class SourceTextEntry
java.lang.Object
org.omegat.core.data.SourceTextEntry
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
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSourceTextEntry(EntryKey key, int entryNum, @Nullable String[] props, @Nullable String sourceTranslation, List<ProtectedPart> protectedParts) SourceTextEntry(EntryKey key, int entryNum, String[] props, String sourceTranslation, List<ProtectedPart> protectedParts, boolean paragraphStart) Creates a new source text entry. -
Method Summary
Modifier and TypeMethodDescriptionintentryNum()Returns the number of this entry in a project.Returns comment of entry if exist in source document.If entry with the same source already exist in project.getKey()intString[]Returns the source text (shortcut forgetStrEntry().getSrcText()).booleanbooleanvoidsetSourceTranslationFuzzy(boolean sourceTranslationFuzzy)
-
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 keyentryNum- the number of this entry in a projectprops- optional entry metadatasourceTranslation- 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
-
getSrcText
Returns the source text (shortcut forgetStrEntry().getSrcText()). -
getComment
Returns comment of entry if exist in source document. -
getRawProperties
-
entryNum
public int entryNum()Returns the number of this entry in a project. -
getDuplicate
If entry with the same source already exist in project. -
getNumberOfDuplicates
public int getNumberOfDuplicates() -
getDuplicates
-
getSourceTranslation
-
isSourceTranslationFuzzy
public boolean isSourceTranslationFuzzy() -
setSourceTranslationFuzzy
public void setSourceTranslationFuzzy(boolean sourceTranslationFuzzy) -
getProtectedParts
-
isParagraphStart
public boolean isParagraphStart()
-