Examples of SimpleCondition


Examples of org.openiaml.model.model.SimpleCondition

    InputTextField field1 = assertHasInputTextField(page1, "field");
    InputTextField field2 = assertHasInputTextField(page2, "field");
    assertNotSame(field1, field2);

    Function cond = assertHasFunction(root, "Always False");
    SimpleCondition cw = assertHasSimpleCondition(root, cond, wire);

    // [already in model]
    // there should be a Function wire from cond to sync
    assertEquals(cw.getFunction(), cond);
    assertEquals(cw.getConditioned(), wire);

    // [inferred]
    // field1 and field2 should be connected by SyncWires
    SyncWire sw = assertHasSyncWire(root, field1, field2);
View Full Code Here

Examples of org.openiaml.model.model.SimpleCondition

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

    SimpleCondition cw = assertHasSimpleCondition(root, cond, run);
    assertGenerated(cw);

  }
View Full Code Here

Examples of org.openiaml.model.model.SimpleCondition

    // generated condition
    ActivityPredicate condition = assertHasActivityPredicate(session, "check requires a page is viewed first");
    assertGenerated(condition);

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

  }
View Full Code Here

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

Examples of org.openiaml.model.model.SimpleCondition

      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

Examples of org.openiaml.model.model.SimpleCondition

    // 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

Examples of org.openiaml.model.model.SimpleCondition

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

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

Examples of org.openiaml.model.model.SimpleCondition

    // 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

Examples of org.openiaml.model.model.SimpleCondition

    // 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

Examples of org.xorm.query.SimpleCondition

            throw new JDOFatalUserException(I18N.msg("E_collection_no_source"));
        }
 
        Selector selector = new Selector
            (columnToUse.getTable(),
             new SimpleCondition(columnToUse, Operator.EQUAL, ownerPKey));
       
        if (mapping.getFilter() != null) {
            logger.fine("Filter: " + mapping.getFilter());
            logger.fine("Imports: " + mapping.getImports());
            logger.fine("Parameters: " + mapping.getParameters());
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.