Table of Contents

Class ValidateElementsExistVisitor

Namespace
TimeCockpit.Data.Localization.Default
Assembly
TimeCockpit.Data.dll

class visiting

public class ValidateElementsExistVisitor : StatefulVisitorBase
Inheritance
Object
ValidateElementsExistVisitor
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()

Constructors

ValidateElementsExistVisitor(Model)

Initializes a new instance of the ValidateElementsExistVisitor class.

public ValidateElementsExistVisitor(Model targetModel)

Parameters

targetModel Model

the target model to validate against.

Properties

NonExisitingProperties

Gets the found property localizers that don't exist in the target model

public IEnumerable<Tuple<EntityLocalizer, PropertyLocalizer>> NonExisitingProperties { get; }

Property Value

IEnumerable<Tuple<EntityLocalizer, PropertyLocalizer>>

NonExistingActions

Gets the found action localizers that don't have a corresponding action in the target model.

public IEnumerable<ActionLocalizer> NonExistingActions { get; }

Property Value

IEnumerable<ActionLocalizer>

NonExistingEntities

Gets the found entity localizers that don't exist in the target model.

public IEnumerable<EntityLocalizer> NonExistingEntities { get; }

Property Value

IEnumerable<EntityLocalizer>

NonExistingEntityPermissions

Gets the found entity permissions that don't have a corresponding Permission in the target model.

public IEnumerable<Tuple<EntityLocalizer, PermissionLocalizer>> NonExistingEntityPermissions { get; }

Property Value

IEnumerable<Tuple<EntityLocalizer, PermissionLocalizer>>

NonExistingEntityViews

Gets the found entity view localizers that don't have a corresponding EntityView in the target model.

public IEnumerable<EntityViewLocalizer> NonExistingEntityViews { get; }

Property Value

IEnumerable<EntityViewLocalizer>

NonExistingLogicalRelationPermissions

Gets the found logical relation permissions that don't have a corresponding Permission in the target model.

public IEnumerable<Tuple<EntityLocalizer, LogicalRelationLocalizer, PermissionLocalizer>> NonExistingLogicalRelationPermissions { get; }

Property Value

IEnumerable<Tuple<EntityLocalizer, LogicalRelationLocalizer, PermissionLocalizer>>

NonExistingLogicalRelations

Gets the found logical relation localizers that don't exist in the target model.

public IEnumerable<Tuple<EntityLocalizer, LogicalRelationLocalizer>> NonExistingLogicalRelations { get; }

Property Value

IEnumerable<Tuple<EntityLocalizer, LogicalRelationLocalizer>>

NonExistingNamedSetDefinitions

Gets the found named set definition localizers that don't have a corresponding NamedSetDefinition in the target model.

public IEnumerable<NamedSetDefinitionLocalizer> NonExistingNamedSetDefinitions { get; }

Property Value

IEnumerable<NamedSetDefinitionLocalizer>

NonExistingPropertyPermissions

Gets the found property permissions that don't have a corresponding Permission in the target model.

public IEnumerable<Tuple<EntityLocalizer, PropertyLocalizer, PermissionLocalizer>> NonExistingPropertyPermissions { get; }

Property Value

IEnumerable<Tuple<EntityLocalizer, PropertyLocalizer, PermissionLocalizer>>

NonExistingRelationPermissions

Gets the found relation permissions that don't have a corresponding Permission in the target model.

public IEnumerable<Tuple<EntityLocalizer, RelationLocalizer, PermissionLocalizer>> NonExistingRelationPermissions { get; }

Property Value

IEnumerable<Tuple<EntityLocalizer, RelationLocalizer, PermissionLocalizer>>

NonExistingRelations

Gets the found relation localizers that don't exist in the target model.

public IEnumerable<Tuple<EntityLocalizer, RelationLocalizer>> NonExistingRelations { get; }

Property Value

IEnumerable<Tuple<EntityLocalizer, RelationLocalizer>>

NonExistingValidationRules

Gets the found validation rule localizers that don't exist in the target model.

public IEnumerable<Tuple<EntityLocalizer, ValidationRuleLocalizer>> NonExistingValidationRules { get; }

Property Value

IEnumerable<Tuple<EntityLocalizer, ValidationRuleLocalizer>>

Methods

Visit(ActionLocalizer)

Checks whether an action corresponding to the given actionLocalizer exists in the target model.

public override void Visit(ActionLocalizer actionLocalizer)

Parameters

actionLocalizer ActionLocalizer

the ActionLocalizer to validate.

Visit(EntityLocalizer)

Checks whether the entity exists in the target model.

public override void Visit(EntityLocalizer entityLocalizer)

Parameters

entityLocalizer EntityLocalizer

the EntityLocalizer to validate.

Visit(EntityViewLocalizer)

Checks whether the EntityViewLocalizer has a corresponding EntityView in the target model.

public override void Visit(EntityViewLocalizer entityViewLocalizer)

Parameters

entityViewLocalizer EntityViewLocalizer

the entityViewLocalizer to check.

Visit(LogicalRelationLocalizer)

Validates that the logical relation exists in the target model.

public override void Visit(LogicalRelationLocalizer logicalRelationLocalizer)

Parameters

logicalRelationLocalizer LogicalRelationLocalizer

The logical relation localizer to validate.

Visit(NamedSetDefinitionLocalizer)

Validates that a NamedSetDefinition corresponding to the NamedSetDefinitionLocalizer exists in the target model.

public override void Visit(NamedSetDefinitionLocalizer namedSetDefinitionLocalizer)

Parameters

namedSetDefinitionLocalizer NamedSetDefinitionLocalizer

the namedSetDefinitionLocalizer to validate.

Visit(PermissionLocalizer)

Checks whether the PermissionLocalizer has a corresponding Permission in the target model.

public override void Visit(PermissionLocalizer permissionLocalizer)

Parameters

permissionLocalizer PermissionLocalizer

the permission localizer to find.

Visit(PropertyLocalizer)

Checks whether the property belonging to the current entity exists in the target model.

public override void Visit(PropertyLocalizer propertyLocalizer)

Parameters

propertyLocalizer PropertyLocalizer

the PropertyLocalizer to validate.

Visit(RelationLocalizer)

validates that the relation exists in the target model.

public override void Visit(RelationLocalizer relationLocalizer)

Parameters

relationLocalizer RelationLocalizer

the relation localizer to validate.

Visit(ValidationRuleLocalizer)

Validates that a ValidationRule corresponding to the ValidationRuleLocalizer exists in the target model.

public override void Visit(ValidationRuleLocalizer validationRuleLocalizer)

Parameters

validationRuleLocalizer ValidationRuleLocalizer

the validation rule localizer to validate.