Ejemplo n.º 1
0
        /// <summary>
        /// Greater than or equal to operation on the values of the arguments.
        /// </summary>
        /// <param name="args">
        ///            input arguments. </param>
        /// <param name="dc"> </param>
        /// <exception cref="DynamicError">
        ///             Dynamic error. </exception>
        /// <returns> Result of the operation. </returns>
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public static org.eclipse.wst.xml.xpath2.api.ResultSequence fs_ge_value(java.util.Collection args, org.eclipse.wst.xml.xpath2.api.DynamicContext dc) throws org.eclipse.wst.xml.xpath2.processor.DynamicError
        public static ResultSequence fs_ge_value(ICollection args, DynamicContext dc)
        {
            ResultSequence greater = FsGt.fs_gt_value(args, dc);

            if (((XSBoolean)greater.first()).value())
            {
                return(greater);
            }

            ResultSequence equal = FsEq.fs_eq_value(args, dc);

            if (((XSBoolean)equal.first()).value())
            {
                return(equal);
            }

            return(ResultSequenceFactory.create_new(new XSBoolean(false)));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Operation on the values of the arguments.
        /// </summary>
        /// <param name="args">
        ///            input arguments. </param>
        /// @param
        ///         DynamicContext </param>
        /// <exception cref="DynamicError">
        ///             Dynamic error. </exception>
        /// <returns> Result of the operation. </returns>
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public static org.eclipse.wst.xml.xpath2.api.ResultSequence fs_le_value(java.util.Collection args, org.eclipse.wst.xml.xpath2.api.DynamicContext dc) throws org.eclipse.wst.xml.xpath2.processor.DynamicError
        public static ResultSequence fs_le_value(ICollection args, DynamicContext dc)
        {
            ResultSequence less = FsLt.fs_lt_value(args, dc);

            if (((XSBoolean)less.first()).value())
            {
                return(less);
            }

            ResultSequence equal = FsEq.fs_eq_value(args, dc);

            if (((XSBoolean)equal.first()).value())
            {
                return(equal);
            }

            return(ResultSequenceFactory.create_new(new XSBoolean(false)));
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Operation on the values of the arguments.
        /// </summary>
        /// <param name="args">
        ///            input arguments. </param>
        /// <param name="context">
        ///             The dynamic context </param>
        /// <exception cref="DynamicError">
        ///             Dynamic error. </exception>
        /// <returns> Result of the operation. </returns>
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public static org.eclipse.wst.xml.xpath2.api.ResultSequence fs_ne_value(java.util.Collection args, org.eclipse.wst.xml.xpath2.api.DynamicContext context) throws org.eclipse.wst.xml.xpath2.processor.DynamicError
        public static ResultSequence fs_ne_value(ICollection args, DynamicContext context)
        {
            return(FnNot.fn_not(FsEq.fs_eq_value(args, context)));
        }