Class TMSFile
java.lang.Object
com.idmedia.translationstudio.api.connector.TMSFile
This hold basic information about the XML in the TMS
- Author:
- I-D Media AG
-
Constructor Summary
ConstructorsConstructorDescriptionCreate instanceTMSFile(@Nullable String sProjectId, @NotNull String sFileId, @NotNull String sTmsProjectName, @NotNull String sTmsFileName, @NotNull String sCmsPageName) Create instanceTMSFile(@Nullable String sProjectId, @NotNull String sFileId, @NotNull String sTmsProjectName, @NotNull String sTmsFileName, @NotNull String sCmsPageName, @NotNull String sTargetLanguage) Create instance -
Method Summary
Modifier and TypeMethodDescription@NotNull StringGet the associated CMS page name(s)@NotNull StringInternal File ID as used by the TMS@NotNull StringGet the TMS Project of this file@NotNull StringGet the target language (if available)@NotNull StringGet the TMS file name in the project@NotNull StringGet the TMS project namebooleanCheck if there is name information available
-
Constructor Details
-
TMSFile
Create instance- Parameters:
sProjectId- TMS Project IdsFileId- TMS File Id
-
TMSFile
public TMSFile(@Nullable @Nullable String sProjectId, @NotNull @NotNull String sFileId, @NotNull @NotNull String sTmsProjectName, @NotNull @NotNull String sTmsFileName, @NotNull @NotNull String sCmsPageName) Create instance- Parameters:
sProjectId- TMS Project IdsFileId- TMS File IdsTmsProjectName- TMS project namesTmsFileName- TMS project file namesCmsPageName- CMS page name(s)
-
TMSFile
public TMSFile(@Nullable @Nullable String sProjectId, @NotNull @NotNull String sFileId, @NotNull @NotNull String sTmsProjectName, @NotNull @NotNull String sTmsFileName, @NotNull @NotNull String sCmsPageName, @NotNull @NotNull String sTargetLanguage) Create instance- Parameters:
sProjectId- TMS Project IdsFileId- TMS File IdsTmsProjectName- TMS project namesTmsFileName- TMS project file namesCmsPageName- CMS page name(s)sTargetLanguage-
-
-
Method Details
-
hasNameInformation
public boolean hasNameInformation()Check if there is name information available- Returns:
-
getTargetLanguage
Get the target language (if available)- Returns:
-
getTmsProjectName
Get the TMS project name- Returns:
-
getTmsFileName
Get the TMS file name in the project- Returns:
-
getCmsPageName
Get the associated CMS page name(s)- Returns:
-
getProjectId
Get the TMS Project of this file- Returns:
-
getFileId
Internal File ID as used by the TMS- Returns:
- Id
-