Examples of CastNode


Examples of org.openiaml.model.model.operations.CastNode

    setGeneratedBy(node, by);
    return node;
  }

  public CastNode generatedCastNode(GeneratesElements by, ActivityOperation container) throws InferenceException {
    CastNode node = (CastNode) createElement( container, OperationsPackage.eINSTANCE.getCastNode(), OperationsPackage.eINSTANCE.getActivityOperation_Nodes() );
    setGeneratedBy(node, by);
    return node;
  }
View Full Code Here

Examples of org.openiaml.model.model.operations.CastNode

    setGeneratedBy(node, by);
    return node;
  }
 
  public CastNode generatedCastNode(GeneratesElements by, ActivityPredicate container) throws InferenceException {
    CastNode node = (CastNode) createElement( container, OperationsPackage.eINSTANCE.getCastNode(), OperationsPackage.eINSTANCE.getActivityPredicate_Nodes() );
    setGeneratedBy(node, by);
    return node;
  }
View Full Code Here

Examples of org.openiaml.model.model.operations.CastNode

    // now we can check the contents
    StartNode start = assertHasStartNode(validate);
    DecisionNode check = assertHasDecisionNode(validate, "can cast?");
    assertHasExecutionEdge(validate, start, check);

    CastNode cast = assertHasCastNode(validate);
   
    // cast <- ExternalValue <- fieldValue
    {
      assertEquals(1, cast.getInFlows().size());
      ExternalValue ev = (ExternalValue) cast.getInFlows().get(0).getFrom();
      assertEquals(fieldValue, ev.getValue());
    }
   
    // cast -> ExternalValue -> fieldValue2
    {
      assertEquals(2 /* two outgoing edges */, cast.getOutFlows().size());
      // we need to find the correct one
      ExternalValue ev = null;
      for (DataFlowEdge edge : cast.getOutFlows()) {
        if (edge.getTo() instanceof ExternalValue) {
          ev = (ExternalValue) edge.getTo();
        }
      }
      assertNotNull(ev);
View Full Code Here

Examples of org.openiaml.model.model.operations.CastNode

    StartNode start = assertHasStartNode(update);
    FinishNode finish = assertHasFinishNode(update);
    CancelNode cancel = assertHasCancelNode(update);

    DecisionNode check = assertHasDecisionNode(update, "can cast?");
    CastNode cast = assertHasCastNode(update);

    SetNode set = assertHasSetNode(update);

    assertHasExecutionEdge(update, start, check);
    assertHasExecutionEdge(update, check, cancel, "no");
View Full Code Here

Examples of org.openiaml.model.model.operations.CastNode

    StartNode start = assertHasStartNode(init);
    FinishNode finish = assertHasFinishNode(init);
    CancelNode cancel = assertHasCancelNode(init);

    DecisionNode check = assertHasDecisionNode(init, "can cast?");
    CastNode cast = assertHasCastNode(init);

    SetNode set = assertHasSetNode(init);

    assertHasExecutionEdge(init, start, check);
    assertHasExecutionEdge(init, check, cancel, "no");
View Full Code Here

Examples of org.openiaml.model.model.operations.CastNode

    // ActivityParameter is of 'any' type
    assertNull(param.getType());

    DecisionNode check = assertHasDecisionNode(canCast, "can cast?");

    CastNode cast = assertHasCastNode(canCast);

    assertHasDataFlowEdge(canCast, param, cast)// in
    assertHasDataFlowEdge(canCast, cast, check)// check

    // cast -> ExternalValue -> integerValue
    {
      assertEquals(2, cast.getOutFlows().size());
      assertEquals(1, cast.getInFlows().size());
      ExternalValue ev = (ExternalValue) cast.getOutFlows().get(0).getTo();
      assertEquals(integerValue, ev.getValue());
    }
   
    CancelNode cancel = assertHasCancelNode(canCast);
    FinishNode finish = assertHasFinishNode(canCast);
View Full Code Here

Examples of org.openiaml.model.model.operations.CastNode

    StartNode start = assertHasStartNode(update);
    FinishNode finish = assertHasFinishNode(update);
    CancelNode cancel = assertHasCancelNode(update);

    DecisionNode check = assertHasDecisionNode(update, "can cast?");
    CastNode cast = assertHasCastNode(update);

    SetNode set = assertHasSetNode(update);

    assertHasExecutionEdge(update, start, check);
    assertHasExecutionEdge(update, check, cancel, "no");
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.