예제 #1
0
        private static XName GetAttributeType(MyAttribute a)
        {
            string type = "attribute";

            if (a.Type.Equals("Name"))
            {
                type = "text";
            }
            if (a.Type.Equals("Namespace"))
            {
                type = "combo";
            }
            if (a.Type.Equals("Boolean"))
            {
                type = "checkbox";
            }
            if (a.Type.Equals("VisibilityKind"))
            {
                type = "optionbox";
            }
            // TODO: This is false, lists are build from associations
            if (a.Multiplicity.Upper == -1)
            {
                type = "list";
            }
            return(XName.Get(type));
        }
예제 #2
0
 private static bool ShouldBeIgnored(MyAttribute a)
 {
     return(a.Type.Equals("Stereotype") ||
            a.Type.Equals("TaggedValue") ||
            a.Type.Equals("Constraint")
            );
 }
예제 #3
0
 private static bool IsGrouped(MyAttribute a)
 {
     return(a.Type.Equals("Boolean"));
 }
예제 #4
0
 private static XName GetAttributeType(MyAttribute a)
 {
     string type = "attribute";
     if (a.Type.Equals("Name"))
     {
         type = "text";
     }
     if (a.Type.Equals("Namespace"))
     {
         type = "combo";
     }
     if (a.Type.Equals("Boolean"))
     {
         type = "checkbox";
     }
     if (a.Type.Equals("VisibilityKind"))
     {
         type = "optionbox";
     }
     // TODO: This is false, lists are build from associations
     if (a.Multiplicity.Upper == -1)
     {
         type = "list";
     }
     return XName.Get(type);
 }
예제 #5
0
 private static bool ShouldBeIgnored(MyAttribute a)
 {
     return a.Type.Equals("Stereotype")
         || a.Type.Equals("TaggedValue")
         || a.Type.Equals("Constraint")
         ;
 }
예제 #6
0
 private static bool IsGrouped(MyAttribute a)
 {
     return a.Type.Equals("Boolean");
 }