Search Results for

    Show / Hide Table of Contents

    Class TranslationUnit

    Inheritance
    System.Object
    PersistentObject
    TranslationUnit
    Implements
    ITypedKeyValueContainer
    Inherited Members
    PersistentObject.ResourceId
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Sdl.LanguagePlatform.TranslationMemory
    Assembly: Sdl.LanguagePlatform.TranslationMemory.dll
    Syntax
    public class TranslationUnit : PersistentObject, ITypedKeyValueContainer

    Constructors

    TranslationUnit()

    Declaration
    public TranslationUnit()

    TranslationUnit(Segment, Segment)

    Declaration
    public TranslationUnit(Segment sourceSegment, Segment targetSegment)
    Parameters
    Type Name Description
    Segment sourceSegment
    Segment targetSegment

    TranslationUnit(TranslationUnit)

    Declaration
    public TranslationUnit(TranslationUnit other)
    Parameters
    Type Name Description
    TranslationUnit other

    Properties

    AlignmentData

    Declaration
    public LiftAlignedSpanPairSet AlignmentData { get; set; }
    Property Value
    Type Description
    Sdl.Core.FineGrainedAlignment.Core.LiftAlignedSpanPairSet

    AlignModelDate

    Declaration
    public DateTime? AlignModelDate { get; set; }
    Property Value
    Type Description
    System.Nullable<System.DateTime>

    ConfirmationLevel

    Declaration
    public ConfirmationLevel ConfirmationLevel { get; set; }
    Property Value
    Type Description
    ConfirmationLevel

    Contexts

    Declaration
    public TuContexts Contexts { get; set; }
    Property Value
    Type Description
    TuContexts

    DocumentProperties

    Declaration
    public IDocumentProperties DocumentProperties { get; set; }
    Property Value
    Type Description
    IDocumentProperties

    DocumentSegmentPair

    Declaration
    public ISegmentPair DocumentSegmentPair { get; set; }
    Property Value
    Type Description
    ISegmentPair

    FieldValues

    Declaration
    public FieldValues FieldValues { get; set; }
    Property Value
    Type Description
    FieldValues

    FileProperties

    Declaration
    public IFileProperties FileProperties { get; set; }
    Property Value
    Type Description
    IFileProperties

    Format

    Declaration
    public TranslationUnitFormat Format { get; set; }
    Property Value
    Type Description
    TranslationUnitFormat

    IdContexts

    Declaration
    public TuIdContexts IdContexts { get; set; }
    Property Value
    Type Description
    TuIdContexts

    InsertDate

    Declaration
    public DateTime? InsertDate { get; set; }
    Property Value
    Type Description
    System.Nullable<System.DateTime>

    Origin

    Declaration
    public TranslationUnitOrigin Origin { get; set; }
    Property Value
    Type Description
    TranslationUnitOrigin

    SourceSegment

    Declaration
    public Segment SourceSegment { get; set; }
    Property Value
    Type Description
    Segment

    StructureContexts

    Declaration
    public string[] StructureContexts { get; set; }
    Property Value
    Type Description
    System.String[]

    SystemFields

    Declaration
    public SystemFields SystemFields { get; set; }
    Property Value
    Type Description
    SystemFields

    TargetSegment

    Declaration
    public Segment TargetSegment { get; set; }
    Property Value
    Type Description
    Segment

    Methods

    CheckAndComputeTagAssociations()

    Declaration
    public void CheckAndComputeTagAssociations()

    ComputePlaceables()

    Declaration
    public List<Placeable> ComputePlaceables()
    Returns
    Type Description
    System.Collections.Generic.List<Placeable>

    DeleteTags()

    Declaration
    public void DeleteTags()

    DeleteTags(Segment.DeleteTagsAction)

    Declaration
    public void DeleteTags(Segment.DeleteTagsAction action)
    Parameters
    Type Name Description
    Segment.DeleteTagsAction action

    Duplicate()

    Declaration
    public TranslationUnit Duplicate()
    Returns
    Type Description
    TranslationUnit

    ExtractFragment(SegmentRange, SegmentRange)

    Declaration
    public TranslationUnit ExtractFragment(SegmentRange sourceRange, SegmentRange targetRange)
    Parameters
    Type Name Description
    SegmentRange sourceRange
    SegmentRange targetRange
    Returns
    Type Description
    TranslationUnit

    GenerateAlignmentData()

    Declaration
    public bool GenerateAlignmentData()
    Returns
    Type Description
    System.Boolean

    GetMaxTagAnchor()

    Declaration
    public int GetMaxTagAnchor()
    Returns
    Type Description
    System.Int32

    GetSystemFieldType(String)

    Declaration
    public static FieldValueType GetSystemFieldType(string fieldName)
    Parameters
    Type Name Description
    System.String fieldName
    Returns
    Type Description
    FieldValueType

    GetType(String)

    Declaration
    public FieldValueType GetType(string fieldName)
    Parameters
    Type Name Description
    System.String fieldName
    Returns
    Type Description
    FieldValueType

    GetValue(String)

    Declaration
    public FieldValue GetValue(string fieldName)
    Parameters
    Type Name Description
    System.String fieldName
    Returns
    Type Description
    FieldValue

    GetValue(String, FieldValueType)

    Declaration
    public FieldValue GetValue(string fieldName, FieldValueType t)
    Parameters
    Type Name Description
    System.String fieldName
    FieldValueType t
    Returns
    Type Description
    FieldValue

    IsValid()

    Declaration
    public bool IsValid()
    Returns
    Type Description
    System.Boolean

    SetValue(FieldValue, Boolean)

    Declaration
    public void SetValue(FieldValue fv, bool addIfMissing)
    Parameters
    Type Name Description
    FieldValue fv
    System.Boolean addIfMissing

    Trim()

    Declaration
    public void Trim()

    Validate()

    Declaration
    public ErrorCode Validate()
    Returns
    Type Description
    ErrorCode

    Validate(Segment.ValidationMode)

    Declaration
    public ErrorCode Validate(Segment.ValidationMode mode)
    Parameters
    Type Name Description
    Segment.ValidationMode mode
    Returns
    Type Description
    ErrorCode

    Implements

    ITypedKeyValueContainer

    On this page

    • Constructors
      • TranslationUnit()
      • TranslationUnit(Segment, Segment)
      • TranslationUnit(TranslationUnit)
    • Properties
      • AlignmentData
      • AlignModelDate
      • ConfirmationLevel
      • Contexts
      • DocumentProperties
      • DocumentSegmentPair
      • FieldValues
      • FileProperties
      • Format
      • IdContexts
      • InsertDate
      • Origin
      • SourceSegment
      • StructureContexts
      • SystemFields
      • TargetSegment
    • Methods
      • CheckAndComputeTagAssociations()
      • ComputePlaceables()
      • DeleteTags()
      • DeleteTags(Segment.DeleteTagsAction)
      • Duplicate()
      • ExtractFragment(SegmentRange, SegmentRange)
      • GenerateAlignmentData()
      • GetMaxTagAnchor()
      • GetSystemFieldType(String)
      • GetType(String)
      • GetValue(String)
      • GetValue(String, FieldValueType)
      • IsValid()
      • SetValue(FieldValue, Boolean)
      • Trim()
      • Validate()
      • Validate(Segment.ValidationMode)
    • Implements
    Back to top Generated by DocFX