/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="workforcePersonalRefId">The REFID of the member of Staff</param> ///<param name="participationTypes">A ParticipationTypes</param> /// public Employee( string workforcePersonalRefId, ParticipationType participationTypes ) : base(LearnerDTD.EMPLOYEE) { this.WorkforcePersonalRefId = workforcePersonalRefId; this.ParticipationTypes = new ParticipationTypes( participationTypes ); }
///<summary>Sets the value of the <c><ParticipationTypes></c> element.</summary> /// <param name="ParticipationType">The capacity of Involvement</param> ///<remarks> /// <para>This form of <c>setParticipationTypes</c> is provided as a convenience method /// that is functionally equivalent to the <c>ParticipationTypes</c></para> /// <para>Version: 2.6</para> /// <para>Since: 2.3</para> /// </remarks> public void SetParticipationTypes(ParticipationType ParticipationType) { RemoveChild(LearnerDTD.LEARNER_PARTICIPATIONTYPES); AddChild(LearnerDTD.LEARNER_PARTICIPATIONTYPES, new ParticipationTypes(ParticipationType)); }
///<summary>Sets the value of the <c><ParticipationTypes></c> element.</summary> /// <param name="ParticipationType">The capacity of Involvement</param> ///<remarks> /// <para>This form of <c>setParticipationTypes</c> is provided as a convenience method /// that is functionally equivalent to the <c>ParticipationTypes</c></para> /// <para>Version: 2.5</para> /// <para>Since: 2.3</para> /// </remarks> public void SetParticipationTypes( ParticipationType ParticipationType ) { RemoveChild( LearnerDTD.EMPLOYEE_PARTICIPATIONTYPES); AddChild( LearnerDTD.EMPLOYEE_PARTICIPATIONTYPES, new ParticipationTypes( ParticipationType ) ); }
/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="learnerPersonalRefId">The REFID of the learner</param> ///<param name="participationTypes">A ParticipationTypes</param> /// public Learner(string learnerPersonalRefId, ParticipationType participationTypes) : base(LearnerDTD.LEARNER) { this.LearnerPersonalRefId = learnerPersonalRefId; this.ParticipationTypes = new ParticipationTypes(participationTypes); }
/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="learnerPersonalRefId">The REFID of the learner</param> ///<param name="participationTypes">A ParticipationTypes</param> /// public Learner( string learnerPersonalRefId, ParticipationType participationTypes ) : base(LearnerDTD.LEARNER) { this.LearnerPersonalRefId = learnerPersonalRefId; this.ParticipationTypes = new ParticipationTypes( participationTypes ); }
///<summary>Adds the value of the <c><Learner></c> element.</summary> /// <param name="LearnerPersonalRefId">The REFID of the learner</param> /// <param name="ParticipationTypes">A ParticipationTypes</param> ///<remarks> /// <para>This form of <c>setLearner</c> is provided as a convenience method /// that is functionally equivalent to the method <c>AddLearner</c></para> /// <para>Version: 2.6</para> /// <para>Since: 2.3</para> /// </remarks> public void AddLearner(string LearnerPersonalRefId, ParticipationType ParticipationTypes) { AddChild(LearnerDTD.LEARNERS_LEARNER, new Learner(LearnerPersonalRefId, ParticipationTypes)); }
/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="workforcePersonalRefId">The REFID of the member of Staff</param> ///<param name="participationTypes">A ParticipationTypes</param> /// public Employee(string workforcePersonalRefId, ParticipationType participationTypes) : base(LearnerDTD.EMPLOYEE) { this.WorkforcePersonalRefId = workforcePersonalRefId; this.ParticipationTypes = new ParticipationTypes(participationTypes); }
///<summary>Adds the value of the <c><Employee></c> element.</summary> /// <param name="WorkforcePersonalRefId">The REFID of the member of Staff</param> /// <param name="ParticipationTypes">A ParticipationTypes</param> ///<remarks> /// <para>This form of <c>setEmployee</c> is provided as a convenience method /// that is functionally equivalent to the method <c>AddEmployee</c></para> /// <para>Version: 2.6</para> /// <para>Since: 2.3</para> /// </remarks> public void AddEmployee(string WorkforcePersonalRefId, ParticipationType ParticipationTypes) { AddChild(LearnerDTD.EMPLOYEES_EMPLOYEE, new Employee(WorkforcePersonalRefId, ParticipationTypes)); }