Examples of SimpleCondition


Examples of org.nutz.dao.util.cnd.SimpleCondition

*/
public class Cnd implements OrderBy, Criteria {

  /*------------------------------------------------------------------*/
  public static Condition format(String format, Object... args) {
    return new SimpleCondition(format, args);
  }
View Full Code Here

Examples of org.nutz.dao.util.cnd.SimpleCondition

  public static Condition format(String format, Object... args) {
    return new SimpleCondition(format, args);
  }

  public static Condition wrap(String str) {
    return new SimpleCondition((Object) str);
  }
View Full Code Here

Examples of org.nutz.dao.util.cnd.SimpleCondition

  public static Condition wrap(String str) {
    return new SimpleCondition((Object) str);
  }

  public static Condition wrap(String sql, Object value) {
    return new SimpleCondition(new CharSegment(sql).setBy(value));
  }
View Full Code Here

Examples of org.openiaml.model.model.SimpleCondition

    setGeneratedBy(object, by);
    return object;
  }

  public SimpleCondition generatedSimpleCondition(GeneratesElements by, ContainsWires container, Function source, ConditionEdgeDestination target) throws InferenceException {
    SimpleCondition wire = (SimpleCondition) createRelationship(container, ModelPackage.eINSTANCE.getSimpleCondition(), source, target, ModelPackage.eINSTANCE.getContainsWires_ConditionEdges(), ModelPackage.eINSTANCE.getComplexTerm_Function(), ModelPackage.eINSTANCE.getComplexTerm_Conditioned());
    setGeneratedBy(wire, by);
    return wire;
  }
View Full Code Here

Examples of org.openiaml.model.model.SimpleCondition

    for (Object c : editor.getDiagramEditPart().getConnections()) {
      if (c instanceof ConnectionNodeEditPart) {
        ConnectionNodeEditPart connection = (ConnectionNodeEditPart) c;
        EObject element = connection.resolveSemanticElement();
        if (element instanceof SimpleCondition) {
          SimpleCondition w = (SimpleCondition) element;
          if (connection.getSource().equals(source) &&
              connection.getTarget().equals(target) && w.getName().equals(name))
            return connection;  // found it
          found += ", " + w.getName();
        }
      }
    }

    fail("assertHasRunInstanceWire: no connection found between '" + source + "' and '" + target + "' with name '" + name + "'. found: " + found);
View Full Code Here

Examples of org.openiaml.model.model.SimpleCondition

    for (Object c : editor.getDiagramEditPart().getConnections()) {
      if (c instanceof ConnectionNodeEditPart) {
        ConnectionNodeEditPart connection = (ConnectionNodeEditPart) c;
        EObject element = connection.resolveSemanticElement();
        if (element instanceof SimpleCondition) {
          SimpleCondition w = (SimpleCondition) element;
          if (connection.getSource().equals(source) &&
              connection.getTarget().equals(target))
            return connection;  // found it
          found += ", " + w.getName();
        }
      }
    }

    fail("assertHasConditionEdge: no connection found between '" + source + "' and '" + target + "' with any name. found: " + found);
View Full Code Here

Examples of org.openiaml.model.model.SimpleCondition

    // has a DecisionNode
    DecisionNode node = assertHasDecisionNode(check, "true?");
    assertGenerated(node);

    // DecisionNode evaluates the incoming condition
    SimpleCondition edge = assertHasSimpleCondition(session, exists, node);
    assertGenerated(edge);
  }
View Full Code Here

Examples of org.openiaml.model.model.SimpleCondition

    ECARule run = assertHasRunAction(root, onEdit, update);
    assertGenerated(run);

    // should be an incoming Function edge
    SimpleCondition edge = assertHasSimpleCondition(root, canCast, run);

    // and the edge should have the current Email.Value as a parameter
    assertHasParameter(root, emailValue, edge);

  }
View Full Code Here

Examples of org.openiaml.model.model.SimpleCondition

    ECARule run = assertHasRunAction(root, onEdit, update);
    assertGenerated(run);

    // should be an incoming Function edge
    SimpleCondition edge = assertHasSimpleCondition(root, canCast, run);

    // and the edge should have the current Email.Value as a parameter
    assertHasParameter(root, intValue, edge);

  }
View Full Code Here

Examples of org.openiaml.model.model.SimpleCondition

    assertHasParameter(root, emailValue, run);

    // now make sure that the Function is connected
    BuiltinProperty canCast = assertHasBuiltinProperty(integer, "can cast?");

    SimpleCondition edge = assertHasSimpleCondition(root, canCast, run);
    assertHasParameter(root, emailValue, edge);

  }
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.