public static ITaggedValueType ReferenceList(ElementStereotype stype) { return(new StructuredType(new Dictionary <String, String> { { "Type", "RefGUIDList" }, { "Values", stype.Type.Name }, { "Stereotypes", stype.Name } })); }
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); }
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(); }
private ElementType(String name) : base(name) { DefaultStereotype = new ElementStereotype(name: "", displayName: Name, type: this); }
private Connection(ElementStereotype from, ElementStereotype to, ConnectorStereotype connectorStereotype) { From = from; To = to; ConnectorStereotype = connectorStereotype; }
public Connection(ElementStereotype from, ElementStereotype to) : this(from, to, null) { }