Package org.openiaml.model.model

Examples of org.openiaml.model.model.Value


  public Value generatedValue(GeneratesElements by, ContainsValues container) throws InferenceException {
    return generatedValue(by, container, ModelPackage.eINSTANCE.getContainsValues_Values() );
  }
 
  public Value generatedValue(GeneratesElements by, ContainsValues container, EReference reference) throws InferenceException {
    Value fieldValue = (Value) createElement( container, ModelPackage.eINSTANCE.getValue(), reference );
    setGeneratedBy(fieldValue, by);
    return fieldValue;
  }
View Full Code Here


    setGeneratedBy(fieldValue, by);
    return fieldValue;
  }

  public Value generatedValueFieldValue(GeneratesElements by, Changeable container) throws InferenceException {
    Value fieldValue = (Value) createElement( container, ModelPackage.eINSTANCE.getValue(), ModelPackage.eINSTANCE.getChangeable_FieldValue() );
    setGeneratedBy(fieldValue, by);
    return fieldValue;
  }
View Full Code Here

    setGeneratedBy(fieldValue, by);
    return fieldValue;
  }
 
  public Value generatedValueCurrentInput(GeneratesElements by, VisibleThing container) throws InferenceException {
    Value fieldValue = (Value) createElement( container, ModelPackage.eINSTANCE.getValue(), ModelPackage.eINSTANCE.getVisibleThing_CurrentInput() );
    setGeneratedBy(fieldValue, by);
    return fieldValue;
  }
View Full Code Here

      if (o instanceof ShapeNodeEditPart) {
        ShapeNodeEditPart s = (ShapeNodeEditPart) o;
        if (!checkShortcut || isShortcut(s) == shortcutRequired) {
          EObject obj = s.resolveSemanticElement();
          if (obj instanceof Value) {
            Value p = (Value) obj;
            if (p.getName().equals("fieldValue")) {
              assertNotNull(s);
              return s;
            }
            found += p.getName() + ",";
          }
        }
      }
    }
    // failed
View Full Code Here

    // check the query on the instance
    assertEquals("password = :password", instance.getQuery());

    // the login handler should have generated a key store
    Value currentPassword = assertHasValue(session, "current password");
    assertGenerated(currentPassword);

    // thuis key must have a default value set
    assertNotNull(currentPassword.getDefaultValue());
    assertEquals("", currentPassword.getDefaultValue());

    // each key should be connected to the select
    assertGenerated(getParameterFromTo(handler, currentPassword, instance));

    // there should be a set wire connecting to the generated property
View Full Code Here

      normal1, normal2, instant1, instant2, mixed1, mixed2, mixed3
    };
    for (InputTextField f : fields) {
      assertNotGenerated(f);

      Value currentInput = assertHasCurrentInput(f);
      assertGenerated(currentInput);

      Event onInput = f.getOnInput();
      assertGenerated(onInput);
    }
View Full Code Here

    Frame home = assertHasFrame(root, "Home");

    InputTextField instant1 = assertHasInputTextField(home, "instant 1");
    InputTextField instant2 = assertHasInputTextField(home, "instant 2");

    Value currentInput = assertHasCurrentInput(instant1);

    Event onInput = instant1.getOnInput();
    assertGenerated(onInput);

    Operation update = assertHasOperation(instant2, "update");
View Full Code Here

    ECARule run = assertHasRunAction(root, button, op);
    assertGenerated(run);
    assertEquals("onClick", run.getName());

    // the text field has a parameter
    Value prop = assertHasFieldValue(field);
    assertGenerated(prop);

    // connecting to the run wire
    assertGenerated(assertHasParameter(root, prop, run));
View Full Code Here

    Frame home = assertHasFrame(root, "Home");

    InputTextField instant1 = assertHasInputTextField(home, "instant 1");
    InputTextField instant2 = assertHasInputTextField(home, "instant 2");

    Value currentInput = assertHasCurrentInput(instant2);

    Event onInput = instant2.getOnInput();
    assertGenerated(onInput);

    Operation update = assertHasOperation(instant1, "update");
    assertGenerated(update);

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

    Frame home = assertHasFrame(root, "Home");

    InputTextField instant1 = assertHasInputTextField(home, "instant 1");
    InputTextField instant2 = assertHasInputTextField(home, "instant 2");

    Value fieldValue = assertHasFieldValue(instant1);

    Event onChange = instant1.getOnChange();
    assertGenerated(onChange);

    Operation update = assertHasOperation(instant2, "update");
    assertGenerated(update);

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

TOP

Related Classes of org.openiaml.model.model.Value

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.