Package org.omegat.core.data
Class CommandVarExpansion
- java.lang.Object
-
- org.omegat.util.VarExpansion<ProjectProperties>
-
- org.omegat.core.data.CommandVarExpansion
-
public class CommandVarExpansion extends VarExpansion<ProjectProperties>
Expand variables representing project properties. Intended for use in preparing external commands for execution.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DICT_ROOT
static java.lang.String
GLOSSARY_ROOT
static java.lang.String
PROJECT_NAME
static java.lang.String
PROJECT_ROOT
static java.lang.String
SOURCE_LANGUAGE
static java.lang.String
SOURCE_ROOT
static java.lang.String
TARGET_LANGUAGE
static java.lang.String
TARGET_ROOT
static java.lang.String
TM_AUTO_ROOT
static java.lang.String
TM_OTHER_LANG_ROOT
static java.lang.String
TM_ROOT
static java.lang.String
WRITABLE_GLOSSARY_FILE
-
Fields inherited from class org.omegat.util.VarExpansion
PATTERN_BUNDLE_ENTRY, VAR_FILE_EXTENSION, VAR_FILE_NAME, VAR_FILE_NAME_ONLY, VAR_FILE_PATH, VAR_FILE_SHORT_PATH, VAR_PROJECT_SOURCE_LANG, VAR_PROJECT_SOURCE_LANG_CODE, VAR_PROJECT_TARGET_LANG, VAR_PROJECT_TARGET_LANG_CODE, VAR_SOURCE_TEXT, VAR_TARGET_TEXT
-
-
Constructor Summary
Constructors Constructor Description CommandVarExpansion(java.lang.String template)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
expandVariables(ProjectProperties props)
static java.lang.String
fixSeparatorChar(java.lang.String path)
static java.util.List<java.lang.String>
getCommandVariables()
-
Methods inherited from class org.omegat.util.VarExpansion
expandFileName, expandFileNames
-
-
-
-
Field Detail
-
PROJECT_NAME
public static final java.lang.String PROJECT_NAME
- See Also:
- Constant Field Values
-
PROJECT_ROOT
public static final java.lang.String PROJECT_ROOT
- See Also:
- Constant Field Values
-
SOURCE_ROOT
public static final java.lang.String SOURCE_ROOT
- See Also:
- Constant Field Values
-
TARGET_ROOT
public static final java.lang.String TARGET_ROOT
- See Also:
- Constant Field Values
-
GLOSSARY_ROOT
public static final java.lang.String GLOSSARY_ROOT
- See Also:
- Constant Field Values
-
WRITABLE_GLOSSARY_FILE
public static final java.lang.String WRITABLE_GLOSSARY_FILE
- See Also:
- Constant Field Values
-
TM_ROOT
public static final java.lang.String TM_ROOT
- See Also:
- Constant Field Values
-
TM_AUTO_ROOT
public static final java.lang.String TM_AUTO_ROOT
- See Also:
- Constant Field Values
-
DICT_ROOT
public static final java.lang.String DICT_ROOT
- See Also:
- Constant Field Values
-
TM_OTHER_LANG_ROOT
public static final java.lang.String TM_OTHER_LANG_ROOT
- See Also:
- Constant Field Values
-
SOURCE_LANGUAGE
public static final java.lang.String SOURCE_LANGUAGE
- See Also:
- Constant Field Values
-
TARGET_LANGUAGE
public static final java.lang.String TARGET_LANGUAGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCommandVariables
public static java.util.List<java.lang.String> getCommandVariables()
-
expandVariables
public java.lang.String expandVariables(ProjectProperties props)
- Specified by:
expandVariables
in classVarExpansion<ProjectProperties>
-
fixSeparatorChar
public static java.lang.String fixSeparatorChar(java.lang.String path)
-
-