Пример #1
0
 ///<summary>Sets the value of the <c>&lt;PhoneNumber&gt;</c> element.</summary>
 /// <param name="Type">
 /// Code that specifies what type of phone number this is.
 /// Note: A subset of valid values may be specified in data
 /// objects.</param>
 /// <param name="Number">
 /// Phone number. Free-form, but typical U.S. formats
 /// include:</param>
 ///<remarks>
 /// <para>This form of <c>setPhoneNumber</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>PhoneNumber</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.4</para>
 /// </remarks>
 public void SetPhoneNumber( PhoneNumberType Type, string Number )
 {
     RemoveChild( LearningDTD.CONTACT_PHONENUMBER);
     AddChild( LearningDTD.CONTACT_PHONENUMBER, new PhoneNumber( Type, Number ) );
 }
Пример #2
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="type">
 /// Code that specifies what type of phone number this is.
 /// Note: A subset of valid values may be specified in data
 /// objects.</param>
 ///<param name="number">
 /// Phone number. Free-form, but typical U.S. formats
 /// include:</param>
 ///
 public PhoneNumber(PhoneNumberType type, string number) : base(CommonDTD.PHONENUMBER)
 {
     this.SetType(type);
     this.Number = number;
 }
 ///<summary>Sets the value of the <c>&lt;PhoneNumber&gt;</c> element.</summary>
 /// <param name="Type">
 /// Code that specifies what type of phone number this is.
 /// Note: A subset of valid values may be specified in data
 /// objects.</param>
 /// <param name="Number">
 /// Phone number. Free-form, but typical U.S. formats
 /// include:</param>
 ///<remarks>
 /// <para>This form of <c>setPhoneNumber</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>PhoneNumber</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.3</para>
 /// </remarks>
 public void SetPhoneNumber( PhoneNumberType Type, string Number )
 {
     RemoveChild( ReportingDTD.REPORTAUTHORITYINFO_PHONENUMBER);
     AddChild( ReportingDTD.REPORTAUTHORITYINFO_PHONENUMBER, new PhoneNumber( Type, Number ) );
 }
Пример #4
0
 /// <summary>
 /// Sets the value of the <c>Type</c> attribute.
 /// </summary>
 /// <param name="val">A PhoneNumberType object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this attribute as: "
 /// Code that specifies what type of phone number this is.
 /// Note: A subset of valid values may be specified in data
 /// objects."</para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.3</para>
 /// </remarks>
 public void SetType(PhoneNumberType val)
 {
     SetField(CommonDTD.PHONENUMBER_TYPE, val);
 }
Пример #5
0
 ///<summary>Sets the value of the <c>&lt;PhoneNumber&gt;</c> element.</summary>
 /// <param name="Type">
 /// Code that specifies what type of phone number this is.
 /// Note: A subset of valid values may be specified in data
 /// objects.</param>
 /// <param name="Number">
 /// Phone number. Free-form, but typical U.S. formats
 /// include:</param>
 ///<remarks>
 /// <para>This form of <c>setPhoneNumber</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>PhoneNumber</c></para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 2.3</para>
 /// </remarks>
 public void SetPhoneNumber( PhoneNumberType Type, string Number )
 {
     RemoveChild( StudentDTD.ROOMINFO_PHONENUMBER);
     AddChild( StudentDTD.ROOMINFO_PHONENUMBER, new PhoneNumber( Type, Number ) );
 }
Пример #6
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="type">
 /// Code that specifies what type of phone number this is.
 /// Note: A subset of valid values may be specified in data
 /// objects.</param>
 ///<param name="number">
 /// Phone number. Free-form, but typical U.S. formats
 /// include:</param>
 ///
 public PhoneNumber( PhoneNumberType type, string number )
     : base(CommonDTD.PHONENUMBER)
 {
     this.SetType( type );
     this.Number = number;
 }
Пример #7
0
 /// <summary>
 /// Sets the value of the <c>Type</c> attribute.
 /// </summary>
 /// <param name="val">A PhoneNumberType object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this attribute as: "
 /// Code that specifies what type of phone number this is.
 /// Note: A subset of valid values may be specified in data
 /// objects."</para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 2.3</para>
 /// </remarks>
 public void SetType( PhoneNumberType val )
 {
     SetField( CommonDTD.PHONENUMBER_TYPE, val );
 }
Пример #8
0
 ///<summary>Adds the value of the <c>&lt;PhoneNumber&gt;</c> element.</summary>
 /// <param name="Type">
 /// Code that specifies what type of phone number this is.
 /// Note: A subset of valid values may be specified in data
 /// objects.</param>
 /// <param name="Number">
 /// Phone number. Free-form, but typical U.S. formats
 /// include:</param>
 ///<remarks>
 /// <para>This form of <c>setPhoneNumber</c> is provided as a convenience method
 /// that is functionally equivalent to the method <c>AddPhoneNumber</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.3</para>
 /// </remarks>
 public void AddPhoneNumber(PhoneNumberType Type, string Number)
 {
     AddChild(CommonDTD.PHONENUMBERLIST_PHONENUMBER, new PhoneNumber(Type, Number));
 }