Class ModelElementLocalizer
- Assembly
- TimeCockpit.Data.dll
Base class for all localizer classes that localize model elements.
public abstract class ModelElementLocalizer
- Inheritance
-
ObjectModelElementLocalizer
- Derived
- Inherited Members
-
Object.ToString()Object.Equals(Object)Object.Equals(Object, Object)Object.ReferenceEquals(Object, Object)Object.GetHashCode()Object.GetType()Object.MemberwiseClone()
- Extension Methods
Constructors
ModelElementLocalizer(String)
Initializes a new instance of the ModelElementLocalizer class.
public ModelElementLocalizer(string name)
Parameters
nameStringthe name of the element.
ModelElementLocalizer(ModelElementLocalizer)
Initializes a new instance of the ModelElementLocalizer class.
public ModelElementLocalizer(ModelElementLocalizer source)
Parameters
sourceModelElementLocalizerthe source to copy from.
Properties
FriendlyName
Gets the StringLocalizer for the friendly name;
public StringLocalizer FriendlyName { get; }
Property Value
Name
Gets the name of the element.
public string Name { get; }
Property Value
- String
Methods
Accept(LocalizerVisitor)
accepts a visitor for the elements
public virtual void Accept(LocalizerVisitor visitor)
Parameters
visitorLocalizerVisitorthe visitor to accept
Clone()
clones the localizer.
public abstract ModelElementLocalizer Clone()
Returns
- ModelElementLocalizer
a deep copy of the localizer.
MergeFrom(ModelElementLocalizer)
Merges names from the source to this.
public virtual void MergeFrom(ModelElementLocalizer source)
Parameters
sourceModelElementLocalizerthe source to merge from.
RemoveLocalizations()
Removes all cultures.
public virtual void RemoveLocalizations()