예제 #1
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="type">Code that specifies what type of name this is.  If unsure, use 04.</param>
 ///<param name="lastName">The last name.</param>
 ///<param name="firstName">The first name.</param>
 ///
 public Name( NameType type, string lastName, string firstName )
     : base(CommonDTD.NAME)
 {
     this.SetType( type );
     this.LastName = lastName;
     this.FirstName = firstName;
 }
 public static StudentPersonal makeStudentPersonal( String localId,
                                                    NameType nameType, String firstName, String lastName )
 {
     StudentPersonal s = new StudentPersonal();
     s.RefId = Adk.MakeGuid();
     s.LocalId = localId;
     Name name = new Name( nameType, lastName, firstName );
     s.Name = name;
     return s;
 }
예제 #3
0
 /// <summary>
 /// Gets a <see cref="Name"/> object instance. More than one instance can be defined for this object because it is a repeatable field element.
 /// </summary>
 /// <param name="Type">Identifies the Name object to return by its "Type" attribute value</param>
 /// <returns>A Name object</returns>
 /// <remarks>
 /// <para>Version: 2.5</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public Name GetName( NameType Type )
 {
     return (Name)GetChild( ReportingDTD.STUDENTLOCATOR_NAME, new string[] { Type.ToString() } );
 }
예제 #4
0
 ///<summary>Sets the value of the <c>&lt;Name&gt;</c> element.</summary>
 /// <param name="Type">Code that specifies what type of name this is.  If unsure, use 04.</param>
 /// <param name="LastName">The last name.</param>
 /// <param name="FirstName">The first name.</param>
 ///<remarks>
 /// <para>This form of <c>setName</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>Name</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.0</para>
 /// </remarks>
 public void SetName( NameType Type, string LastName, string FirstName )
 {
     RemoveChild( StudentDTD.INCIDENTREPORTER_NAME);
     AddChild( StudentDTD.INCIDENTREPORTER_NAME, new Name( Type, LastName, FirstName ) );
 }
예제 #5
0
 ///<summary>Sets the value of the <c>&lt;Name&gt;</c> element.</summary>
 /// <param name="Type">Code that specifies what type of name this is.  If unsure, use 04.</param>
 /// <param name="LastName">The last name.</param>
 /// <param name="FirstName">The first name.</param>
 ///<remarks>
 /// <para>This form of <c>setName</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>Name</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void SetName( NameType Type, string LastName, string FirstName )
 {
     RemoveChild( CommonDTD.CONTACTINFO_NAME);
     AddChild( CommonDTD.CONTACTINFO_NAME, new Name( Type, LastName, FirstName ) );
 }
예제 #6
0
 ///<summary>Sets the value of the <c>&lt;Name&gt;</c> element.</summary>
 /// <param name="Type">Code that specifies what type of name this is.  If unsure, use 04.</param>
 /// <param name="LastName">The last name.</param>
 /// <param name="FirstName">The first name.</param>
 ///<remarks>
 /// <para>This form of <c>setName</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>Name</c></para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void SetName( NameType Type, string LastName, string FirstName )
 {
     RemoveChild( ProfdevDTD.EMPLOYEECREDENTIAL_NAME);
     AddChild( ProfdevDTD.EMPLOYEECREDENTIAL_NAME, new Name( Type, LastName, FirstName ) );
 }
예제 #7
0
 /// <summary>
 /// Gets a <see cref="Name"/> object instance. More than one instance can be defined for this object because it is a repeatable field element.
 /// </summary>
 /// <param name="Type">Identifies the Name object to return by its "Type" attribute value</param>
 /// <returns>A Name object</returns>
 /// <remarks>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public Name GetName( NameType Type )
 {
     return (Name)GetChild( ReportingDTD.SLCONTACT_NAME, new string[] { Type.ToString() } );
 }
