/// <summary>
        /// Valida um elemento de acordo com o tipo e diagrama ao qual pertence
        /// </summary>
        public void ValidateElement(UmlDiagram diagram, UmlBase element)
        {
            foreach (KeyValuePair <string, string> pair in element.TaggedValues)
            {
                MethodInfo method = this.GetType().GetMethod(
                    diagram.GetType().Name + "_" + element.GetType().Name + "_" + pair.Key);

                String info;
                if (element is UmlUseCase)
                {
                    UmlUseCase aux = (UmlUseCase)element;
                    info = diagram.Name + " >> " + aux.Name + " >> " + pair.Key;
                }
                else
                {
                    info = diagram.Name + " >> " + element.Name + " >> " + pair.Key;
                }



                if (method != null)
                {
                    method.Invoke(this, new object[] { pair.Value, info });
                }
            }
        }
        public void ValidateElement(UmlDiagram diagram, UmlBase element)
        {
            foreach (KeyValuePair <string, string> pair in element.TaggedValues)
            {
                String name = diagram.GetType().Name + "_" + element.GetType().Name + "_" + pair.Key;

                if (pair.Key.Contains("jude.hyperlink"))
                {
                    name = pair.Key.Replace('.', '_');
                }

                MethodInfo method = this.GetType().GetMethod(name);

                String info;
                if (element is UmlUseCase)
                {
                    UmlUseCase aux = (UmlUseCase)element;
                    info = diagram.Name + " >> " + aux.Name + " >> " + pair.Key;
                }
                else
                {
                    info = diagram.Name + " >> " + element.Name + " >> " + pair.Key;
                }
                if (method != null)
                {
                    method.Invoke(this, new object[] { pair.Value, info });
                }
            }
        }