Package org.openiaml.model.model

Examples of org.openiaml.model.model.Event


    root = loadAndInfer(InputTextFieldDataTypeSync.class);
    Frame home = assertHasFrame(root, "Home");

    InputTextField integer = assertHasInputTextField(home, "Integer");
    Event onAccess = integer.getOnAccess();

    // validate operation is also called
    ActivityOperation validate = assertHasActivityOperation(integer, "validate");
    ECARule runValidate = assertHasRunAction(root, onAccess, validate);
View Full Code Here


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

    // we should have Event 'edit' in source
    Event srcEdit = field1.getOnChange();
    Operation srcOp = assertHasOperation(field1, "update");
    Event targetEdit = field2.getOnChange();
    Operation targetOp = assertHasOperation(field2, "update");
    assertNotSame(srcEdit, targetEdit);
    assertNotSame(srcOp, targetOp);

    // there should be a run wire between these two
    ECARule srcRw = assertHasRunAction(wire, srcEdit, targetOp, "run");
    ECARule targetRw = assertHasRunAction(wire, targetEdit, srcOp, "run");

    // [new]
    // there should be a Function wire to the new SyncWire
    assertGenerated(assertHasSimpleCondition(root, cond, sw));

    // there should be additional ConditionWires to these RunActions
    assertGenerated(assertHasSimpleCondition(page1, cond, srcRw));
    assertGenerated(assertHasSimpleCondition(page1, cond, targetRw));

    // there doesn't need to be any parameters to these ConditionWires

    // we should also have Function wires copied to the 'init' operations
    Event srcAccess = field1.getOnAccess();
    Operation srcInit = assertHasOperation(field1, "init");
    Event targetAccess = field2.getOnAccess();
    Operation targetInit = assertHasOperation(field2, "init");
    assertNotSame(srcAccess, targetAccess);
    assertNotSame(srcInit, targetInit);

    // execution wires
View Full Code Here

    InputTextField field2 = assertHasInputTextField(inside, "target");
    assertNotSame(field1, field2);

    // generated events and operations
    // all part of SyncWire elements generation
    Event edit = field1.getOnChange();
    Operation update = assertHasOperation(field2, "update");
    ECARule rw = assertHasRunAction(root, edit, update);

    Value fieldValue = assertHasFieldValue(field1);
    assertGenerated(getParameterFromTo(root, fieldValue, rw));

    // session should have an 'init' event
    Event init = session.getOnInit();

    // it should be connected to 'update'
    ECARule rw2 = assertHasRunAction(root, init, update);
    assertGenerated(rw2);
View Full Code Here

    Session session = assertHasSession(root, "session");
    Frame inside = assertHasFrame(session, "inside");
    InputTextField field1 = assertHasInputTextField(outside, "target");
    InputTextField field2 = assertHasInputTextField(inside, "target");

    Event access = field1.getOnAccess();
    assertGenerated(access);
    Operation init = assertHasOperation(field1, "init");
    assertGenerated(init);

    Value value = assertHasFieldValue(field2);
View Full Code Here

    Session session = assertHasSession(root, "Session");
    Gate gate = session.getEntryGate();
    assertEquals("requires a page is viewed first", gate.getName());

    Event event = button.getOnClick();
    assertGenerated(event);

    ECARule nav = assertHasNavigateAction(root, event, gate, "resume");
    assertGenerated(nav);
View Full Code Here

    assertGenerated(property);
    assertEquals(property.getDefaultValue(), "false");

    // required page
    Frame required = assertHasFrame(root, "Required Page");
    Event access = required.getOnAccess();
    assertGenerated(access);

    // set operation
    ActivityOperation set = assertHasActivityOperation(required, "Set gate flag");
    assertGenerated(set);
View Full Code Here

    // an input is created to enter in a name
    InputTextField input = assertHasInputTextField(containerForm, "Search by name");
    assertGenerated(input);

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

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

    Value email = assertHasFieldValue(lemail);
    assertGenerated(email);
    assertEqualType(email, aemail);

    Event onClick = targetLabel.getOnClick();
    assertGenerated(onClick);

    Label target = assertHasLabel(home, "email");
    Operation update = assertHasOperation(target, "update");
    assertGenerated(update);
View Full Code Here

    Value email = assertHasFieldValue(lemail);
    assertGenerated(email);
    assertEqualType(email, aemail);

    Event onClick = targetLabel.getOnClick();
    assertGenerated(onClick);

    Label target = assertHasLabel(home, "email");
    Operation update = assertHasOperation(target, "update");
    assertGenerated(update);
View Full Code Here

    Frame home = assertHasFrame(root, "Home");
    InputForm containerForm = assertHasInputForm(home, "Select Contact");
    IteratorList list = assertHasIteratorList(containerForm, "Select Contact");
    InputTextField input = assertHasInputTextField(containerForm, "Search by name");

    Event onAccess = home.getOnAccess();
    assertGenerated(onAccess);

    {
      Operation hide = assertHasBuiltinOperation(list, "hide");
      assertGenerated(hide);
View Full Code Here

TOP

Related Classes of org.openiaml.model.model.Event

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.