Package org.omegat.core.data
Class SourceTextEntry
- java.lang.Object
-
- org.omegat.core.data.SourceTextEntry
-
public class SourceTextEntry extends java.lang.ObjectSource 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 Modifier and Type Class Description static classSourceTextEntry.DUPLICATE
-
Constructor Summary
Constructors Constructor Description SourceTextEntry(EntryKey key, int entryNum, java.lang.String[] props, java.lang.String sourceTranslation, java.util.List<ProtectedPart> protectedParts)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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intentryNum()Returns the number of this entry in a project.java.lang.StringgetComment()Returns comment of entry if exist in source document.SourceTextEntry.DUPLICATEgetDuplicate()If entry with the same source already exist in project.java.util.List<SourceTextEntry>getDuplicates()EntryKeygetKey()intgetNumberOfDuplicates()ProtectedPart[]getProtectedParts()java.lang.String[]getRawProperties()java.lang.StringgetSourceTranslation()java.lang.StringgetSrcText()Returns the source text (shortcut forgetStrEntry().getSrcText()).booleanisParagraphStart()booleanisSourceTranslationFuzzy()voidsetSourceTranslationFuzzy(boolean sourceTranslationFuzzy)
-
-
-
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 keyentryNum- the number of this entry in a projectprops- optional entry metadatasourceTranslation- 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
-
getKey
public EntryKey getKey()
-
getSrcText
public java.lang.String getSrcText()
Returns the source text (shortcut forgetStrEntry().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.
-
getDuplicate
public SourceTextEntry.DUPLICATE getDuplicate()
If entry with the same source already exist in project.
-
getNumberOfDuplicates
public int getNumberOfDuplicates()
-
getDuplicates
public java.util.List<SourceTextEntry> getDuplicates()
-
getSourceTranslation
public java.lang.String getSourceTranslation()
-
isSourceTranslationFuzzy
public boolean isSourceTranslationFuzzy()
-
setSourceTranslationFuzzy
public void setSourceTranslationFuzzy(boolean sourceTranslationFuzzy)
-
getProtectedParts
public ProtectedPart[] getProtectedParts()
-
isParagraphStart
public boolean isParagraphStart()
-
-