Package org.openiaml.model.model

Examples of org.openiaml.model.model.SimpleCondition


   * the given elements.
   */
  public static void assertHasNoSimpleConditions(EObject container, Function from, ConditionEdgeDestination to, String name) throws JaxenException {
    for (ComplexTerm ef : from.getConditioned()) {
      if (ef instanceof SimpleCondition) {
        SimpleCondition e = (SimpleCondition) ef;
        if (to.equals(e.getConditioned()) && name.equals(e.getName())) {
          fail("Found a SimpleCondition from '" + from + "' to '" + to + "' with name '" + name + "' unexpectedly: " + e);
        }
      }
    }
  }
View Full Code Here


      Function from, ConditionEdgeDestination to, ParameterEdgesSource page) throws JaxenException {

    Set<ComplexTerm> conditions = getComplexTermsFromTo(container, from, to);
    for (ComplexTerm c : conditions) {
      if (c instanceof SimpleCondition) {
        SimpleCondition condition = (SimpleCondition) c;

        Set<Parameter> params = getParametersFromTo(container, page, condition);
        assertEquals("Unexpectedly found ParameterEdge: " + params, 0, params.size());
      }
    }
View Full Code Here

    // generated condition
    ActivityPredicate condition = assertHasActivityPredicate(session, "check View Ads Exit Gate");
    assertGenerated(condition);

    SimpleCondition wire = assertHasSimpleCondition(session, condition, gate, "condition");
    assertGenerated(wire);

  }
View Full Code Here

    // newly created condition
    BuiltinProperty cond = assertHasBuiltinProperty(source, "fieldValue is set");
    assertGenerated(cond);

    SimpleCondition cw = assertHasSimpleCondition(root, cond, run);
    assertGenerated(cw);
  }
View Full Code Here

    // the Function on the object instance
    Function notEmpty = assertHasFunction(studentInstance, "not empty");
    assertGenerated(notEmpty);

    // connected to the run instance wire
    SimpleCondition conditionEdge = assertHasSimpleCondition(root, notEmpty, run, "check new instance exists");
    assertGenerated(conditionEdge);

    // NOT the 'exists?' condition, which is the reverse
    Function exists = studentInstance.getEmpty();
    assertGenerated(exists);
View Full Code Here

    // generated 'can cast?' Function on the target
    Function isSet = assertHasFunction(openid, "can cast?");
    assertGenerated(isSet);

    // connected to the RunAction
    SimpleCondition edge = assertHasSimpleCondition(root, isSet, run);
    assertGenerated(edge);

    // connected with a Parameter from the source
    assertGenerated(assertHasParameter(root, fieldValue, edge));
View Full Code Here

TOP

Related Classes of org.openiaml.model.model.SimpleCondition

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.