예제 #1
0
        public LogicalExpression MakeLogical(string op, LogicalExpression lhs, LogicalExpression rhs)
        {
            LogicalOperator logicalOp = new LogicalOperator();

            if (op == "And")
            {
                logicalOp.AddAnd(new Altova.Types.SchemaString("And"));
            }
            else
            {
                logicalOp.AddOr(new Altova.Types.SchemaString("Or"));
            }

            LogicalType newLogicalExpression = new LogicalType();

            newLogicalExpression.AddLHSLogicalExpression(lhs);
            newLogicalExpression.AddLogicalOperator(logicalOp);
            newLogicalExpression.AddRHSLogicalExpression(rhs);

            LogicalExpression newLogical = new LogicalExpression();

            newLogical.AddLogical(newLogicalExpression);

            return(newLogical);
        }