/// <summary>
 /// Visits the event role.
 /// </summary>
 /// <param name="role">The event role to visit.</param>
 public override void VisitEventRole(Gx.Conclusion.EventRole role)
 {
     if (role.Id != null)
     {
         this.dictionary.Add(role.Id, role);
     }
     base.VisitEventRole(role);
 }
Example #2
0
 /**
  * Add a role to the list of roles played in this event.
  *
  * @param role The role to be added.
  */
 public void AddRole(EventRole role)
 {
     if (role != null)
     {
         if (_roles == null)
         {
             _roles = new List <EventRole>();
         }
         _roles.Add(role);
     }
 }
 public virtual void VisitEventRole(EventRole role)
 {
     this.contextStack.Push(role);
     VisitConclusion(role);
     this.contextStack.Pop();
 }
Example #4
0
 /**
  * Build up this event with a role.
  *
  * @param role The role.
  * @return this.
  */
 public Event SetRole(EventRole role)
 {
     AddRole(role);
     return(this);
 }
Example #5
0
 /**
  * Add a role to the list of roles played in this event.
  *
  * @param role The role to be added.
  */
 public void AddRole(EventRole role)
 {
     if (role != null)
     {
         if (_roles == null)
         {
             _roles = new List<EventRole>();
         }
         _roles.Add(role);
     }
 }
Example #6
0
 /**
  * Build up this event with a role.
  *
  * @param role The role.
  * @return this.
  */
 public Event SetRole(EventRole role)
 {
     AddRole(role);
     return this;
 }
 public override void VisitEventRole(EventRole role)
 {
     BindIfNeeded(role);
     base.VisitEventRole(role);
 }