Search Results for

    Show / Hide Table of Contents

    Class ModelElementLocalizer

    Base class for all localizer classes that localize model elements.

    Inheritance
    System.Object
    ModelElementLocalizer
    NamedSetDefinitionLocalizer
    PermissionedElementLocalizer
    PermissionLocalizer
    ValidationRuleLocalizer
    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: TimeCockpit.Data.Localization.Default
    Assembly: TimeCockpit.Data.dll
    Syntax
    public abstract class ModelElementLocalizer

    Constructors

    ModelElementLocalizer(String)

    Initializes a new instance of the ModelElementLocalizer class.

    Declaration
    public ModelElementLocalizer(string name)
    Parameters
    Type Name Description
    System.String name

    the name of the element.

    ModelElementLocalizer(ModelElementLocalizer)

    Initializes a new instance of the ModelElementLocalizer class.

    Declaration
    public ModelElementLocalizer(ModelElementLocalizer source)
    Parameters
    Type Name Description
    ModelElementLocalizer source

    the source to copy from.

    Properties

    FriendlyName

    Gets the StringLocalizer for the friendly name;

    Declaration
    public StringLocalizer FriendlyName { get; }
    Property Value
    Type Description
    StringLocalizer

    Name

    Gets the name of the element.

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    System.String

    Methods

    Accept(LocalizerVisitor)

    accepts a visitor for the elements

    Declaration
    public virtual void Accept(LocalizerVisitor visitor)
    Parameters
    Type Name Description
    LocalizerVisitor visitor

    the visitor to accept

    Clone()

    clones the localizer.

    Declaration
    public abstract ModelElementLocalizer Clone()
    Returns
    Type Description
    ModelElementLocalizer

    a deep copy of the localizer.

    MergeFrom(ModelElementLocalizer)

    Merges names from the source to this.

    Declaration
    public virtual void MergeFrom(ModelElementLocalizer source)
    Parameters
    Type Name Description
    ModelElementLocalizer source

    the source to merge from.

    RemoveLocalizations()

    Removes all cultures.

    Declaration
    public virtual void RemoveLocalizations()

    Extension Methods

    ClearDirtyFlagVisitorHelper.ClearDirtyFlag(ModelElementLocalizer)
    DistinctCultureCollectVisitorHelper.GetCultures(ModelElementLocalizer)
    In This Article
    • Constructors
      • ModelElementLocalizer(String)
      • ModelElementLocalizer(ModelElementLocalizer)
    • Properties
      • FriendlyName
      • Name
    • Methods
      • Accept(LocalizerVisitor)
      • Clone()
      • MergeFrom(ModelElementLocalizer)
      • RemoveLocalizations()
    • Extension Methods
    Back to top Copyright © 2020 software architects gmbh