Beispiel #1
0
 public OrEnumerator(LogicalOperator par)
 {
     parent = par;
     nIndex = -1;
 }
			public OrEnumerator(LogicalOperator par) 
			{
				parent = par;
				nIndex = -1;
			}
Beispiel #3
0
 public void InsertLogicalOperatorAt(LogicalOperator newValue, int index)
 {
     InsertDomElementAt("", "LogicalOperator", index, newValue);
 }
Beispiel #4
0
 public void ReplaceLogicalOperatorAt(LogicalOperator newValue, int index)
 {
     ReplaceDomElementAt("", "LogicalOperator", index, newValue);
 }
Beispiel #5
0
 public void AddLogicalOperator(LogicalOperator newValue)
 {
     AppendDomElement("", "LogicalOperator", newValue);
 }
        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;
        }
		public void ReplaceLogicalOperatorAt(LogicalOperator newValue, int index)
		{
			ReplaceDomElementAt("", "LogicalOperator", index, newValue);
		}
		public void InsertLogicalOperatorAt(LogicalOperator newValue, int index)
		{
			InsertDomElementAt("", "LogicalOperator", index, newValue);
		}
		public void AddLogicalOperator(LogicalOperator newValue)
		{
			AppendDomElement("", "LogicalOperator", newValue);
		}