예제 #8
0
 /// <summary>
 /// Gets a <see cref="Name"/> object instance. More than one instance can be defined for this object because it is a repeatable field element.
 /// </summary>
 /// <param name="Type">Identifies the Name object to return by its "Type" attribute value</param>
 /// <returns>A Name object</returns>
 /// <remarks>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public Name GetName(NameType Type)
 {
     return((Name)GetChild(CommonDTD.LRCONTACT_NAME, new string[] { Type.ToString() }));
 }
예제 #9
0
 ///<summary>Adds the value of the <c>&lt;Name&gt;</c> element.</summary>
 /// <param name="Type">Code that specifies what type of name this is.  If unsure, use 04.</param>
 /// <param name="LastName">The last name.</param>
 /// <param name="FirstName">The first name.</param>
 ///<remarks>
 /// <para>This form of <c>setName</c> is provided as a convenience method
 /// that is functionally equivalent to the method <c>AddName</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void AddName(NameType Type, string LastName, string FirstName)
 {
     AddChild(CommonDTD.LRCONTACT_NAME, new Name(Type, LastName, FirstName));
 }
예제 #10
0
 /// <summary>
 /// Sets the value of the <c>Type</c> attribute.
 /// </summary>
 /// <param name="val">A NameType object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this attribute as: "Code that specifies what type of name this is.  If unsure, use 04."</para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.1</para>
 /// </remarks>
 public void SetType(NameType val)
 {
     SetField(CommonDTD.NAME_TYPE, val);
 }
예제 #11
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="type">Code that specifies what type of name this is.  If unsure, use 04.</param>
 ///<param name="lastName">The last name.</param>
 ///<param name="firstName">The first name.</param>
 ///
 public Name(NameType type, string lastName, string firstName) : base(CommonDTD.NAME)
 {
     this.SetType(type);
     this.LastName  = lastName;
     this.FirstName = firstName;
 }
 ///<summary>Sets the value of the <c>&lt;Name&gt;</c> element.</summary>
 /// <param name="Type">Code that specifies what type of name this is.  If unsure, use 04.</param>
 /// <param name="LastName">The last name.</param>
 /// <param name="FirstName">The first name.</param>
 ///<remarks>
 /// <para>This form of <c>setName</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>Name</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.6</para>
 /// </remarks>
 public void SetName( NameType Type, string LastName, string FirstName )
 {
     RemoveChild( AssessmentDTD.ASSESSMENTSTUDENTSNAPSHOTSIF3_NAME);
     AddChild( AssessmentDTD.ASSESSMENTSTUDENTSNAPSHOTSIF3_NAME, new Name( Type, LastName, FirstName ) );
 }
예제 #13
0
 /// <summary>
 /// Sets the value of the <c>Type</c> attribute.
 /// </summary>
 /// <param name="val">A NameType object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this attribute as: "Code that specifies what type of name this is.  If unsure, use 04."</para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 1.1</para>
 /// </remarks>
 public void SetType( NameType val )
 {
     SetField( CommonDTD.NAME_TYPE, val );
 }
예제 #14
0
 ///<summary>Sets the value of the <c>&lt;Name&gt;</c> element.</summary>
 /// <param name="Type">Code that specifies what type of name this is.  If unsure, use 04.</param>
 /// <param name="LastName">The last name.</param>
 /// <param name="FirstName">The first name.</param>
 ///<remarks>
 /// <para>This form of <c>setName</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>Name</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.0</para>
 /// </remarks>
 public void SetName( NameType Type, string LastName, string FirstName )
 {
     RemoveChild( EtranscriptsDTD.STAFFPERSONALDATA_NAME);
     AddChild( EtranscriptsDTD.STAFFPERSONALDATA_NAME, new Name( Type, LastName, FirstName ) );
 }
예제 #15
0
 ///<summary>Sets the value of the <c>&lt;Name&gt;</c> element.</summary>
 /// <param name="Type">Code that specifies what type of name this is.  If unsure, use 04.</param>
 /// <param name="LastName">The last name.</param>
 /// <param name="FirstName">The first name.</param>
 ///<remarks>
 /// <para>This form of <c>setName</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>Name</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void SetName( NameType Type, string LastName, string FirstName )
 {
     RemoveChild( InstrDTD.SOURCEAUTHOR_NAME);
     AddChild( InstrDTD.SOURCEAUTHOR_NAME, new Name( Type, LastName, FirstName ) );
 }
