コード例 #1
0
 public static DslModeling::LinkedElementCollection <ExampleElement> GetTargets(ExampleElement element)
 {
     return(GetRoleCollection <DslModeling::LinkedElementCollection <ExampleElement>, ExampleElement>(element, SourceDomainRoleId));
 }
コード例 #2
0
 /// <summary>
 /// Constructor
 /// Creates a ExampleModelHasElements link in the same Partition as the given ExampleModel
 /// </summary>
 /// <param name="source">ExampleModel to use as the source of the relationship.</param>
 /// <param name="target">ExampleElement to use as the target of the relationship.</param>
 public ExampleModelHasElements(ExampleModel source, ExampleElement target)
     : base((source != null ? source.Partition : null), new DslModeling::RoleAssignment[] { new DslModeling::RoleAssignment(ExampleModelHasElements.ExampleModelDomainRoleId, source), new DslModeling::RoleAssignment(ExampleModelHasElements.ElementDomainRoleId, target) }, null)
 {
 }
コード例 #3
0
 public static void SetExampleModel(ExampleElement element, ExampleModel newExampleModel)
 {
     DslModeling::DomainRoleInfo.SetLinkedElement(element, ElementDomainRoleId, newExampleModel);
 }
コード例 #4
0
 /// <summary>
 /// Constructor
 /// Creates a ExampleElementReferencesTargets link in the same Partition as the given ExampleElement
 /// </summary>
 /// <param name="source">ExampleElement to use as the source of the relationship.</param>
 /// <param name="target">ExampleElement to use as the target of the relationship.</param>
 public ExampleElementReferencesTargets(ExampleElement source, ExampleElement target)
     : base((source != null ? source.Partition : null), new DslModeling::RoleAssignment[] { new DslModeling::RoleAssignment(ExampleElementReferencesTargets.SourceDomainRoleId, source), new DslModeling::RoleAssignment(ExampleElementReferencesTargets.TargetDomainRoleId, target) }, null)
 {
 }
コード例 #5
0
 public static ExampleModel GetExampleModel(ExampleElement element)
 {
     return(DslModeling::DomainRoleInfo.GetLinkedElement(element, ElementDomainRoleId) as ExampleModel);
 }