Class TUStreamContext
Represents "global" settings related to a TU stream, e.g. during import. Wraps access to language and field information.
Inherited Members
Namespace: SdlSdl.LanguagePlatformIOStreams
Assembly: Sdl.LanguagePlatform.IO.dll
Syntax
public class TUStreamContext
Constructors
TUStreamContext()
Initializes a new instance with invariant cultures and empty field declarations.
Declaration
public TUStreamContext()
TUStreamContext(CultureCode, CultureCode)
Initializes a new instance with the specified source cultures and empty field declarations.
Declaration
public TUStreamContext(CultureCode sourceCulture, CultureCode targetCulture)
Parameters
Type | Name | Description |
---|---|---|
CultureCode | sourceCulture | |
CultureCode | targetCulture |
TUStreamContext(CultureCode, CultureCode, FieldDefinitions)
Initializes a new instance with the specified source cultures and field declarations.
Declaration
public TUStreamContext(CultureCode sourceCulture, CultureCode targetCulture, FieldDefinitions fields)
Parameters
Type | Name | Description |
---|---|---|
CultureCode | sourceCulture | The source culture to filter the TMX stream for. If null, the invariant culture will be used. The invariant culture means that no filtering takes place. |
CultureCode | targetCulture | The target culture to filter the TMX stream for. If null, the invariant culture will be used. The invariant culture means that no filtering takes place. |
FieldDefinitions | fields | Pre-defined field declarations, or null. |
TUStreamContext(LanguagePair)
Initializes a new instance with the specified language direction and empty field declarations.
Declaration
public TUStreamContext(LanguagePair languageDirection)
Parameters
Type | Name | Description |
---|---|---|
LanguagePair | languageDirection |
TUStreamContext(LanguagePair, FieldDefinitions)
Initializes a new instance with the specified language direction and field declarations.
Declaration
public TUStreamContext(LanguagePair languageDirection, FieldDefinitions fields)
Parameters
Type | Name | Description |
---|---|---|
LanguagePair | languageDirection | |
FieldDefinitions | fields |
Properties
CheckMatchingSublanguages
Indicates whether the process should check if the sublanguages match.
Declaration
public bool CheckMatchingSublanguages { get; set; }
Property Value
Type | Description |
---|---|
bool |
FieldDefinitions
The predefined or collected field definitions.
Declaration
public FieldDefinitions FieldDefinitions { get; }
Property Value
Type | Description |
---|---|
FieldDefinitions |
MayAddNewFields
Whether or not the importer may add new fields to the TM.
Declaration
public bool MayAddNewFields { get; set; }
Property Value
Type | Description |
---|---|
bool |
SourceCulture
The source culture to filter for in the TMX stream.
Declaration
public CultureCode SourceCulture { get; }
Property Value
Type | Description |
---|---|
CultureCode |
TargetCulture
The target culture to filter for in the TMX stream.
Declaration
public CultureCode TargetCulture { get; }
Property Value
Type | Description |
---|---|
CultureCode |