Search Results for

    Show / Hide Table of Contents

    Class EditAction

    Represents a single edit action which can be applied to a TU.

    Inheritance
    System.Object
    EditAction
    EditActionChangeFieldValue
    EditActionDeleteAllFieldValues
    EditActionDeleteFieldValue
    EditActionDeleteTags
    EditActionRenameField
    EditActionSearchReplace
    Inherited Members
    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.EditScripts
    Assembly: Sdl.LanguagePlatform.TranslationMemory.dll
    Syntax
    public abstract class EditAction

    Constructors

    EditAction()

    Declaration
    protected EditAction()

    Methods

    Apply(TranslationUnit)

    See Apply(TranslationUnit)

    Declaration
    public abstract bool Apply(TranslationUnit tu)
    Parameters
    Type Name Description
    TranslationUnit tu

    The TU to apply the edit action to

    Returns
    Type Description
    System.Boolean

    true if a change was made to the TU, and false otherwise.

    Validate(IFieldDefinitions, Boolean)

    Validates the edit action against the provided field definitions.

    Declaration
    public abstract bool Validate(IFieldDefinitions fields, bool throwIfInvalid)
    Parameters
    Type Name Description
    IFieldDefinitions fields

    The field definitions to validate against.

    System.Boolean throwIfInvalid

    If true, an exception will be thrown if invalid field names or other issues are encountered. If false, the return value will be set to false without an exception being thrown.

    Returns
    Type Description
    System.Boolean

    true if the edit action is valid, given the provided field definitions, and false otherwise.

    On this page

    • Constructors
      • EditAction()
    • Methods
      • Apply(TranslationUnit)
      • Validate(IFieldDefinitions, Boolean)
    Back to top Generated by DocFX