예제 #16
0
 ///<summary>Sets the value of the <c>&lt;Name&gt;</c> element.</summary>
 /// <param name="Type">Code that specifies what type of name this is.  If unsure, use 04.</param>
 /// <param name="LastName">The last name.</param>
 /// <param name="FirstName">The first name.</param>
 ///<remarks>
 /// <para>This form of <c>setName</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>Name</c></para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void SetName( NameType Type, string LastName, string FirstName )
 {
     RemoveChild( InstrDTD.RESOURCEEVALUATION_NAME);
     AddChild( InstrDTD.RESOURCEEVALUATION_NAME, new Name( Type, LastName, FirstName ) );
 }
예제 #17
0
 ///<summary>Adds the value of the <c>&lt;Name&gt;</c> element.</summary>
 /// <param name="Type">Code that specifies what type of name this is.  If unsure, use 04.</param>
 /// <param name="LastName">The last name.</param>
 /// <param name="FirstName">The first name.</param>
 ///<remarks>
 /// <para>This form of <c>setName</c> is provided as a convenience method
 /// that is functionally equivalent to the method <c>AddName</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.0</para>
 /// </remarks>
 public void AddName(NameType Type, string LastName, string FirstName)
 {
     AddChild(CommonDTD.OTHERNAMES_NAME, new Name(Type, LastName, FirstName));
 }
예제 #18
0
 ///<summary>Sets the value of the <c>&lt;Name&gt;</c> element.</summary>
 /// <param name="Type">Code that specifies what type of name this is.  If unsure, use 04.</param>
 /// <param name="LastName">The last name.</param>
 /// <param name="FirstName">The first name.</param>
 ///<remarks>
 /// <para>This form of <c>setName</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>Name</c></para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void SetName( NameType Type, string LastName, string FirstName )
 {
     RemoveChild( HrfinDTD.EMPLOYEEPERSONAL_NAME);
     AddChild( HrfinDTD.EMPLOYEEPERSONAL_NAME, new Name( Type, LastName, FirstName ) );
 }
예제 #19
0
 /// <summary>
 /// Removes a <see cref="Name"/> object instance. More than one instance can be defined for this object because it is a repeatable field element.
 /// </summary>
 /// <param name="Type">Identifies the Name object to remove by its Type value</param>
 /// <remarks>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void RemoveName(NameType Type)
 {
     RemoveChild(CommonDTD.LRCONTACT_NAME, new String[] { Type.ToString() });
 }
예제 #20
0
 ///<summary>Sets the value of the <c>&lt;Name&gt;</c> element.</summary>
 /// <param name="Type">Code that specifies what type of name this is.  If unsure, use 04.</param>
 /// <param name="LastName">The last name.</param>
 /// <param name="FirstName">The first name.</param>
 ///<remarks>
 /// <para>This form of <c>setName</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>Name</c></para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 2.0</para>
 /// </remarks>
 public void SetName( NameType Type, string LastName, string FirstName )
 {
     RemoveChild( EtranscriptsDTD.PARENTGUARDIAN_NAME);
     AddChild( EtranscriptsDTD.PARENTGUARDIAN_NAME, new Name( Type, LastName, FirstName ) );
 }
예제 #21
0
 ///<summary>Adds the value of the <c>&lt;Name&gt;</c> element.</summary>
 /// <param name="Type">Code that specifies what type of name this is.  If unsure, use 04.</param>
 /// <param name="LastName">The last name.</param>
 /// <param name="FirstName">The first name.</param>
 ///<remarks>
 /// <para>This form of <c>setName</c> is provided as a convenience method
 /// that is functionally equivalent to the method <c>AddName</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void AddName( NameType Type, string LastName, string FirstName )
 {
     AddChild( ReportingDTD.SLCONTACT_NAME, new Name( Type, LastName, FirstName ) );
 }
