Beispiel #1
0
        /// <summary>
        /// Comparison between the supplied and this boolean representation. Returns
        /// true if this XSBoolean represents false and that XSBoolean supplied
        /// represents true. Returns false otherwise
        /// </summary>
        /// <param name="arg">
        ///            The XSBoolean representation of the boolean value to compare
        ///            with. </param>
        /// <exception cref="DynamicError"> </exception>
        /// <returns> New XSBoolean representation of true/false result of the
        ///         comparison </returns>
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public boolean lt(AnyType arg, org.eclipse.wst.xml.xpath2.api.DynamicContext context) throws org.eclipse.wst.xml.xpath2.processor.DynamicError
        public virtual bool lt(AnyType arg, DynamicContext context)
        {
            XSBoolean barg = (XSBoolean)NumericType.get_single_type((Item)arg, typeof(XSBoolean));

            bool result = false;

            if (!value() && barg.value())
            {
                result = true;
            }
            return(result);
        }
Beispiel #2
0
        // comparisons
        /// <summary>
        /// Comparison for equality between the supplied and this boolean
        /// representation. Returns true if both represent same boolean value, false
        /// otherwise
        /// </summary>
        /// <param name="arg">
        ///            The XSBoolean representation of the boolean value to compare
        ///            with. </param>
        /// <exception cref="DynamicError"> </exception>
        /// <returns> New XSBoolean representation of true/false result of the equality
        ///         comparison </returns>
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public boolean eq(AnyType arg, org.eclipse.wst.xml.xpath2.api.DynamicContext dynamicContext) throws org.eclipse.wst.xml.xpath2.processor.DynamicError
        public virtual bool eq(AnyType arg, DynamicContext dynamicContext)
        {
            XSBoolean barg = (XSBoolean)NumericType.get_single_type((Item)arg, typeof(XSBoolean));

            return(value() == barg.value());
        }