Class ValidateElementsExistVisitor
class visiting
Inheritance
Inherited Members
Namespace: TimeCockpit.Data.Localization.Default
Assembly: TimeCockpit.Data.dll
Syntax
public class ValidateElementsExistVisitor : StatefulVisitorBase
Constructors
ValidateElementsExistVisitor(Model)
Initializes a new instance of the ValidateElementsExistVisitor class.
Declaration
public ValidateElementsExistVisitor(Model targetModel)
Parameters
Type | Name | Description |
---|---|---|
Model | targetModel | the target model to validate against. |
Properties
NonExisitingProperties
Gets the found property localizers that don't exist in the target model
Declaration
public IEnumerable<Tuple<EntityLocalizer, PropertyLocalizer>> NonExisitingProperties { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Tuple<EntityLocalizer, PropertyLocalizer>> |
NonExistingActions
Gets the found action localizers that don't have a corresponding action in the target model.
Declaration
public IEnumerable<ActionLocalizer> NonExistingActions { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ActionLocalizer> |
NonExistingEntities
Gets the found entity localizers that don't exist in the target model.
Declaration
public IEnumerable<EntityLocalizer> NonExistingEntities { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<EntityLocalizer> |
NonExistingEntityPermissions
Gets the found entity permissions that don't have a corresponding Permission in the target model.
Declaration
public IEnumerable<Tuple<EntityLocalizer, PermissionLocalizer>> NonExistingEntityPermissions { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Tuple<EntityLocalizer, PermissionLocalizer>> |
NonExistingEntityViews
Gets the found entity view localizers that don't have a corresponding EntityView in the target model.
Declaration
public IEnumerable<EntityViewLocalizer> NonExistingEntityViews { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<EntityViewLocalizer> |
NonExistingLogicalRelationPermissions
Gets the found logical relation permissions that don't have a corresponding Permission in the target model.
Declaration
public IEnumerable<Tuple<EntityLocalizer, LogicalRelationLocalizer, PermissionLocalizer>> NonExistingLogicalRelationPermissions { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Tuple<EntityLocalizer, LogicalRelationLocalizer, PermissionLocalizer>> |
NonExistingLogicalRelations
Gets the found logical relation localizers that don't exist in the target model.
Declaration
public IEnumerable<Tuple<EntityLocalizer, LogicalRelationLocalizer>> NonExistingLogicalRelations { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Tuple<EntityLocalizer, LogicalRelationLocalizer>> |
NonExistingNamedSetDefinitions
Gets the found named set definition localizers that don't have a corresponding NamedSetDefinition in the target model.
Declaration
public IEnumerable<NamedSetDefinitionLocalizer> NonExistingNamedSetDefinitions { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<NamedSetDefinitionLocalizer> |
NonExistingPropertyPermissions
Gets the found property permissions that don't have a corresponding Permission in the target model.
Declaration
public IEnumerable<Tuple<EntityLocalizer, PropertyLocalizer, PermissionLocalizer>> NonExistingPropertyPermissions { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Tuple<EntityLocalizer, PropertyLocalizer, PermissionLocalizer>> |
NonExistingRelationPermissions
Gets the found relation permissions that don't have a corresponding Permission in the target model.
Declaration
public IEnumerable<Tuple<EntityLocalizer, RelationLocalizer, PermissionLocalizer>> NonExistingRelationPermissions { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Tuple<EntityLocalizer, RelationLocalizer, PermissionLocalizer>> |
NonExistingRelations
Gets the found relation localizers that don't exist in the target model.
Declaration
public IEnumerable<Tuple<EntityLocalizer, RelationLocalizer>> NonExistingRelations { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Tuple<EntityLocalizer, RelationLocalizer>> |
NonExistingValidationRules
Gets the found validation rule localizers that don't exist in the target model.
Declaration
public IEnumerable<Tuple<EntityLocalizer, ValidationRuleLocalizer>> NonExistingValidationRules { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Tuple<EntityLocalizer, ValidationRuleLocalizer>> |
Methods
Visit(ActionLocalizer)
Checks whether an action corresponding to the given actionLocalizer exists in the target model.
Declaration
public override void Visit(ActionLocalizer actionLocalizer)
Parameters
Type | Name | Description |
---|---|---|
ActionLocalizer | actionLocalizer | the ActionLocalizer to validate. |
Overrides
Visit(EntityLocalizer)
Checks whether the entity exists in the target model.
Declaration
public override void Visit(EntityLocalizer entityLocalizer)
Parameters
Type | Name | Description |
---|---|---|
EntityLocalizer | entityLocalizer | the EntityLocalizer to validate. |
Overrides
Visit(EntityViewLocalizer)
Checks whether the EntityViewLocalizer has a corresponding EntityView in the target model.
Declaration
public override void Visit(EntityViewLocalizer entityViewLocalizer)
Parameters
Type | Name | Description |
---|---|---|
EntityViewLocalizer | entityViewLocalizer | the entityViewLocalizer to check. |
Overrides
Visit(LogicalRelationLocalizer)
Validates that the logical relation exists in the target model.
Declaration
public override void Visit(LogicalRelationLocalizer logicalRelationLocalizer)
Parameters
Type | Name | Description |
---|---|---|
LogicalRelationLocalizer | logicalRelationLocalizer | The logical relation localizer to validate. |
Overrides
Visit(NamedSetDefinitionLocalizer)
Validates that a NamedSetDefinition corresponding to the NamedSetDefinitionLocalizer exists in the target model.
Declaration
public override void Visit(NamedSetDefinitionLocalizer namedSetDefinitionLocalizer)
Parameters
Type | Name | Description |
---|---|---|
NamedSetDefinitionLocalizer | namedSetDefinitionLocalizer | the namedSetDefinitionLocalizer to validate. |
Overrides
Visit(PermissionLocalizer)
Checks whether the PermissionLocalizer has a corresponding Permission in the target model.
Declaration
public override void Visit(PermissionLocalizer permissionLocalizer)
Parameters
Type | Name | Description |
---|---|---|
PermissionLocalizer | permissionLocalizer | the permission localizer to find. |
Overrides
Visit(PropertyLocalizer)
Checks whether the property belonging to the current entity exists in the target model.
Declaration
public override void Visit(PropertyLocalizer propertyLocalizer)
Parameters
Type | Name | Description |
---|---|---|
PropertyLocalizer | propertyLocalizer | the PropertyLocalizer to validate. |
Overrides
Visit(RelationLocalizer)
validates that the relation exists in the target model.
Declaration
public override void Visit(RelationLocalizer relationLocalizer)
Parameters
Type | Name | Description |
---|---|---|
RelationLocalizer | relationLocalizer | the relation localizer to validate. |
Overrides
Visit(ValidationRuleLocalizer)
Validates that a ValidationRule corresponding to the ValidationRuleLocalizer exists in the target model.
Declaration
public override void Visit(ValidationRuleLocalizer validationRuleLocalizer)
Parameters
Type | Name | Description |
---|---|---|
ValidationRuleLocalizer | validationRuleLocalizer | the validation rule localizer to validate. |