public void ValidateNames(UMLClassType umlType, Microsoft.VisualStudio.Modeling.Validation.ValidationContext context, object model) { }
public void ValidateNames(UMLClassType umlType, ValidationContext context, object model) { switch (umlType) { case UMLClassType.Class: IClass classModel = model as IClass; ValidateClassName(context, classModel); break; case UMLClassType.Property: Microsoft.VisualStudio.Uml.Classes.IProperty property = model as Microsoft.VisualStudio.Uml.Classes.IProperty; ValidatePropertyName(context, property); break; case UMLClassType.Interface: IInterface interfaceModel = model as IInterface; ValidateInterfaceName(context, interfaceModel); break; case UMLClassType.Package: IPackage packageModel = model as IPackage; ValidatePackageName(context, packageModel); break; default: break; } }