public static Attribute GetAttribute(Value element) { return DslModeling::DomainRoleInfo.GetLinkedElement(element, ValueDomainRoleId) as Attribute; }
public static void SetAttribute(Value element, Attribute newAttribute) { DslModeling::DomainRoleInfo.SetLinkedElement(element, ValueDomainRoleId, newAttribute); }
/// <summary> /// Constructor /// Creates a AttributeHasPossibleValue link in the same Partition as the given Attribute /// </summary> /// <param name="source">Attribute to use as the source of the relationship.</param> /// <param name="target">Value to use as the target of the relationship.</param> public AttributeHasPossibleValue(Attribute source, Value target) : base((source != null ? source.Partition : null), new DslModeling::RoleAssignment[]{new DslModeling::RoleAssignment(AttributeHasPossibleValue.AttributeDomainRoleId, source), new DslModeling::RoleAssignment(AttributeHasPossibleValue.ValueDomainRoleId, target)}, null) { }