Package modTransf.engine

Examples of modTransf.engine.ParameterDescriptor


     Iterator paramIter = parameters.iterator();
     // Rule domains are used to check the direction
     Iterator descIter = rule.getParameterDescriptors().iterator();
     while(paramIter.hasNext())
     {
       ParameterDescriptor paramDesc = (ParameterDescriptor)descIter.next();
       ParameterExpression exprValue = (ParameterExpression)paramIter.next();
       //System.out.println( ruleName + ".desc."+paramDesc.isIn(context)+ " ");
       if( paramDesc.isIn(context) )
       {
         Object arg = exprValue.getValue(context);
         args.add(arg);
       }
       else
View Full Code Here


      // Iterate on argument values
    Iterator argsIter = args.iterator();

    while(paramIter.hasNext())
    {
      ParameterDescriptor paramDesc = (ParameterDescriptor)descIter.next();
      ParameterExpression exprValue = (ParameterExpression)paramIter.next();
      Object value = argsIter.next();
      //System.out.println("store result (isOut=" +paramDesc.isOut(context) + ") '" + value + "'" );
      if( paramDesc.isOut(context) )
      {
        if( value != null )
          exprValue.setValue( value, context);
      }
    }
View Full Code Here

    Iterator iterRegistered = registeredRule.getParameterDescriptors().iterator();
    Iterator iterClone = rule.getParameterDescriptors().iterator();
    int i=0;
    while( iterClone.hasNext() )
    {
      ParameterDescriptor descRegistered = (ParameterDescriptor)iterRegistered.next();
      ParameterDescriptor descClone= (ParameterDescriptor)iterClone.next();
      assertEquals("desc["+i+"].isIn", descRegistered.isIn(context), descClone.isIn(context) );
      assertEquals("desc["+i+"].isOut", descRegistered.isOut(context), descClone.isOut(context) );
      i++;
    }

  }
View Full Code Here

TOP

Related Classes of modTransf.engine.ParameterDescriptor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.