public class ProjectTMX
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
ProjectTMX.CheckOrphanedCallback |
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
ATTR_TUID |
protected static java.lang.String |
PROP_FILE |
protected static java.lang.String |
PROP_ID |
protected static java.lang.String |
PROP_NEXT |
protected static java.lang.String |
PROP_PATH |
protected static java.lang.String |
PROP_PREV |
protected static java.lang.String |
PROP_X100PC |
protected static java.lang.String |
PROP_XAUTO |
protected static java.lang.String |
PROP_XICE |
Constructor and Description |
---|
ProjectTMX()
Constructor for TMX delta.
|
ProjectTMX(Language sourceLanguage,
Language targetLanguage,
boolean isSentenceSegmentingEnabled,
java.io.File file,
ProjectTMX.CheckOrphanedCallback callback) |
Modifier and Type | Method and Description |
---|---|
void |
exportTMX(ProjectProperties props,
java.io.File outFile,
boolean forceValidTMX,
boolean levelTwo,
boolean useOrphaned) |
java.util.Collection<TMXEntry> |
getAlternatives()
Returns the collection of TMX entries that have an alternative translation
|
java.util.Collection<TMXEntry> |
getDefaults()
Returns the collection of TMX entries that have a default translation
|
TMXEntry |
getDefaultTranslation(java.lang.String source)
Get default translation or null if not exist.
|
TMXEntry |
getMultipleTranslation(EntryKey ek)
Get multiple translation or null if not exist.
|
boolean |
isEmpty()
Check TMX for empty.
|
void |
replaceContent(ProjectTMX tmx) |
void |
save(ProjectProperties props,
java.lang.String translationFile,
boolean translationUpdatedByUser)
It saves current translation into file.
|
void |
setTranslation(SourceTextEntry ste,
TMXEntry te,
boolean isDefault)
Set new translation.
|
java.lang.String |
toString() |
protected static final java.lang.String ATTR_TUID
protected static final java.lang.String PROP_FILE
protected static final java.lang.String PROP_ID
protected static final java.lang.String PROP_PREV
protected static final java.lang.String PROP_NEXT
protected static final java.lang.String PROP_PATH
protected static final java.lang.String PROP_XICE
protected static final java.lang.String PROP_X100PC
protected static final java.lang.String PROP_XAUTO
public ProjectTMX(Language sourceLanguage, Language targetLanguage, boolean isSentenceSegmentingEnabled, java.io.File file, ProjectTMX.CheckOrphanedCallback callback) throws java.lang.Exception
java.lang.Exception
public ProjectTMX()
public boolean isEmpty()
public void save(ProjectProperties props, java.lang.String translationFile, boolean translationUpdatedByUser) throws java.lang.Exception
java.lang.Exception
public void exportTMX(ProjectProperties props, java.io.File outFile, boolean forceValidTMX, boolean levelTwo, boolean useOrphaned) throws java.lang.Exception
java.lang.Exception
public TMXEntry getDefaultTranslation(java.lang.String source)
public TMXEntry getMultipleTranslation(EntryKey ek)
public void setTranslation(SourceTextEntry ste, TMXEntry te, boolean isDefault)
public java.util.Collection<TMXEntry> getDefaults()
public java.util.Collection<TMXEntry> getAlternatives()
public void replaceContent(ProjectTMX tmx)
public java.lang.String toString()
toString
in class java.lang.Object