Class TmApiImportExport
Provides implementations of IImportDestination and IExportOrigin based on the Core.TM container API
Inheritance
Inherited Members
Namespace: Sdl.Core.TM.ImportExport
Assembly: Sdl.Core.TM.ImportExport.dll
Syntax
public class TmApiImportExport : IImportDestinationAsync, IImportDestination, IExportOriginAsync, IExportOrigin
Constructors
TmApiImportExport(ITranslationMemoryServiceAsync, Container, PersistentObjectToken)
Provides implementations of IImportDestination and IExportOrigin based on the Core.TM container API
Declaration
[Obsolete("Use CreateAsync")]
public TmApiImportExport(ITranslationMemoryServiceAsync service, Container container, PersistentObjectToken tmId)
Parameters
Type | Name | Description |
---|---|---|
ITranslationMemoryServiceAsync | service | |
Container | container | |
PersistentObjectToken | tmId |
TmApiImportExport(ITranslationMemoryServiceAsync, Container, TranslationMemorySetup)
Provides implementations of IImportDestination and IExportOrigin based on the Core.TM container API
Declaration
public TmApiImportExport(ITranslationMemoryServiceAsync service, Container container, TranslationMemorySetup tm)
Parameters
Type | Name | Description |
---|---|---|
ITranslationMemoryServiceAsync | service | |
Container | container | |
TranslationMemorySetup | tm |
Properties
BuiltinRecognizers
Provides implementations of IImportDestination and IExportOrigin based on the Core.TM container API
Declaration
public BuiltinRecognizers BuiltinRecognizers { get; }
Property Value
Type | Description |
---|---|
BuiltinRecognizers |
CreationDate
Provides implementations of IImportDestination and IExportOrigin based on the Core.TM container API
Declaration
public DateTime CreationDate { get; }
Property Value
Type | Description |
---|---|
DateTime |
CreationUserName
Provides implementations of IImportDestination and IExportOrigin based on the Core.TM container API
Declaration
public string CreationUserName { get; }
Property Value
Type | Description |
---|---|
String |
FieldDefinitions
Provides implementations of IImportDestination and IExportOrigin based on the Core.TM container API
Declaration
public FieldDefinitions FieldDefinitions { get; }
Property Value
Type | Description |
---|---|
FieldDefinitions |
IncludesContextContent
Provides implementations of IImportDestination and IExportOrigin based on the Core.TM container API
Declaration
public virtual bool IncludesContextContent { get; }
Property Value
Type | Description |
---|---|
Boolean |
LanguageResources
Provides implementations of IImportDestination and IExportOrigin based on the Core.TM container API
Declaration
public LanguageResource[] LanguageResources { get; }
Property Value
Type | Description |
---|---|
LanguageResource[] |
Name
Provides implementations of IImportDestination and IExportOrigin based on the Core.TM container API
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
String |
SourceLanguage
Provides implementations of IImportDestination and IExportOrigin based on the Core.TM container API
Declaration
public CultureCode SourceLanguage { get; }
Property Value
Type | Description |
---|---|
CultureCode |
TargetLanguage
Provides implementations of IImportDestination and IExportOrigin based on the Core.TM container API
Declaration
public CultureCode TargetLanguage { get; }
Property Value
Type | Description |
---|---|
CultureCode |
TextContextMatchType
Provides implementations of IImportDestination and IExportOrigin based on the Core.TM container API
Declaration
public TextContextMatchType TextContextMatchType { get; }
Property Value
Type | Description |
---|---|
TextContextMatchType |
TokenizerFlags
Provides implementations of IImportDestination and IExportOrigin based on the Core.TM container API
Declaration
public TokenizerFlags TokenizerFlags { get; }
Property Value
Type | Description |
---|---|
TokenizerFlags |
UsesIdContextMatch
Provides implementations of IImportDestination and IExportOrigin based on the Core.TM container API
Declaration
public bool UsesIdContextMatch { get; }
Property Value
Type | Description |
---|---|
Boolean |
UsesLegacyHashes
Provides implementations of IImportDestination and IExportOrigin based on the Core.TM container API
Declaration
public bool UsesLegacyHashes { get; }
Property Value
Type | Description |
---|---|
Boolean |
WordCountFlags
Provides implementations of IImportDestination and IExportOrigin based on the Core.TM container API
Declaration
public WordCountFlags WordCountFlags { get; }
Property Value
Type | Description |
---|---|
WordCountFlags |
Methods
AddTranslationUnits(TranslationUnit[], ImportSettings)
Provides implementations of IImportDestination and IExportOrigin based on the Core.TM container API
Declaration
[Obsolete("Use AddTranslationUnitsMaskedAsync")]
public ImportResult[] AddTranslationUnits(TranslationUnit[] tus, ImportSettings settings)
Parameters
Type | Name | Description |
---|---|---|
TranslationUnit[] | tus | |
ImportSettings | settings |
Returns
Type | Description |
---|---|
ImportResult[] |
AddTranslationUnitsMask(TranslationUnit[], ImportSettings, Boolean[])
Provides implementations of IImportDestination and IExportOrigin based on the Core.TM container API
Declaration
[Obsolete("Use AddTranslationUnitsMaskedAsync")]
public ImportResult[] AddTranslationUnitsMask(TranslationUnit[] tus, ImportSettings settings, bool[] mask)
Parameters
Type | Name | Description |
---|---|---|
TranslationUnit[] | tus | |
ImportSettings | settings | |
Boolean[] | mask |
Returns
Type | Description |
---|---|
ImportResult[] |
AddTranslationUnitsMaskedAsync(TranslationUnit[], ImportSettings, Boolean[])
Provides implementations of IImportDestination and IExportOrigin based on the Core.TM container API
Declaration
public Task<ImportResult[]> AddTranslationUnitsMaskedAsync(TranslationUnit[] tus, ImportSettings settings, bool[] mask)
Parameters
Type | Name | Description |
---|---|---|
TranslationUnit[] | tus | |
ImportSettings | settings | |
Boolean[] | mask |
Returns
Type | Description |
---|---|
Task<ImportResult[]> |
CreateAsync(ITranslationMemoryServiceAsync, Container, PersistentObjectToken)
Provides implementations of IImportDestination and IExportOrigin based on the Core.TM container API
Declaration
public static Task<TmApiImportExport> CreateAsync(ITranslationMemoryServiceAsync service, Container container, PersistentObjectToken tmId)
Parameters
Type | Name | Description |
---|---|---|
ITranslationMemoryServiceAsync | service | |
Container | container | |
PersistentObjectToken | tmId |
Returns
Type | Description |
---|---|
Task<TmApiImportExport> |
GetFieldDefinitionsAsync()
Provides implementations of IImportDestination and IExportOrigin based on the Core.TM container API
Declaration
public Task<FieldDefinitions> GetFieldDefinitionsAsync()
Returns
Type | Description |
---|---|
Task<FieldDefinitions> |
GetLanguageResourcesAsync()
Provides implementations of IImportDestination and IExportOrigin based on the Core.TM container API
Declaration
public Task<LanguageResource[]> GetLanguageResourcesAsync()
Returns
Type | Description |
---|---|
Task<LanguageResource[]> |
GetTranslationUnits(ref RegularIterator)
Provides implementations of IImportDestination and IExportOrigin based on the Core.TM container API
Declaration
public TranslationUnit[] GetTranslationUnits(ref RegularIterator iter)
Parameters
Type | Name | Description |
---|---|---|
RegularIterator | iter |
Returns
Type | Description |
---|---|
TranslationUnit[] |
GetTranslationUnitsAsync(RegularIterator)
Provides implementations of IImportDestination and IExportOrigin based on the Core.TM container API
Declaration
public Task<TranslationUnit[]> GetTranslationUnitsAsync(RegularIterator iter)
Parameters
Type | Name | Description |
---|---|---|
RegularIterator | iter |
Returns
Type | Description |
---|---|
Task<TranslationUnit[]> |
UpdateFieldDefinitions(FieldDefinitions)
Provides implementations of IImportDestination and IExportOrigin based on the Core.TM container API
Declaration
public void UpdateFieldDefinitions(FieldDefinitions mergedFieldDefinitions)
Parameters
Type | Name | Description |
---|---|---|
FieldDefinitions | mergedFieldDefinitions |
UpdateFieldDefinitionsAsync(FieldDefinitions)
Provides implementations of IImportDestination and IExportOrigin based on the Core.TM container API
Declaration
public Task UpdateFieldDefinitionsAsync(FieldDefinitions mergedFieldDefinitions)
Parameters
Type | Name | Description |
---|---|---|
FieldDefinitions | mergedFieldDefinitions |
Returns
Type | Description |
---|---|
Task |
UpdateLanguageResources(List<LanguageResource>)
Provides implementations of IImportDestination and IExportOrigin based on the Core.TM container API
Declaration
public void UpdateLanguageResources(List<LanguageResource> mergedLanguageResources)
Parameters
Type | Name | Description |
---|---|---|
List<LanguageResource> | mergedLanguageResources |
UpdateLanguageResourcesAsync(List<LanguageResource>)
Provides implementations of IImportDestination and IExportOrigin based on the Core.TM container API
Declaration
public Task UpdateLanguageResourcesAsync(List<LanguageResource> mergedLanguageResources)
Parameters
Type | Name | Description |
---|---|---|
List<LanguageResource> | mergedLanguageResources |
Returns
Type | Description |
---|---|
Task |