/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="sifElement">This is the element/attribute being queried. See below for syntax.</param> ///<param name="sifOperator">The comparison operator for the condition.</param> ///<param name="sifValue">SIF_Value is the data that is used to compare with the value of the element or attribute.</param> /// public SIF_Condition( string sifElement, Operators sifOperator, string sifValue ) : base(InfraDTD.SIF_CONDITION) { this.SIF_Element = sifElement; this.SetSIF_Operator( sifOperator ); this.SIF_Value = sifValue; }
/// <summary> /// Removes a <see cref="SIF_Condition"/> object instance. More than one instance can be defined for this object because it is a repeatable field element. /// </summary> /// <param name="SifElement">Identifies the SIF_Condition object to remove by its SIF_Element value</param> /// <param name="SifOperator">Identifies the SIF_Condition object to remove by its SIF_Operator value</param> /// <param name="SifValue">Identifies the SIF_Condition object to remove by its SIF_Value value</param> /// <remarks> /// <para>Version: 2.6</para> /// <para>Since: 1.1</para> /// </remarks> public void RemoveSIF_Condition( string SifElement, Operators SifOperator, string SifValue ) { RemoveChild( InfraDTD.SIF_CONDITIONS_SIF_CONDITION, new String[] { SifElement.ToString(),SifOperator.ToString(),SifValue.ToString() } ); }
/// <summary> /// Gets a <see cref="SIF_Condition"/> object instance. More than one instance can be defined for this object because it is a repeatable field element. /// </summary> /// <param name="SifElement">Identifies the SIF_Condition object to return by its "SIF_Element" attribute value</param> /// <param name="SifOperator">Identifies the SIF_Condition object to return by its "SIF_Operator" attribute value</param> /// <param name="SifValue">Identifies the SIF_Condition object to return by its "SIF_Value" attribute value</param> /// <returns>A SIF_Condition object</returns> /// <remarks> /// <para>Version: 2.6</para> /// <para>Since: 1.1</para> /// </remarks> public SIF_Condition GetSIF_Condition( string SifElement, Operators SifOperator, string SifValue ) { return (SIF_Condition)GetChild( InfraDTD.SIF_CONDITIONS_SIF_CONDITION, new string[] { SifElement.ToString(),SifOperator.ToString(),SifValue.ToString() } ); }
///<summary>Adds the value of the <c><SIF_Condition></c> element.</summary> /// <param name="SifElement">This is the element/attribute being queried. See below for syntax.</param> /// <param name="SifOperator">The comparison operator for the condition.</param> /// <param name="SifValue">SIF_Value is the data that is used to compare with the value of the element or attribute.</param> ///<remarks> /// <para>This form of <c>setSIF_Condition</c> is provided as a convenience method /// that is functionally equivalent to the method <c>AddSIF_Condition</c></para> /// <para>Version: 2.6</para> /// <para>Since: 1.1</para> /// </remarks> public void AddSIF_Condition( string SifElement, Operators SifOperator, string SifValue ) { AddChild( InfraDTD.SIF_CONDITIONS_SIF_CONDITION, new SIF_Condition( SifElement, SifOperator, SifValue ) ); }
/// <summary> /// Sets the value of the <c><SIF_Operator></c> element. /// </summary> /// <param name="val">A Operators object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this element as: "The comparison operator for the condition."</para> /// <para>Version: 2.5</para> /// <para>Since: 1.1</para> /// </remarks> public void SetSIF_Operator( Operators val ) { SetField( InfraDTD.SIF_CONDITION_SIF_OPERATOR, val ); }