Exemplo n.º 1
0
		public static void SetPredefinedDataType(Domain element, PredefinedDataType newPredefinedDataType)
		{
			DslModeling::DomainRoleInfo.SetLinkedElement(element, DomainDomainRoleId, newPredefinedDataType);
		}
Exemplo n.º 2
0
		public static Domain GetDomain(PredefinedDataType element)
		{
			return DslModeling::DomainRoleInfo.GetLinkedElement(element, PredefinedDataTypeDomainRoleId) as Domain;
		}
Exemplo n.º 3
0
		public static void SetDomain(PredefinedDataType element, Domain newDomain)
		{
			DslModeling::DomainRoleInfo.SetLinkedElement(element, PredefinedDataTypeDomainRoleId, newDomain);
		}
Exemplo n.º 4
0
		/// <summary>
		/// Constructor
		/// Creates a DomainHasPredefinedDataType link in the same Partition as the given Domain
		/// </summary>
		/// <param name="source">Domain to use as the source of the relationship.</param>
		/// <param name="target">PredefinedDataType to use as the target of the relationship.</param>
		public DomainHasPredefinedDataType(Domain source, PredefinedDataType target)
			: base((source != null ? source.Partition : null), new DslModeling::RoleAssignment[]{new DslModeling::RoleAssignment(DomainHasPredefinedDataType.DomainDomainRoleId, source), new DslModeling::RoleAssignment(DomainHasPredefinedDataType.PredefinedDataTypeDomainRoleId, target)}, null)
		{
		}