Esempio n. 1
0
		public static void SetCardinalityQualifier(Role element, CardinalityQualifier newCardinalityQualifier)
		{
			DslModeling::DomainRoleInfo.SetLinkedElement(element, RoleDomainRoleId, newCardinalityQualifier);
		}
Esempio n. 2
0
		public static Role GetRole(CardinalityQualifier element)
		{
			return DslModeling::DomainRoleInfo.GetLinkedElement(element, CardinalityQualifierDomainRoleId) as Role;
		}
Esempio n. 3
0
		public static void SetRole(CardinalityQualifier element, Role newRole)
		{
			DslModeling::DomainRoleInfo.SetLinkedElement(element, CardinalityQualifierDomainRoleId, newRole);
		}
Esempio n. 4
0
		/// <summary>
		/// Constructor
		/// Creates a RoleHasCardinalityQualifier link in the same Partition as the given Role
		/// </summary>
		/// <param name="source">Role to use as the source of the relationship.</param>
		/// <param name="target">CardinalityQualifier to use as the target of the relationship.</param>
		public RoleHasCardinalityQualifier(Role source, CardinalityQualifier target)
			: base((source != null ? source.Partition : null), new DslModeling::RoleAssignment[]{new DslModeling::RoleAssignment(RoleHasCardinalityQualifier.RoleDomainRoleId, source), new DslModeling::RoleAssignment(RoleHasCardinalityQualifier.CardinalityQualifierDomainRoleId, target)}, null)
		{
		}