Class TmApiImportExport
Inheritance
TmApiImportExport
Namespace: SdlSdl.CoreSdl.Core.TMImportExport
Assembly: Sdl.Core.TM.ImportExport.dll
Syntax
public class TmApiImportExport : IImportDestinationAsync, IImportDestination, IExportOriginAsync, IExportOrigin
Constructors
Declaration
[Obsolete("Use CreateAsync")]
public TmApiImportExport(ITranslationMemoryServiceAsync service, Container container, PersistentObjectToken tmId)
Parameters
Type |
Name |
Description |
Sdl.LanguagePlatform.TranslationMemoryImpl.ITranslationMemoryServiceAsync |
service |
|
Sdl.LanguagePlatform.TranslationMemoryImpl.Container |
container |
|
PersistentObjectToken |
tmId |
|
Declaration
public TmApiImportExport(ITranslationMemoryServiceAsync service, Container container, TranslationMemorySetup tm)
Parameters
Type |
Name |
Description |
Sdl.LanguagePlatform.TranslationMemoryImpl.ITranslationMemoryServiceAsync |
service |
|
Sdl.LanguagePlatform.TranslationMemoryImpl.Container |
container |
|
Sdl.LanguagePlatform.TranslationMemoryImpl.TranslationMemorySetup |
tm |
|
Properties
BuiltinRecognizers
Declaration
public BuiltinRecognizers BuiltinRecognizers { get; }
Property Value
CreationDate
Declaration
public DateTime CreationDate { get; }
Property Value
CreationUserName
Declaration
public string CreationUserName { get; }
Property Value
FieldDefinitions
Declaration
public FieldDefinitions FieldDefinitions { get; }
Property Value
IncludesContextContent
Declaration
public virtual bool IncludesContextContent { get; }
Property Value
LanguageResources
Declaration
public LanguageResource[] LanguageResources { get; }
Property Value
Type |
Description |
Sdl.LanguagePlatform.TranslationMemoryImpl.LanguageResource |
|
Name
Declaration
public string Name { get; }
Property Value
SourceLanguage
Declaration
public CultureCode SourceLanguage { get; }
Property Value
TargetLanguage
Declaration
public CultureCode TargetLanguage { get; }
Property Value
TextContextMatchType
Declaration
public TextContextMatchType TextContextMatchType { get; }
Property Value
TokenizerFlags
Declaration
public TokenizerFlags TokenizerFlags { get; }
Property Value
UsesIdContextMatch
Declaration
public bool UsesIdContextMatch { get; }
Property Value
UsesLegacyHashes
Declaration
public bool UsesLegacyHashes { get; }
Property Value
WordCountFlags
Declaration
public WordCountFlags WordCountFlags { get; }
Property Value
Methods
Replaced by AddTranslationUnitsMask
Declaration
[Obsolete("Use AddTranslationUnitsMaskedAsync")]
public ImportResult[] AddTranslationUnits(TranslationUnit[] tus, ImportSettings settings)
Parameters
Returns
Declaration
[Obsolete("Use AddTranslationUnitsMaskedAsync")]
public ImportResult[] AddTranslationUnitsMask(TranslationUnit[] tus, ImportSettings settings, bool[] mask)
Parameters
Returns
Declaration
public Task<ImportResult[]> AddTranslationUnitsMaskedAsync(TranslationUnit[] tus, ImportSettings settings, bool[] mask)
Parameters
Returns
Declaration
public static Task<TmApiImportExport> CreateAsync(ITranslationMemoryServiceAsync service, Container container, PersistentObjectToken tmId)
Parameters
Type |
Name |
Description |
Sdl.LanguagePlatform.TranslationMemoryImpl.ITranslationMemoryServiceAsync |
service |
|
Sdl.LanguagePlatform.TranslationMemoryImpl.Container |
container |
|
PersistentObjectToken |
tmId |
|
Returns
GetFieldDefinitionsAsync()
Declaration
public Task<FieldDefinitions> GetFieldDefinitionsAsync()
Returns
GetLanguageResourcesAsync()
Declaration
public Task<LanguageResource[]> GetLanguageResourcesAsync()
Returns
Type |
Description |
TaskSdl.LanguagePlatform.TranslationMemoryImpl.LanguageResource |
|
Declaration
public TranslationUnit[] GetTranslationUnits(ref RegularIterator iter)
Parameters
Returns
Declaration
public Task<TranslationUnit[]> GetTranslationUnitsAsync(RegularIterator iter)
Parameters
Returns
Declaration
public void UpdateFieldDefinitions(FieldDefinitions mergedFieldDefinitions)
Parameters
Type |
Name |
Description |
FieldDefinitions |
mergedFieldDefinitions |
Fields that either 1. were only defined in the incoming data or 2. were defined in incoming data and destination data, but with additional picklist values in the incoming data (field contains a merge of both)
|
Declaration
public Task UpdateFieldDefinitionsAsync(FieldDefinitions mergedFieldDefinitions)
Parameters
Type |
Name |
Description |
FieldDefinitions |
mergedFieldDefinitions |
Fields that either 1. were only defined in the incoming data or 2. were defined in incoming data and destination data, but with additional picklist values in the incoming data (field contains a merge of both)
|
Returns
Declaration
public void UpdateLanguageResources(List<LanguageResource> mergedLanguageResources)
Parameters
Type |
Name |
Description |
ListSdl.LanguagePlatform.TranslationMemoryImpl.LanguageResource |
mergedLanguageResources |
Language resources that either 1. were only defined in the incoming data or 2. were defined in incoming and destination data, but with additional values in the incoming data (resource contains a merge of both)
|
Declaration
public Task UpdateLanguageResourcesAsync(List<LanguageResource> mergedLanguageResources)
Parameters
Type |
Name |
Description |
ListSdl.LanguagePlatform.TranslationMemoryImpl.LanguageResource |
mergedLanguageResources |
Language resources that either 1. were only defined in the incoming data or 2. were defined in incoming and destination data, but with additional values in the incoming data (resource contains a merge of both)
|
Returns
Implements