예제 #22
0
 ///<summary>Sets the value of the <c>&lt;Name&gt;</c> element.</summary>
 /// <param name="Type">Code that specifies what type of name this is.  If unsure, use 04.</param>
 /// <param name="LastName">The last name.</param>
 /// <param name="FirstName">The first name.</param>
 ///<remarks>
 /// <para>This form of <c>setName</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>Name</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.0</para>
 /// </remarks>
 public void SetName( NameType Type, string LastName, string FirstName )
 {
     RemoveChild( ProgramsDTD.TESTACCOMMODATION_NAME);
     AddChild( ProgramsDTD.TESTACCOMMODATION_NAME, new Name( Type, LastName, FirstName ) );
 }
예제 #23
0
 /// <summary>
 /// Removes a <see cref="Name"/> object instance. More than one instance can be defined for this object because it is a repeatable field element.
 /// </summary>
 /// <param name="Type">Identifies the Name object to remove by its Type value</param>
 /// <remarks>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void RemoveName( NameType Type )
 {
     RemoveChild( ReportingDTD.SLCONTACT_NAME, new String[] { Type.ToString() } );
 }
예제 #24
0
 ///<summary>Sets the value of the <c>&lt;Name&gt;</c> element.</summary>
 /// <param name="Type">Code that specifies what type of name this is.  If unsure, use 04.</param>
 /// <param name="LastName">The last name.</param>
 /// <param name="FirstName">The first name.</param>
 ///<remarks>
 /// <para>This form of <c>setName</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>Name</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.1</para>
 /// </remarks>
 public void SetName( NameType Type, string LastName, string FirstName )
 {
     RemoveChild( TransDTD.BUSROUTEINFO_NAME);
     AddChild( TransDTD.BUSROUTEINFO_NAME, new Name( Type, LastName, FirstName ) );
 }
예제 #25
0
 ///<summary>Sets the value of the <c>&lt;Name&gt;</c> element.</summary>
 /// <param name="Type">Code that specifies what type of name this is.  If unsure, use 04.</param>
 /// <param name="LastName">The last name.</param>
 /// <param name="FirstName">The first name.</param>
 ///<remarks>
 /// <para>This form of <c>setName</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>Name</c></para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 1.1</para>
 /// </remarks>
 public void SetName( NameType Type, string LastName, string FirstName )
 {
     RemoveChild( StudentDTD.STAFFPERSONAL_NAME);
     AddChild( StudentDTD.STAFFPERSONAL_NAME, new Name( Type, LastName, FirstName ) );
 }
예제 #26
0
 ///<summary>Adds the value of the <c>&lt;Name&gt;</c> element.</summary>
 /// <param name="Type">Code that specifies what type of name this is.  If unsure, use 04.</param>
 /// <param name="LastName">The last name.</param>
 /// <param name="FirstName">The first name.</param>
 ///<remarks>
 /// <para>This form of <c>setName</c> is provided as a convenience method
 /// that is functionally equivalent to the method <c>AddName</c></para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void AddName( NameType Type, string LastName, string FirstName )
 {
     AddChild( CommonDTD.LRCONTACT_NAME, new Name( Type, LastName, FirstName ) );
 }
예제 #27
0
 ///<summary>Sets the value of the <c>&lt;Name&gt;</c> element.</summary>
 /// <param name="Type">Code that specifies what type of name this is.  If unsure, use 04.</param>
 /// <param name="LastName">The last name.</param>
 /// <param name="FirstName">The first name.</param>
 ///<remarks>
 /// <para>This form of <c>setName</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>Name</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.0</para>
 /// </remarks>
 public void SetName( NameType Type, string LastName, string FirstName )
 {
     RemoveChild( StudentDTD.OFFENDER_NAME);
     AddChild( StudentDTD.OFFENDER_NAME, new Name( Type, LastName, FirstName ) );
 }
