Package ch.tatool.element

Examples of ch.tatool.element.ElementTree.pushElement()


  public boolean updateElementStack(ExecutionContext executionContext) {
    ElementTree tree = executionContext.getExecutor().getExecutionTree();
   
    // push the root element onto the stack if the stack is empty
    if (tree.getElementStack().isEmpty()) {
      tree.pushElement(tree.getRootElement());
      ElementUtils.initialize(tree.getRootElement());
    }
   
    // make sure we don't loop forever
    int x=0;
View Full Code Here


    }
   
    // handle primary case
    ElementTree tree = context.getExecutor().getExecutionTree();
    if (isExecutePrimary() || compoundElement.getSecondary() == null) {
      tree.pushElement(compoundElement.getPrimary());
      ElementUtils.initialize(compoundElement.getPrimary());
      return true;
    } else {
            // we also initialize the secondary element on each run
      ElementUtils.initialize(compoundElement.getSecondary());
View Full Code Here

      ElementUtils.initialize(compoundElement.getPrimary());
      return true;
    } else {
            // we also initialize the secondary element on each run
      ElementUtils.initialize(compoundElement.getSecondary());
          tree.pushElement(compoundElement.getSecondary());
          setExecuteSecondary(true);
            return true;
        }
  }
 
View Full Code Here

  public boolean updateElementStack(ExecutionContext executionContext) {
    ElementTree tree = executionContext.getExecutor().getExecutionTree();
   
    // push the root element onto the stack if the stack is empty
    if (tree.getElementStack().isEmpty()) {
      tree.pushElement(tree.getRootElement());
      ElementUtils.initialize(tree.getRootElement());
    }
   
    // make sure we don't loop forever
    int x=0;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.