Esempio n. 1
0
 public static ITaggedValueType ReferenceList(ElementStereotype stype)
 {
     return(new StructuredType(new Dictionary <String, String> {
         { "Type", "RefGUIDList" },
         { "Values", stype.Type.Name },
         { "Stereotypes", stype.Name }
     }));
 }
Esempio n. 2
0
 public PackageStereotype(String name, String displayName, Icon icon = null, IEnumerable <TaggedValueDefinition> taggedValues = null,
                          Color?backgroundColor = null)
 {
     Element = new ElementStereotype(
         name: name,
         displayName: displayName,
         type: ElementType.Package,
         icon: icon,
         taggedValues: taggedValues,
         backgroundColor: backgroundColor);
 }
Esempio n. 3
0
 public ElementStereotype(String name, String displayName, ElementType type,
                          Icon icon          = null,
                          String shapeScript = null,
                          IEnumerable <TaggedValueDefinition> taggedValues = null,
                          Color?backgroundColor          = null,
                          int?width                      = null,
                          int?height                     = null,
                          ElementStereotype instanceType = null)
 {
     Name            = name;
     DisplayName     = displayName;
     Type            = type;
     Icon            = icon.AsOption();
     ShapeScript     = shapeScript.AsOption();
     TaggedValues    = taggedValues ?? new TaggedValueDefinition[] { };
     BackgroundColor = backgroundColor.AsOption();
     Width           = width.AsOption();
     Height          = height.AsOption();
     InstanceType    = instanceType.AsOption();
 }
Esempio n. 4
0
 private ElementType(String name)
     : base(name)
 {
     DefaultStereotype = new ElementStereotype(name: "", displayName: Name, type: this);
 }
Esempio n. 5
0
 private Connection(ElementStereotype from, ElementStereotype to, ConnectorStereotype connectorStereotype)
 {
     From = from;
     To   = to;
     ConnectorStereotype = connectorStereotype;
 }
Esempio n. 6
0
 public Connection(ElementStereotype from, ElementStereotype to) : this(from, to, null)
 {
 }