Class LocalizationVisitor
visitor to retrieve the correct friendly name.
Inherited Members
Namespace: TimeCockpit.Data.Localization.Default
Assembly: TimeCockpit.Data.dll
Syntax
public class LocalizationVisitor : ModelElementVisitorBase
Constructors
LocalizationVisitor(DefaultLocalizer)
Initializes a new instance of the LocalizationVisitor class.
Declaration
public LocalizationVisitor(DefaultLocalizer localizer)
Parameters
Type | Name | Description |
---|---|---|
DefaultLocalizer | localizer | the localizer to use for finding elements. |
Properties
FriendlyName
Gets the result friendly name for the element.
Declaration
public StringLocalizer FriendlyName { get; }
Property Value
Type | Description |
---|---|
StringLocalizer |
Message
Gets the message to from validation rules / permissions.
Declaration
public StringLocalizer Message { get; }
Property Value
Type | Description |
---|---|
StringLocalizer |
Methods
Visit(ModelAction)
Visits a ModelAction model element.
Declaration
public override void Visit(ModelAction modelAction)
Parameters
Type | Name | Description |
---|---|---|
ModelAction | modelAction | the model action to visit. |
Overrides
Visit(EntityView)
Visits a EntityView model element.
Declaration
public override void Visit(EntityView entityView)
Parameters
Type | Name | Description |
---|---|---|
EntityView | entityView | the entityView to visit. |
Overrides
Visit(LogicalRelation)
Visits a LogicalRelation model element.
Declaration
public override void Visit(LogicalRelation logicalRelation)
Parameters
Type | Name | Description |
---|---|---|
LogicalRelation | logicalRelation | The logical relation to visit. |
Overrides
Visit(ModelEntityBase)
Visits a ModelEntityBase model element.
Declaration
public override void Visit(ModelEntityBase modelEntityBase)
Parameters
Type | Name | Description |
---|---|---|
ModelEntityBase | modelEntityBase | the model entity to visit. |
Overrides
Visit(ModelProperty)
Visits a ModelProperty model element.
Declaration
public override void Visit(ModelProperty property)
Parameters
Type | Name | Description |
---|---|---|
ModelProperty | property | the ModelProperty to visit. |
Overrides
Visit(NamedSetDefinition)
Visits a NamedSetDefinition model element.
Declaration
public override void Visit(NamedSetDefinition namedSetDefinition)
Parameters
Type | Name | Description |
---|---|---|
NamedSetDefinition | namedSetDefinition | the NamedSetDefinition to visit. |
Overrides
Visit(Relation)
Visits a Relation model element.
Declaration
public override void Visit(Relation relation)
Parameters
Type | Name | Description |
---|---|---|
Relation | relation | the relation to visit. |
Overrides
Visit(ValidationRule)
Visits a ValidationRule model element.
Declaration
public override void Visit(ValidationRule validationRule)
Parameters
Type | Name | Description |
---|---|---|
ValidationRule | validationRule | the ValidationRule to visit. |
Overrides
Visit(Permission)
Visits a Permission model element.
Declaration
public override void Visit(Permission permission)
Parameters
Type | Name | Description |
---|---|---|
Permission | permission | the permission to visit. |