Package org.omegat.core.data
Class ExternalTMFactory.TMXLoader
- java.lang.Object
-
- org.omegat.core.data.ExternalTMFactory.TMXLoader
-
- Enclosing class:
- ExternalTMFactory
public static final class ExternalTMFactory.TMXLoader extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PROP_FOREIGN_MATCH
static java.lang.String
PROP_SOURCE_LANGUAGE
static java.lang.String
PROP_TARGET_LANGUAGE
-
Constructor Summary
Constructors Constructor Description TMXLoader(java.io.File file)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
isSupported(java.io.File file)
ExternalTMX
load(Language sourceLang, Language targetLang)
ExternalTMFactory.TMXLoader
setDoSegmenting(boolean doSegmenting)
ExternalTMFactory.TMXLoader
setExtTmxLevel2(boolean extTmxLevel2)
ExternalTMFactory.TMXLoader
setKeepForeignMatches(boolean keepForeignMatches)
ExternalTMFactory.TMXLoader
setUseSlash(boolean useSlash)
-
-
-
Field Detail
-
PROP_SOURCE_LANGUAGE
public static final java.lang.String PROP_SOURCE_LANGUAGE
- See Also:
- Constant Field Values
-
PROP_TARGET_LANGUAGE
public static final java.lang.String PROP_TARGET_LANGUAGE
- See Also:
- Constant Field Values
-
PROP_FOREIGN_MATCH
public static final java.lang.String PROP_FOREIGN_MATCH
- See Also:
- Constant Field Values
-
-
Method Detail
-
isSupported
public static boolean isSupported(java.io.File file)
-
setExtTmxLevel2
public ExternalTMFactory.TMXLoader setExtTmxLevel2(boolean extTmxLevel2)
-
setUseSlash
public ExternalTMFactory.TMXLoader setUseSlash(boolean useSlash)
-
setDoSegmenting
public ExternalTMFactory.TMXLoader setDoSegmenting(boolean doSegmenting)
-
setKeepForeignMatches
public ExternalTMFactory.TMXLoader setKeepForeignMatches(boolean keepForeignMatches)
-
load
public ExternalTMX load(Language sourceLang, Language targetLang) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-