Ejemplo n.º 1
0
 /// <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);
 }
Ejemplo n.º 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();
 }
Ejemplo n.º 4
0
 /**
  * Build up this event with a role.
  *
  * @param role The role.
  * @return this.
  */
 public Event SetRole(EventRole role)
 {
     AddRole(role);
     return(this);
 }
Ejemplo n.º 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);
     }
 }
Ejemplo n.º 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);
 }