Пример #1
0
 public OrEnumerator(LogicalOperator par)
 {
     parent = par;
     nIndex = -1;
 }
Пример #2
0
			public OrEnumerator(LogicalOperator par) 
			{
				parent = par;
				nIndex = -1;
			}
Пример #3
0
 public void InsertLogicalOperatorAt(LogicalOperator newValue, int index)
 {
     InsertDomElementAt("", "LogicalOperator", index, newValue);
 }
Пример #4
0
 public void ReplaceLogicalOperatorAt(LogicalOperator newValue, int index)
 {
     ReplaceDomElementAt("", "LogicalOperator", index, newValue);
 }
Пример #5
0
 public void AddLogicalOperator(LogicalOperator newValue)
 {
     AppendDomElement("", "LogicalOperator", newValue);
 }
Пример #6
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;
        }
Пример #7
0
		public void ReplaceLogicalOperatorAt(LogicalOperator newValue, int index)
		{
			ReplaceDomElementAt("", "LogicalOperator", index, newValue);
		}
Пример #8
0
		public void InsertLogicalOperatorAt(LogicalOperator newValue, int index)
		{
			InsertDomElementAt("", "LogicalOperator", index, newValue);
		}
Пример #9
0
		public void AddLogicalOperator(LogicalOperator newValue)
		{
			AppendDomElement("", "LogicalOperator", newValue);
		}