Example #1
0
		public static void SetBarkerErModel(BinaryAssociation element, BarkerErModel newBarkerErModel)
		{
			DslModeling::DomainRoleInfo.SetLinkedElement(element, BinaryAssociationDomainRoleId, newBarkerErModel);
		}
Example #2
0
		public static BarkerErModel GetBarkerErModel(BinaryAssociation element)
		{
			return DslModeling::DomainRoleInfo.GetLinkedElement(element, BinaryAssociationDomainRoleId) as BarkerErModel;
		}
Example #3
0
		/// <summary>
		/// Constructor
		/// Creates a BarkerErModelContainsBinaryAssociation link in the same Partition as the given BarkerErModel
		/// </summary>
		/// <param name="source">BarkerErModel to use as the source of the relationship.</param>
		/// <param name="target">BinaryAssociation to use as the target of the relationship.</param>
		public BarkerErModelContainsBinaryAssociation(BarkerErModel source, BinaryAssociation target)
			: base((source != null ? source.Partition : null), new DslModeling::RoleAssignment[]{new DslModeling::RoleAssignment(BarkerErModelContainsBinaryAssociation.BarkerErModelDomainRoleId, source), new DslModeling::RoleAssignment(BarkerErModelContainsBinaryAssociation.BinaryAssociationDomainRoleId, target)}, null)
		{
		}
Example #4
0
		public static DslModeling::LinkedElementCollection<Role> GetRoleCollection(BinaryAssociation element)
		{
			return new DslModeling::LinkedElementCollection<Role>(element, BinaryAssociationDomainRoleId);
		}
Example #5
0
		public static void SetBinaryAssociation(Role element, BinaryAssociation newBinaryAssociation)
		{
			DslModeling::DomainRoleInfo.SetLinkedElement(element, RoleDomainRoleId, newBinaryAssociation);
		}
Example #6
0
		/// <summary>
		/// Constructor
		/// Creates a BinaryAssociationContainsRole link in the same Partition as the given BinaryAssociation
		/// </summary>
		/// <param name="source">BinaryAssociation to use as the source of the relationship.</param>
		/// <param name="target">Role to use as the target of the relationship.</param>
		public BinaryAssociationContainsRole(BinaryAssociation source, Role target)
			: base((source != null ? source.Partition : null), new DslModeling::RoleAssignment[]{new DslModeling::RoleAssignment(BinaryAssociationContainsRole.BinaryAssociationDomainRoleId, source), new DslModeling::RoleAssignment(BinaryAssociationContainsRole.RoleDomainRoleId, target)}, null)
		{
		}