Example #1
0
		public RelationalType MakeRelational(RelationalOperator op, ArithmeticExpression lhs, ArithmeticExpression rhs)
        {
            RelationalType newRelational = new RelationalType();

            newRelational.AddLHSArithmeticExpression(lhs);
            newRelational.AddRelationalOperator(op);
            newRelational.AddRHSArithmeticExpression(rhs);

            return newRelational;

        }
Example #2
0
		public LogicalExpression MakeRelationalExperssion(string op, ArithmeticExpression lhs, ArithmeticExpression rhs)
        {
            RelationalOperator relationalOp = new RelationalOperator();
            if (op == "==")
                relationalOp.AddEquals(new Altova.Types.SchemaString("Equals"));
            else if (op == "!=")
                relationalOp.AddNotEquals(new Altova.Types.SchemaString("NotEquals"));
            else if (op == "<")
                relationalOp.AddLessThan(new Altova.Types.SchemaString("LessThan"));
            else if (op == "<=")
                relationalOp.AddLessThanOrEquals(new Altova.Types.SchemaString("LessThanOrEquals"));
            else if (op == ">")
                relationalOp.AddGreaterThan(new Altova.Types.SchemaString("GreaterThan"));
            else if (op == "<=")
                relationalOp.AddGreaterThanOrEquals(new Altova.Types.SchemaString("GreaterThanOrEquals"));

			RelationalType relationalExpression = MakeRelational(relationalOp, lhs, rhs);

            LogicalExpression newLogical = new LogicalExpression();
			newLogical.AddRelational(relationalExpression);

            return newLogical;
        }
 public LessThanEnumerator(RelationalOperator par)
 {
     parent = par;
     nIndex = -1;
 }
 public NotPartOfEnumerator(RelationalOperator par)
 {
     parent = par;
     nIndex = -1;
 }
 public NotEqualsEnumerator(RelationalOperator par)
 {
     parent = par;
     nIndex = -1;
 }
 public GreaterThanOrEqualsEnumerator(RelationalOperator par)
 {
     parent = par;
     nIndex = -1;
 }
			public LessThanOrEqualsEnumerator(RelationalOperator par) 
			{
				parent = par;
				nIndex = -1;
			}
			public NotPartOfEnumerator(RelationalOperator par) 
			{
				parent = par;
				nIndex = -1;
			}
			public NotEqualsEnumerator(RelationalOperator par) 
			{
				parent = par;
				nIndex = -1;
			}
			public GreaterThanEnumerator(RelationalOperator par) 
			{
				parent = par;
				nIndex = -1;
			}
Example #11
0
 public void ReplaceRelationalOperatorAt(RelationalOperator newValue, int index)
 {
     ReplaceDomElementAt("", "RelationalOperator", index, newValue);
 }
Example #12
0
 public void InsertRelationalOperatorAt(RelationalOperator newValue, int index)
 {
     InsertDomElementAt("", "RelationalOperator", index, newValue);
 }
Example #13
0
 public void AddRelationalOperator(RelationalOperator newValue)
 {
     AppendDomElement("", "RelationalOperator", newValue);
 }
		public void ReplaceRelationalOperatorAt(RelationalOperator newValue, int index)
		{
			ReplaceDomElementAt("", "RelationalOperator", index, newValue);
		}
		public void InsertRelationalOperatorAt(RelationalOperator newValue, int index)
		{
			InsertDomElementAt("", "RelationalOperator", index, newValue);
		}
		public void AddRelationalOperator(RelationalOperator newValue)
		{
			AppendDomElement("", "RelationalOperator", newValue);
		}