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