public class Manifest extends Object implements IAnnotation
| Modifier and Type | Field and Description |
|---|---|
static String |
EXTRACTIONTYPE_NONE |
static String |
EXTRACTIONTYPE_OMEGAT |
static String |
EXTRACTIONTYPE_ONTRAM |
static String |
EXTRACTIONTYPE_PO |
static String |
EXTRACTIONTYPE_RTF |
static String |
EXTRACTIONTYPE_TABLE |
static String |
EXTRACTIONTYPE_TRANSIFEX |
static String |
EXTRACTIONTYPE_XLIFF |
static String |
EXTRACTIONTYPE_XLIFF2 |
static String |
EXTRACTIONTYPE_XLIFFRTF |
static String |
MANIFEST_EXTENSION |
static String |
MANIFEST_FILENAME |
static String |
VERSION |
| Constructor and Description |
|---|
Manifest() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDocument(int docId,
String extractionType,
String relativeInputPath,
String filterId,
String filterParameters,
String inputEncoding,
String relativeTargetPath,
String targetEncoding)
Adds a document to the manifest.
|
String |
getCreatorParameters() |
String |
getDate()
Gets the date when the manifest was created (saved the first time).
|
boolean |
getGenerateTIPManifest() |
String |
getInputRoot()
Gets the input root (always with the terminal separator).
|
MergingInfo |
getItem(int docID) |
Map<Integer,MergingInfo> |
getItems() |
String |
getLibVersion()
Gets the library version used to create the manifest.
|
String |
getMergeDirectory()
Get the directory where to output the result of the merging process (always with a terminal separator).
|
String |
getOriginalDirectory()
Gets the directory where to store the original files (always with a terminal separator).
|
String |
getPackageId() |
String |
getPackageRoot()
Gets the package root (always with the terminal separator).
|
String |
getPath()
Gets the full path of the manifest file.
|
String |
getProjectId() |
String |
getSkeletonDirectory()
Gets the directory where to store the skeleton files if there are any (always with a terminal separator).
|
LocaleId |
getSourceLocale() |
LocaleId |
getTargetLocale() |
String |
getTempOriginalDirectory()
Gets the temporary directory where to store the original files (always with a terminal separator).
|
String |
getTempPackageRoot()
Gets the temporary package root (always with the terminal separator).
|
String |
getTempSkelDirectory()
Gets the temporary directory where to store the skeleton files (always with a terminal separator).
|
String |
getTempSourceDirectory()
Gets the full temporary directory where to store the prepared source files (always with a terminal separator).
|
String |
getTempTargetDirectory()
Get the temporary directory where to store the prepared target files (always with a terminal separator).
|
String |
getTempTmDirectory()
Gets the temporary directory where to output TM-related information (always with a terminal separator).
|
boolean |
getUpdateApprovedFlag() |
boolean |
getUseApprovedOnly() |
void |
load(File inputFile) |
void |
save(String dir)
Saves the manifest file.
|
void |
saveTIPManifest(String dir,
List<String> tms) |
void |
setGenerateTIPManifest(boolean generateTIPManifest) |
void |
setInformation(String packageRoot,
LocaleId srcLoc,
LocaleId trgLoc,
String inputRoot,
String packageId,
String projectId,
String creatorParams,
String tempPackageRoot) |
void |
setSubDirectories(String originalSubDir,
String sourceSubDir,
String targetSubDir,
String mergeSubDir,
String tmSubDir,
String skelSubDir,
boolean overwrite)
Sets the sub-directories used by the given package.
|
void |
setUpdateApprovedFlag(boolean value) |
void |
setUseApprovedOnly(boolean value) |
String |
toString()
Gets a human readable representation of this annotation.
|
public static final String EXTRACTIONTYPE_NONE
public static final String EXTRACTIONTYPE_XLIFF
public static final String EXTRACTIONTYPE_XLIFF2
public static final String EXTRACTIONTYPE_PO
public static final String EXTRACTIONTYPE_RTF
public static final String EXTRACTIONTYPE_XLIFFRTF
public static final String EXTRACTIONTYPE_OMEGAT
public static final String EXTRACTIONTYPE_TRANSIFEX
public static final String EXTRACTIONTYPE_ONTRAM
public static final String EXTRACTIONTYPE_TABLE
public static final String VERSION
public static final String MANIFEST_FILENAME
public static final String MANIFEST_EXTENSION
public Map<Integer,MergingInfo> getItems()
public MergingInfo getItem(int docID)
public String getLibVersion()
public String getPackageId()
public String getProjectId()
public LocaleId getSourceLocale()
public LocaleId getTargetLocale()
public String getCreatorParameters()
public boolean getUseApprovedOnly()
public void setUseApprovedOnly(boolean value)
public boolean getUpdateApprovedFlag()
public void setUpdateApprovedFlag(boolean value)
public boolean getGenerateTIPManifest()
public void setGenerateTIPManifest(boolean generateTIPManifest)
public String getInputRoot()
public String getPackageRoot()
public String getTempPackageRoot()
public void setSubDirectories(String originalSubDir, String sourceSubDir, String targetSubDir, String mergeSubDir, String tmSubDir, String skelSubDir, boolean overwrite)
originalSubDir - the sub-directory for the original document.sourceSubDir - the sub-directory for the source documents.targetSubDir - the sub-directory for the target documents.mergeSubDir - the sub-directory for the merged documents.tmSubDir - the sub-directory for TM-related data.skelSubDir - the sub-directory for the skeleton files (if needed)overwrite - true to overwrite existing settings (use null to not overwrite a given sub-directory).
false to use the specified value (if the current is empty).public String getTempOriginalDirectory()
public String getTempSkelDirectory()
public String getTempSourceDirectory()
public String getTempTargetDirectory()
public String getOriginalDirectory()
public String getSkeletonDirectory()
public String getMergeDirectory()
public String getTempTmDirectory()
public String getDate()
public void setInformation(String packageRoot, LocaleId srcLoc, LocaleId trgLoc, String inputRoot, String packageId, String projectId, String creatorParams, String tempPackageRoot)
public void addDocument(int docId,
String extractionType,
String relativeInputPath,
String filterId,
String filterParameters,
String inputEncoding,
String relativeTargetPath,
String targetEncoding)
docId - Key of the document. Must be unique within the manifest.public String getPath()
public void save(String dir)
dir - directory where to save the file, use null for the default.public void load(File inputFile)
public String toString()
IAnnotationtoString in interface IAnnotationtoString in class ObjectCopyright © 2021. All rights reserved.