| TranslationUnit Class |
Namespace: Sdl.LanguagePlatform.TranslationMemory
The TranslationUnit type exposes the following members.
| Name | Description | |
|---|---|---|
| TranslationUnit |
Initializes a new instance of the TranslationUnit class. The system fields are initialized to their default values,
the user defined fields as well as the context list are initialized to empty lists.
| |
| TranslationUnit(TranslationUnit) |
Initializes a new instance of the TranslationUnit class from another instance (deep copy).
| |
| TranslationUnit(Segment, Segment) |
Initializes a new instance of the TranslationUnit class with the specified values. The system fields are initialized to their default values,
the user defined fields as well as the context list are initialized to empty lists.
|
| Name | Description | |
|---|---|---|
| ConfirmationLevel |
Gets or sets the confirmation level of this translation unit.
| |
| Contexts |
Gets or sets the contexts for this instance.
| |
| DocumentProperties |
Gets or set the document properties
| |
| DocumentSegmentPair |
Gets or sets the segment pair associated to this translation unit.
The segment pair should not be modified because the modification might change the original document.
| |
| FieldValues |
Gets or sets the user-defined field values for this translation unit.
| |
| FileProperties |
Gets or set the file properties
| |
| Format |
Gets or sets the format of this translation unit.
| |
| Origin |
Gets or sets the origin of this translation unit.
| |
| ResourceId |
Gets or sets the resource ID for this object.
(Inherited from PersistentObject.) | |
| SourceSegment |
Gets or sets the source segment of this instance.
| |
| StructureContexts |
Gets or sets the names of the structure contexts in which this translation unit occured within
the documents it originated from.
| |
| SystemFields |
Gets or sets the system fields of this translation unit.
| |
| TargetSegment |
Gets or sets the target segment of this instance.
|
| Name | Description | |||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| CheckAndComputeTagAssociations |
Computes cross-segment tag associations. Primarily checks or changes the tag-related
alignment anchors. Renumbers association anchors.
| |||||||||||||||||||||||||||
| ComputePlaceables |
Computes the list of placeables and their alignment for this translation unit.
| |||||||||||||||||||||||||||
| DeleteTags |
Deletes all tags from the TU's segments but keeps text placeholders (and locked content tags).
| |||||||||||||||||||||||||||
| DeleteTags(SegmentDeleteTagsAction) |
Deletes all tags from the TU's segments and performs the specified SegmentDeleteTagsAction on text placeholders
and locked content.
| |||||||||||||||||||||||||||
| Duplicate |
Instantiates and returns a deep copy of the current instance.
| |||||||||||||||||||||||||||
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |||||||||||||||||||||||||||
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |||||||||||||||||||||||||||
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |||||||||||||||||||||||||||
| GetMaxTagAnchor |
Returns the highest tag anchor used in any segment, or 0 if no tags are present.
| |||||||||||||||||||||||||||
| GetSystemFieldType |
Returns the field value type for known system and pseudo fields.
| |||||||||||||||||||||||||||
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |||||||||||||||||||||||||||
| GetType(String) |
Retrieves the type of the specified field.
| |||||||||||||||||||||||||||
| GetValue(String) |
Retrieves the value of a specified field from this translation unit.
The system fields can be retrieved using the following names:
Pseudo-fields contain values that are not saved as separate field values, but can be computed from the existing information in a translatin unit. The available pseudo-fields are:
| |||||||||||||||||||||||||||
| GetValue(String, FieldValueType) |
Retrieves the field value with the specified type from this translation unit.
| |||||||||||||||||||||||||||
| IsValid |
Determines whether this instance is a valid translation unit.
| |||||||||||||||||||||||||||
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |||||||||||||||||||||||||||
| SetValue |
Sets the value of the specified field, which can be a system field or a user field.
Pseudo fields (such as src, trg, soruceplainlength, etc.) can not be set.
Exceptions will be thrown if the field types are incompatible. | |||||||||||||||||||||||||||
| ToString | Returns a string that represents the current object. (Inherited from Object.) | |||||||||||||||||||||||||||
| Trim |
Trims off peripheral whitespace from the TU's segments.
| |||||||||||||||||||||||||||
| Validate |
Performs validation checks on this instance. All errors will be reported.
| |||||||||||||||||||||||||||
| Validate(SegmentValidationMode) |
Performs validation checks on this instance with the specified validation mode.
|