public class SourceTextEntry
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SourceTextEntry.DUPLICATE |
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
int |
entryNum()
Returns the number of this entry in a project.
|
java.lang.String |
getComment()
Returns comment of entry if exist in source document.
|
SourceTextEntry.DUPLICATE |
getDuplicate()
If entry with the same source already exist in project.
|
java.util.List<SourceTextEntry> |
getDuplicates() |
EntryKey |
getKey() |
int |
getNumberOfDuplicates() |
ProtectedPart[] |
getProtectedParts() |
java.lang.String[] |
getRawProperties() |
java.lang.String |
getSourceTranslation() |
java.lang.String |
getSrcText()
Returns the source text (shortcut for
getStrEntry().getSrcText() ). |
boolean |
isParagraphStart() |
boolean |
isSourceTranslationFuzzy() |
void |
setSourceTranslationFuzzy(boolean sourceTranslationFuzzy) |
public SourceTextEntry(EntryKey key, int entryNum, java.lang.String[] props, java.lang.String sourceTranslation, java.util.List<ProtectedPart> protectedParts, boolean paragraphStart)
key
- entry keyentryNum
- the number of this entry in a projectprops
- optional entry metadatasourceTranslation
- translation from source filepublic SourceTextEntry(EntryKey key, int entryNum, java.lang.String[] props, java.lang.String sourceTranslation, java.util.List<ProtectedPart> protectedParts)
public EntryKey getKey()
public java.lang.String getSrcText()
getStrEntry().getSrcText()
).public java.lang.String getComment()
public java.lang.String[] getRawProperties()
public int entryNum()
public SourceTextEntry.DUPLICATE getDuplicate()
public int getNumberOfDuplicates()
public java.util.List<SourceTextEntry> getDuplicates()
public java.lang.String getSourceTranslation()
public boolean isSourceTranslationFuzzy()
public void setSourceTranslationFuzzy(boolean sourceTranslationFuzzy)
public ProtectedPart[] getProtectedParts()
public boolean isParagraphStart()