示例#1
0
		public static Attribute GetAttribute(Value element)
		{
			return DslModeling::DomainRoleInfo.GetLinkedElement(element, ValueDomainRoleId) as Attribute;
		}
示例#2
0
		public static void SetAttribute(Value element, Attribute newAttribute)
		{
			DslModeling::DomainRoleInfo.SetLinkedElement(element, ValueDomainRoleId, newAttribute);
		}
示例#3
0
		/// <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)
		{
		}