///<summary>Sets the value of the <c>&lt;Email&gt;</c> element.</summary>
 /// <param name="Type">This attribute specifies the type of e-mail address.</param>
 /// <param name="Value">Gets or sets the content value of the &amp;lt;Email&amp;gt; element</param>
 ///<remarks>
 /// <para>This form of <c>setEmail</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>Email</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void SetEmail( EmailType Type, string Value )
 {
     RemoveChild( InstrDTD.SOURCEAUTHOR_EMAIL);
     AddChild( InstrDTD.SOURCEAUTHOR_EMAIL, new Email( Type, Value ) );
 }
Beispiel #2
0
 /// <summary>
 /// Sets the value of the <c>Type</c> attribute.
 /// </summary>
 /// <param name="val">A EmailType object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this attribute as: "This attribute specifies the type of e-mail address."</para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 1.1</para>
 /// </remarks>
 public void SetType( EmailType val )
 {
     SetField( CommonDTD.EMAIL_TYPE, val );
 }
Beispiel #3
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="type">This attribute specifies the type of e-mail address.</param>
 ///<param name="value">Gets or sets the content value of the &amp;lt;Email&amp;gt; element</param>
 ///
 public Email( EmailType type, string value )
     : base(CommonDTD.EMAIL)
 {
     this.SetType( type );
     this.Value = value;
 }
Beispiel #4
0
 ///<summary>Sets the value of the <c>&lt;Email&gt;</c> element.</summary>
 /// <param name="Type">This attribute specifies the type of e-mail address.</param>
 /// <param name="Value">Gets or sets the content value of the &amp;lt;Email&amp;gt; element</param>
 ///<remarks>
 /// <para>This form of <c>setEmail</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>Email</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void SetEmail(EmailType Type, string Value)
 {
     RemoveChild(CommonDTD.LRCONTACT_EMAIL);
     AddChild(CommonDTD.LRCONTACT_EMAIL, new Email(Type, Value));
 }
 ///<summary>Sets the value of the <c>&lt;Email&gt;</c> element.</summary>
 /// <param name="Type">This attribute specifies the type of e-mail address.</param>
 /// <param name="Value">Gets or sets the content value of the &amp;lt;Email&amp;gt; element</param>
 ///<remarks>
 /// <para>This form of <c>setEmail</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>Email</c></para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void SetEmail( EmailType Type, string Value )
 {
     RemoveChild( InstrDTD.RESOURCECONTACT_EMAIL);
     AddChild( InstrDTD.RESOURCECONTACT_EMAIL, new Email( Type, Value ) );
 }
Beispiel #6
0
 /// <summary>
 /// Removes an <see cref="Email"/> 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 Email object to remove by its Type value</param>
 /// <remarks>
 /// <para>Version: 1.5r1</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void RemoveEmail( EmailType Type )
 {
     RemoveChild( HrfinDTD.VENDORINFO_EMAIL, new String[] { Type.ToString() } );
 }
Beispiel #7
0
 ///<summary>Sets the value of the <c>&lt;Email&gt;</c> element.</summary>
 /// <param name="Type">This attribute specifies the type of e-mail address.</param>
 /// <param name="Value">Gets or sets the content value of the &amp;lt;Email&amp;gt; element</param>
 ///<remarks>
 /// <para>This form of <c>setEmail</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>Email</c></para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void SetEmail( EmailType Type, string Value )
 {
     RemoveChild( CommonDTD.LRCONTACT_EMAIL);
     AddChild( CommonDTD.LRCONTACT_EMAIL, new Email( Type, Value ) );
 }
Beispiel #8
0
 /// <summary>
 /// Gets an <see cref="Email"/> 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 Email object to return by its "Type" attribute value</param>
 /// <returns>An Email object</returns>
 /// <remarks>
 /// <para>Version: 1.5r1</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public Email GetEmail( EmailType Type )
 {
     return (Email)GetChild( HrfinDTD.VENDORINFO_EMAIL, new string[] { Type.ToString() } );
 }
Beispiel #9
0
 ///<summary>Adds the value of the <c>&lt;Email&gt;</c> element.</summary>
 /// <param name="Type">This attribute specifies the type of e-mail address.</param>
 /// <param name="Value">Gets or sets the content value of the &amp;lt;Email&amp;gt; element</param>
 ///<remarks>
 /// <para>This form of <c>setEmail</c> is provided as a convenience method
 /// that is functionally equivalent to the method <c>AddEmail</c></para>
 /// <para>Version: 1.5r1</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void AddEmail( EmailType Type, string Value )
 {
     AddChild( HrfinDTD.VENDORINFO_EMAIL, new Email( Type, Value ) );
 }
Beispiel #10
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="type">This attribute specifies the type of e-mail address.</param>
 ///<param name="value">Gets or sets the content value of the &amp;lt;Email&amp;gt; element</param>
 ///
 public Email(EmailType type, string value) : base(CommonDTD.EMAIL)
 {
     this.SetType(type);
     this.Value = value;
 }
Beispiel #11
0
 /// <summary>
 /// Sets the value of the <c>Type</c> attribute.
 /// </summary>
 /// <param name="val">A EmailType object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this attribute as: "This attribute specifies the type of e-mail address."</para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.1</para>
 /// </remarks>
 public void SetType(EmailType val)
 {
     SetField(CommonDTD.EMAIL_TYPE, val);
 }
Beispiel #12
0
 ///<summary>Adds the value of the <c>&lt;Email&gt;</c> element.</summary>
 /// <param name="Type">This attribute specifies the type of e-mail address.</param>
 /// <param name="Value">Gets or sets the content value of the &amp;lt;Email&amp;gt; element</param>
 ///<remarks>
 /// <para>This form of <c>setEmail</c> is provided as a convenience method
 /// that is functionally equivalent to the method <c>AddEmail</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.1</para>
 /// </remarks>
 public void AddEmail(EmailType Type, string Value)
 {
     AddChild(CommonDTD.EMAILLIST_EMAIL, new Email(Type, Value));
 }