Package org.openiaml.model.model

Examples of org.openiaml.model.model.Parameter


    setGeneratedBy(wire, by);
    return wire;
  }

  public Parameter generatedParameter(GeneratesElements by, ContainsWires container, ParameterEdgesSource source, ParameterEdgeDestination target) throws InferenceException {
    Parameter wire = (Parameter) createRelationship(container, ModelPackage.eINSTANCE.getParameter(), source, target, ModelPackage.eINSTANCE.getContainsWires_ParameterEdges(), ModelPackage.eINSTANCE.getParameter_ParameterValue(), ModelPackage.eINSTANCE.getParameter_ParameterTerm() );
    setGeneratedBy(wire, by);
    return wire;
  }
View Full Code Here


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

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

    // RunAction connecting the two
    ECARule run = assertHasRunAction(root, onInput, update, "run");
    assertGenerated(run);

    // with the currentInput as parameter
    Parameter param = assertHasParameter(root, currentInput, run);
    assertGenerated(param);

  }
View Full Code Here

    // RunAction connecting the two
    ECARule run = assertHasRunAction(root, onInput, update, "run");
    assertGenerated(run);

    // with the currentInput as parameter
    Parameter param = assertHasParameter(root, currentInput, run);
    assertGenerated(param);

    // NOT the fieldValue
    Value fieldValue = assertHasFieldValue(instant2);
    assertHasNoParameter(root, fieldValue, run);
View Full Code Here

    // RunAction connecting the two
    ECARule run = assertHasRunAction(root, onChange, update, "run");
    assertGenerated(run);

    // with the currentInput as parameter
    Parameter param = assertHasParameter(root, fieldValue, run);
    assertGenerated(param);

    // NOT the currentInput
    Value currentInput = assertHasCurrentInput(instant1);
    assertHasNoParameter(root, currentInput, run);
View Full Code Here

      // RunAction connecting the two
      ECARule run = assertHasRunAction(root, onInput, update, "run");

      // with the currentInput as parameter
      Parameter param = assertHasParameter(root, currentInput, run);
      assertGenerated(param);

      // NOT the fieldValue
      Value fieldValue = assertHasFieldValue(mixed2);
      assertHasNoParameter(root, fieldValue, run);
View Full Code Here

    assertEquals(params.toString(), 2, params.size());

    // one from password
    Value password = assertHasValue(session, "current password");
    assertGenerated(password);
    Parameter pw = getParameterFromTo(session, password, user);
    assertGenerated(pw);
    assertEquals("password", pw.getName());

    // one from email
    Value email = assertHasValue(session, "current email");
    assertGenerated(email);
    Parameter pw2 = getParameterFromTo(session, email, user);
    assertGenerated(pw2);
    assertEquals("email", pw2.getName());

  }
View Full Code Here

    Role user = assertHasRole(root, "User");
    assertGenerated(user);

    // a ActivityParameter wire: [guest] --> [handler]
    Parameter param = assertHasParameter(session, user, handler);
    assertGenerated(param);

  }
View Full Code Here

    Session session = assertHasSession(root, "target session");
    AccessControlHandler ach = assertHasAccessControlHandler(session, "role-based access");
    DomainIterator instance = assertHasDomainIterator(session, "current instance");

    Parameter param = assertHasParameter(session, instance, ach);
    assertGenerated(param);

  }
View Full Code Here

        "email = :email and password = :password",
        "password = :password and email = :email"
    }, instance.getQuery());

    // parameters
    Parameter p1 = assertHasParameter(root, email, instance);
    assertGenerated(p1);
    Parameter p2 = assertHasParameter(root, password, instance);
    assertGenerated(p2);

  }
View Full Code Here

TOP

Related Classes of org.openiaml.model.model.Parameter

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.