예제 #28
0
 /// <summary>
 /// Gets a <see cref="Name"/> object instance. More than one instance can be defined for this object because it is a repeatable field element.
 /// </summary>
 /// <param name="Type">Identifies the Name object to return by its "Type" attribute value</param>
 /// <returns>A Name object</returns>
 /// <remarks>
 /// <para>Version: 2.5</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public Name GetName( NameType Type )
 {
     return (Name)GetChild( CommonDTD.LRCONTACT_NAME, new string[] { Type.ToString() } );
 }
예제 #29
0
 ///<summary>Adds the value of the <c>&lt;Name&gt;</c> element.</summary>
 /// <param name="Type">Code that specifies what type of name this is.  If unsure, use 04.</param>
 /// <param name="LastName">The last name.</param>
 /// <param name="FirstName">The first name.</param>
 ///<remarks>
 /// <para>This form of <c>setName</c> is provided as a convenience method
 /// that is functionally equivalent to the method <c>AddName</c></para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void AddName( NameType Type, string LastName, string FirstName )
 {
     AddChild( ReportingDTD.STUDENTLOCATOR_NAME, new Name( Type, LastName, FirstName ) );
 }
예제 #30
0
 /// <summary>
 /// Removes a <see cref="Name"/> object instance. More than one instance can be defined for this object because it is a repeatable field element.
 /// </summary>
 /// <param name="Type">Identifies the Name object to remove by its Type value</param>
 /// <remarks>
 /// <para>Version: 2.5</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void RemoveName( NameType Type )
 {
     RemoveChild( CommonDTD.LRCONTACT_NAME, new String[] { Type.ToString() } );
 }
예제 #31
0
 /// <summary>
 /// Removes a <see cref="Name"/> object instance. More than one instance can be defined for this object because it is a repeatable field element.
 /// </summary>
 /// <param name="Type">Identifies the Name object to remove by its Type value</param>
 /// <remarks>
 /// <para>Version: 2.5</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void RemoveName( NameType Type )
 {
     RemoveChild( ReportingDTD.STUDENTLOCATOR_NAME, new String[] { Type.ToString() } );
 }
 ///<summary>Sets the value of the <c>&lt;Name&gt;</c> element.</summary>
 /// <param name="Type">Code that specifies what type of name this is.  If unsure, use 04.</param>
 /// <param name="LastName">The last name.</param>
 /// <param name="FirstName">The first name.</param>
 ///<remarks>
 /// <para>This form of <c>setName</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>Name</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void SetName( NameType Type, string LastName, string FirstName )
 {
     RemoveChild( ProfdevDTD.EMPLOYEERECERTIFICATION_NAME);
     AddChild( ProfdevDTD.EMPLOYEERECERTIFICATION_NAME, new Name( Type, LastName, FirstName ) );
 }
예제 #33
0
 ///<summary>Sets the value of the <c>&lt;Name&gt;</c> element.</summary>
 /// <param name="Type">Code that specifies what type of name this is.  If unsure, use 04.</param>
 /// <param name="LastName">The last name.</param>
 /// <param name="FirstName">The first name.</param>
 ///<remarks>
 /// <para>This form of <c>setName</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>Name</c></para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void SetName( NameType Type, string LastName, string FirstName )
 {
     RemoveChild( StudentDTD.STUDENTSNAPSHOT_NAME);
     AddChild( StudentDTD.STUDENTSNAPSHOT_NAME, new Name( Type, LastName, FirstName ) );
 }
예제 #34
0
 ///<summary>Sets the value of the <c>&lt;Name&gt;</c> element.</summary>
 /// <param name="Type">Code that specifies what type of name this is.  If unsure, use 04.</param>
 /// <param name="LastName">The last name.</param>
 /// <param name="FirstName">The first name.</param>
 ///<remarks>
 /// <para>This form of <c>setName</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>Name</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void SetName(NameType Type, string LastName, string FirstName)
 {
     RemoveChild(CommonDTD.CONTACTINFO_NAME);
     AddChild(CommonDTD.CONTACTINFO_NAME, new Name(Type, LastName, FirstName));
 }